- import uiScriptLocale
- window = {
- "name" : "QuestionDialog",
- "style" : ("movable", "float",),
- "x" : SCREEN_WIDTH/2 - 125,
- "y" : SCREEN_HEIGHT/2 - 52,
- "width" : 360,
- "height" : 105 + 50,
- "children" :
- (
- {
- "name" : "board",
- "type" : "board",
- "x" : 0,
- "y" : 0,
- "width" : 360,
- "height" : 150,
- "children" :
- (
- {
- "name" : "image",
- "type" : "image",
- "x" : 0,
- "y" : 10,
- "horizontal_align" : "center",
- "image" : "d:/ymir work/ui/game/windows/metin_slot_silver.sub",
- },
- {
- "name" : "message",
- "type" : "text",
- "x" : 0,
- "y" : 38 + 50,
- "horizontal_align" : "center",
- "text" : uiScriptLocale.MESSAGE,
- "text_horizontal_align" : "center",
- "text_vertical_align" : "center",
- },
- {
- "name" : "drop",
- "type" : "button",
- "x" : -115,
- "y" : 63 + 50,
- "width" : 61,
- "height" : 21,
- "horizontal_align" : "center",
- "text" : uiScriptLocale.NEW_DROP_DIALOG_DROP,
- "default_image" : "d:/ymir work/ui/public/middle_button_01.sub",
- "over_image" : "d:/ymir work/ui/public/middle_button_02.sub",
- "down_image" : "d:/ymir work/ui/public/middle_button_03.sub",
- },
- {
- "name" : "destroy",
- "type" : "button",
- "x" : -40,
- "y" : 63 + 50,
- "width" : 61,
- "height" : 21,
- "horizontal_align" : "center",
- "text" : uiScriptLocale.NEW_DROP_DIALOG_DESTROY,
- "default_image" : "d:/ymir work/ui/public/middle_button_01.sub",
- "over_image" : "d:/ymir work/ui/public/middle_button_02.sub",
- "down_image" : "d:/ymir work/ui/public/middle_button_03.sub",
- },
- {
- "name" : "sell",
- "type" : "button",
- "x" : 35,
- "y" : 63 + 50,
- "width" : 61,
- "height" : 21,
- "horizontal_align" : "center",
- "text" : uiScriptLocale.NEW_DROP_DIALOG_SELL,
- "default_image" : "d:/ymir work/ui/public/middle_button_01.sub",
- "over_image" : "d:/ymir work/ui/public/middle_button_02.sub",
- "down_image" : "d:/ymir work/ui/public/middle_button_03.sub",
- },
- {
- "name" : "cancel",
- "type" : "button",
- "x" : 110,
- "y" : 63 + 50,
- "width" : 61,
- "height" : 21,
- "horizontal_align" : "center",
- "text" : uiScriptLocale.NEW_DROP_DIALOG_CLOSE,
- "default_image" : "d:/ymir work/ui/public/middle_button_01.sub",
- "over_image" : "d:/ymir work/ui/public/middle_button_02.sub",
- "down_image" : "d:/ymir work/ui/public/middle_button_03.sub",
- },
- ),
- },
- ),
- }
questiondialog_item.py / uiscript