import uiScriptLocale
import localeInfo
ROOT = "d:/ymir work/ui/game/"
WIDTH = 282 + 180
HEIGHT = 167 + 70
window = {
"name" : "DiceSystem",
"style" : ("movable", "float",),
"x" : 0,
"y" : 30,
"width" : WIDTH,
"height" : HEIGHT,
"children" :
(
{
"name" : "board",
"type" : "board",
"style" : ("attach",),
"x" : 0,
"y" : 0,
"width": WIDTH,
"height": HEIGHT,
"children" :
(
{
"name" : "TitleBar",
"type" : "titlebar",
"style" : ("attach",),
"x" : 6,
"y" : 8,
"width" : WIDTH - 14,
"color" : "yellow",
"children" :
(
{ "name" : "TitleName", "type" : "text", "x" : 0, "y" : 3, "text" : str(localeInfo.DICE_SYSTEM_TITLE), "text_horizontal_align" : "center", "horizontal_align" : "center" },
),
},
## Owner (You)
{
"name" : "Owner",
"type" : "window",
"x" : 144 + 116,
"y" : 33,
"width" : 200,
"height" : 150,
"children" :
(
{
"name" : "Owner_Slot",
"type" : "grid_table",
"start_index" : 0,
"x" : 0,
"y" : 0,
"x_count" : 6,
"y_count" : 4,
"x_step" : 32,
"y_step" : 32,
"x_blank" : 0,
"y_blank" : 0,
"image" : "d:/ymir work/ui/public/slot_base.sub",
},
{
"name": "Owner_Number_ThinBoard",
"type": "thinboard",
"x" : 0,
"y" : 134,
"width" : 192,
"height" : 60,
"children":
(
{ "name" : "Owner_Number_Text", "type" : "text", "text" : "", "x" : 0, "y" : 0, "text_horizontal_align" : "center", "text_vertical_align" : "center", "vertical_align" : "center", "horizontal_align" : "center"},
),
},
),
},
## Target (Enemy)
{
"name" : "Target",
"type" : "window",
"x" : 10,
"y" : 33,
"width" : 200,
"height" : 150,
"children" :
(
{
"name" : "Target_Slot",
"type" : "grid_table",
"start_index" : 0,
"x" : 0,
"y" : 0,
"x_count" : 6,
"y_count" : 4,
"x_step" : 32,
"y_step" : 32,
"x_blank" : 0,
"y_blank" : 0,
"image" : "d:/ymir work/ui/public/slot_base.sub",
},
{
"name": "Target_Number_ThinBoard",
"type": "thinboard",
"x" : 0,
"y" : 134,
"width" : 192,
"height" : 60,
"children":
(
{ "name" : "Target_Number_Text", "type" : "text", "text" : "", "x" : 0, "y" : 0, "text_horizontal_align" : "center", "text_vertical_align" : "center", "vertical_align" : "center", "horizontal_align" : "center"},
),
},
),
},
{
"name" : "Owner_Accept_Light",
"type" : "button",
"x" : 0,
"y" : 93,
"horizontal_align" : "center",
"default_image" : "d:/ymir work/ui/game/exchange/own_arrow_01.tga",
"over_image" : "d:/ymir work/ui/game/exchange/own_arrow_01.tga",
"down_image" : "d:/ymir work/ui/game/exchange/own_arrow_03.tga",
},
{
"name" : "Target_Accept_Light",
"type" : "button",
"x" : 0,
"y" : 93 + 18,
"horizontal_align" : "center",
"default_image" : "d:/ymir work/ui/game/exchange/target_arrow_01.tga",
"over_image" : "d:/ymir work/ui/game/exchange/target_arrow_01.tga",
"down_image" : "d:/ymir work/ui/game/exchange/target_arrow_03.tga",
},
{
"name" : "Owner_Accept_Button",
"type" : "toggle_button",
"x" : 0,
"y" : 101 + 32,
"horizontal_align" : "center",
"text" : uiScriptLocale.EXCHANGE_ACCEPT,
"default_image" : "d:/ymir work/ui/public/small_button_01.sub",
"over_image" : "d:/ymir work/ui/public/small_button_02.sub",
"down_image" : "d:/ymir work/ui/public/small_button_03.sub",
},
),
},
),
}