131 lines
3.4 KiB
Python
131 lines
3.4 KiB
Python
import localeInfo
|
|
|
|
WINDOW_WIDTH = 636
|
|
WINDOW_HEIGHT = 518
|
|
|
|
IMG_DIR = "d:/ymir work/ui/game/track/new_design/"
|
|
|
|
window = {
|
|
"name" : "TrackWindow",
|
|
"x" : 0,
|
|
"y" : 0,
|
|
"style" : ("movable", "float",),
|
|
"width" : WINDOW_WIDTH,
|
|
"height" : WINDOW_HEIGHT,
|
|
"children" :
|
|
(
|
|
{
|
|
"name" : "board",
|
|
"type" : "image",
|
|
"style" : ("movable","attach", "float",),
|
|
"x" : 0,
|
|
"y" : 0,
|
|
"image" : IMG_DIR+"bg.tga",
|
|
"children" :
|
|
(
|
|
{"name" : "title","type" : "text","x" : WINDOW_WIDTH/2,"y" : 10,"text_horizontal_align" : "center","text" : localeInfo.TRACK_WINDOW_TITLE,},
|
|
{
|
|
"name" : "close",
|
|
"type" : "button",
|
|
"x" : WINDOW_WIDTH-31,
|
|
"y" : 3,
|
|
"default_image" : IMG_DIR+"close_0.tga",
|
|
"over_image" : IMG_DIR+"close_1.tga",
|
|
"down_image" : IMG_DIR+"close_2.tga",
|
|
},
|
|
{
|
|
"name" : "dungeon_info",
|
|
"type" : "radio_button",
|
|
"x" : WINDOW_WIDTH-171,
|
|
"y" : 55,
|
|
"default_image" : IMG_DIR+"dungeon_0.tga",
|
|
"over_image" : IMG_DIR+"dungeon_1.tga",
|
|
"down_image" : IMG_DIR+"dungeon_2.tga",
|
|
"children":(
|
|
{
|
|
"name" : "dungeon_info_text",
|
|
"type" : "multi_text",
|
|
"x" : 93,
|
|
"y" : 32,
|
|
"text" : localeInfo.TRACK_DUNGEON_INFORMATION,
|
|
"text_type" : "horizontal#center",
|
|
"text_range" : 11,
|
|
},
|
|
),
|
|
},
|
|
|
|
{
|
|
"name" : "worldboss_info",
|
|
"type" : "radio_button",
|
|
"x" : WINDOW_WIDTH-171,
|
|
"y" : 148,
|
|
"default_image" : IMG_DIR+"boss_0.tga",
|
|
"over_image" : IMG_DIR+"boss_1.tga",
|
|
"down_image" : IMG_DIR+"boss_2.tga",
|
|
"children":(
|
|
{
|
|
"name" : "worldboss_info_text",
|
|
"type" : "multi_text",
|
|
"x" : 93,
|
|
"y" : 32,
|
|
"text" : localeInfo.TRACK_BOSS_INFORMATION,
|
|
"text_type" : "horizontal#center",
|
|
"text_range" : 11,
|
|
},
|
|
),
|
|
},
|
|
{
|
|
"name" : "open_shop",
|
|
"type" : "button",
|
|
"x" : WINDOW_WIDTH-171,
|
|
"y" : 374,
|
|
"default_image" : IMG_DIR+"open_shop_0.tga",
|
|
"over_image" : IMG_DIR+"open_shop_1.tga",
|
|
"down_image" : IMG_DIR+"open_shop_2.tga",
|
|
"text" : localeInfo.TRACK_OPEN_SHOP,
|
|
},
|
|
{
|
|
"name" : "dungeon_info_notice",
|
|
"type" : "toggle_button",
|
|
"x" : WINDOW_WIDTH-171,
|
|
"y" : WINDOW_HEIGHT-72,
|
|
"default_image" : IMG_DIR+"checkbox.tga",
|
|
"over_image" : IMG_DIR+"checkbox.tga",
|
|
"down_image" : IMG_DIR+"checked.tga",
|
|
"children":(
|
|
{
|
|
"name" : "dungeon_info_notice_text",
|
|
"type" : "multi_text",
|
|
"x" : 22,
|
|
"y" : -5,
|
|
"text" : localeInfo.TRACK_DUNGEON_NOTICE_INFORMATION,
|
|
"text_type" : "horizontal#left",
|
|
"text_range" : 11,
|
|
},
|
|
),
|
|
},
|
|
{
|
|
"name" : "worldboss_info_notice",
|
|
"type" : "toggle_button",
|
|
"x" : WINDOW_WIDTH-171,
|
|
"y" : WINDOW_HEIGHT-42,
|
|
"default_image" : IMG_DIR+"checkbox.tga",
|
|
"over_image" : IMG_DIR+"checkbox.tga",
|
|
"down_image" : IMG_DIR+"checked.tga",
|
|
"children":(
|
|
{
|
|
"name" : "dungeon_info_notice_text",
|
|
"type" : "multi_text",
|
|
"x" : 22,
|
|
"y" : -5,
|
|
"text" : localeInfo.TRACK_BOSS_NOTICE_INFORMATION,
|
|
"text_type" : "horizontal#left",
|
|
"text_range" : 11,
|
|
},
|
|
),
|
|
},
|
|
{"name" : "listbox","type" : "listbox_new","x" : 18,"y" : 50,"width" : 405,"height" : 452,},
|
|
),
|
|
},
|
|
),
|
|
} |