client/bin_original/UIScript/InputDialog.py

94 lines
1.6 KiB
Python
Raw Normal View History

import uiScriptLocale
window = {
"name" : "InputDialog",
"x" : 0,
"y" : 0,
"style" : ("movable", "float",),
"width" : 170,
"height" : 90,
"children" :
(
{
"name" : "Board",
"type" : "board_with_titlebar",
"x" : 0,
"y" : 0,
"width" : 170,
"height" : 90,
"title" : "",
"children" :
(
## Input Slot
{
"name" : "InputSlot",
"type" : "slotbar",
"x" : 0,
"y" : 34,
"width" : 90,
"height" : 18,
"horizontal_align" : "center",
#"type" : "image",
#"image" : "d:/ymir work/ui/public/Parameter_Slot_03.sub",
"children" :
(
{
"name" : "InputValue",
"type" : "editline",
"x" : 3,
"y" : 3,
"width" : 90,
"height" : 18,
"input_limit" : 12,
},
),
},
## Button
{
"name" : "AcceptButton",
"type" : "button",
"x" : - 61 - 5 + 30,
"y" : 58,
"horizontal_align" : "center",
"text" : uiScriptLocale.OK,
"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" : "CancelButton",
"type" : "button",
"x" : 5 + 30,
"y" : 58,
"horizontal_align" : "center",
"text" : uiScriptLocale.CANCEL,
"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",
},
),
},
),
}