Files
AVA2/upstream/python-root/uiscript/questiondialogitem.py
T

109 lines
2.2 KiB
Python

import uiScriptLocale
window = {
"name" : "QuestionDialog",
"style" : ("movable", "float", "animate",),
"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" : -60,
"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" : "destroy",
"type" : "button",
"x" : 0,
"y" : 63,
"width" : 61,
"height" : 21,
"horizontal_align" : "center",
"text" : uiScriptLocale.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" : "ItemSlot",
"type" : "grid_table",
"x" : 340/2 - (32/2),
"y" : 63-5,
"start_index" : 0,
"x_count" : 1,
"y_count" : 3,
"x_step" : 32,
"y_step" : 32,
"image" : "d:/ymir work/ui/public/Slot_Base.sub",
},
{
"name" : "cancel",
"type" : "button",
"x" : 60,
"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",
},
),
},
),
}