- import uiScriptLocale
- window = {
- "name" : "RefineDialog",
- "style" : ("movable", "float",),
- "x" : SCREEN_WIDTH - 400,
- "y" : 70 * 800 / SCREEN_HEIGHT,
- "width" : 0,
- "height" : 0 + 31,
- "children" :
- (
- {
- "name" : "Board",
- "type" : "board",
- "style" : ("attach",),
- "x" : 0,
- "y" : 0,
- "width" : 0,
- "height" : 0 + 31,
- "children" :
- (
- {
- "name" : "TitleBar",
- "type" : "titlebar",
- "style" : ("attach",),
- "x" : 8,
- "y" : 8,
- "width" : 0,
- "color" : "red",
- "children" :
- (
- {
- "name" : "TitleName",
- "type" : "text",
- "text" : uiScriptLocale.REFINE_TTILE,
- "horizontal_align" : "center",
- "text_horizontal_align" : "center",
- "x" : 0,
- "y" : 3,
- },
- ),
- },
- {
- "name" : "SuccessPercentage",
- "type" : "text",
- "text" : uiScriptLocale.REFINE_INFO,
- "horizontal_align" : "center",
- "vertical_align" : "bottom",
- "text_horizontal_align" : "center",
- "x" : 0,
- "y" : 60,
- },
- {
- "name" : "Cost",
- "type" : "text",
- "text" : uiScriptLocale.REFINE_COST,
- "horizontal_align" : "center",
- "vertical_align" : "bottom",
- "text_horizontal_align" : "center",
- "x" : 0,
- "y" : 47,
- },
- {
- "name" : "AcceptButton",
- "type" : "button",
- "x" : -35,
- "y" : 30,
- # "text" : uiScriptLocale.OK,
- "horizontal_align" : "center",
- "vertical_align" : "bottom",
- "default_image" : "d:/ymir work/ui/new/ok1.sub",
- "over_image" : "d:/ymir work/ui/new/ok2.sub",
- "down_image" : "d:/ymir work/ui/new/ok3.sub",
- },
- {
- "name" : "CancelButton",
- "type" : "button",
- "x" : 35,
- "y" : 30,
- # "text" : uiScriptLocale.CANCEL,
- "horizontal_align" : "center",
- "vertical_align" : "bottom",
- "default_image" : "d:/ymir work/ui/new/no1.sub",
- "over_image" : "d:/ymir work/ui/new/no2.sub",
- "down_image" : "d:/ymir work/ui/new/no3.sub",
- },
- ),
- },
- ),
- }