forked from metin2/client
1
0
Fork 0
client/bin_original/UIScript/QuestionDialog.py

77 lines
1.4 KiB
Python
Raw Permalink Normal View History

import uiScriptLocale
window = {
"name" : "QuestionDialog",
"style" : ("movable", "float",),
"x" : SCREEN_WIDTH/2 - 125,
"y" : SCREEN_HEIGHT/2 - 52,
"width" : 340,
"height" : 105,
"children" :
(
{
"name" : "board",
"type" : "board",
"x" : 0,
"y" : 0,
"width" : 340,
"height" : 105,
"children" :
(
{
"name" : "message",
"type" : "text",
"x" : 0,
"y" : 38,
"horizontal_align" : "center",
"text" : uiScriptLocale.MESSAGE,
"text_horizontal_align" : "center",
"text_vertical_align" : "center",
},
{
"name" : "accept",
"type" : "button",
"x" : -40,
"y" : 63,
"width" : 61,
"height" : 21,
"horizontal_align" : "center",
"text" : uiScriptLocale.YES,
"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" : 40,
"y" : 63,
"width" : 61,
"height" : 21,
"horizontal_align" : "center",
"text" : uiScriptLocale.NO,
"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",
},
),
},
),
}