AVA2 cross-platform client parity baseline
This commit is contained in:
@@ -0,0 +1,110 @@
|
||||
import localeInfo
|
||||
|
||||
IMG_DIR = "d:/ymir work/ui/game/exchange_log/"
|
||||
|
||||
exchange_grid_size = [4, 3]
|
||||
bgWidth = ((exchange_grid_size[0] * 32) * 2) + (10 + 16)
|
||||
bgHeight = 7+(exchange_grid_size[1]*32)+44
|
||||
|
||||
windowWidth = 10+bgWidth
|
||||
windowHeight = 31+bgHeight
|
||||
|
||||
window = {
|
||||
"name" : "ExchangeLogWindow",
|
||||
"style" : ("animate","float"),
|
||||
"x" : 0, "y" : 0,
|
||||
"width" : windowWidth, "height" : windowHeight,
|
||||
"children" :
|
||||
(
|
||||
{
|
||||
"name" : "board",
|
||||
"type" : "board_with_titlebar",
|
||||
"x" : 0,"y" : 0,
|
||||
"width" : windowWidth,"height" : windowHeight,
|
||||
"title":localeInfo.EXCHANGELOG_FAKETITLE,
|
||||
"children":
|
||||
(
|
||||
{
|
||||
"name" : "bg",
|
||||
"type" : "expanded_image",
|
||||
"x" : 5,"y" : 26,
|
||||
"image":IMG_DIR+"exchange_bg.tga",
|
||||
"x_scale": bgWidth * (1.0/636.0), "y_scale": bgHeight * (1.0/324.0),
|
||||
"children":
|
||||
(
|
||||
{
|
||||
"name" : "owner_slot",
|
||||
"type" : "grid_table",
|
||||
"start_index" : 0,
|
||||
"x" : 5,
|
||||
"y" : 7,
|
||||
"x_count" : exchange_grid_size[0],"y_count" : exchange_grid_size[1],
|
||||
"x_step" : 32,"y_step" : 32,
|
||||
"x_blank" : 0,"y_blank" : 0,
|
||||
"image" : "d:/ymir work/ui/public/slot_base.sub",
|
||||
"children":
|
||||
(
|
||||
{
|
||||
"name" : "owner_gold_slot",
|
||||
"type" : "image",
|
||||
"x": (exchange_grid_size[0] * 32) - 127,
|
||||
"y": (exchange_grid_size[1] * 32) + 11,
|
||||
"image":IMG_DIR+"gold_slot.tga",
|
||||
"children":
|
||||
(
|
||||
{
|
||||
"name" : "owner_gold",
|
||||
"type" : "text",
|
||||
"x": 120,
|
||||
"y": 3,
|
||||
"fontname": "Tahoma:11",
|
||||
"text_horizontal_align" : "right",
|
||||
"text":"0",
|
||||
},
|
||||
),
|
||||
},
|
||||
),
|
||||
},
|
||||
|
||||
{"name" : "direction","type" : "image","x":5 + (exchange_grid_size[0]*32) + 2,"y": 7 + ((exchange_grid_size[1]*32)/2) - 5, "image":IMG_DIR+"center_direction.tga",},
|
||||
{"name" : "loadingText","type" : "text","x":bgWidth/2,"y": bgHeight/2, "text":localeInfo.EXCHANGELOG_LOADING,},
|
||||
{
|
||||
"name" : "target_slot",
|
||||
"type" : "grid_table",
|
||||
"start_index" : 0,
|
||||
"x" : 5 + (exchange_grid_size[0]*32) + 16,
|
||||
"y" : 7,
|
||||
"x_count" : exchange_grid_size[0],"y_count" : exchange_grid_size[1],
|
||||
"x_step" : 32,"y_step" : 32,
|
||||
"x_blank" : 0,"y_blank" : 0,
|
||||
"image" : "d:/ymir work/ui/public/slot_base.sub",
|
||||
"children":
|
||||
(
|
||||
{
|
||||
"name" : "target_gold_slot",
|
||||
"type" : "image",
|
||||
"x": (exchange_grid_size[0] * 32) - 127,
|
||||
"y": (exchange_grid_size[1] * 32) + 11,
|
||||
"image":IMG_DIR+"gold_slot.tga",
|
||||
"children":
|
||||
(
|
||||
{
|
||||
"name" : "target_gold",
|
||||
"type" : "text",
|
||||
"x": 120,
|
||||
"y": 3,
|
||||
"fontname": "Tahoma:11",
|
||||
"text_horizontal_align" : "right",
|
||||
"text":"0",
|
||||
},
|
||||
),
|
||||
},
|
||||
),
|
||||
},
|
||||
|
||||
),
|
||||
},
|
||||
),
|
||||
},
|
||||
),
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
import localeInfo
|
||||
|
||||
IMG_DIR = "d:/ymir work/ui/game/exchange_log/"
|
||||
|
||||
window = {
|
||||
"name" : "ExchangeLogWindow",
|
||||
"style" : (),
|
||||
"x" : 0, "y" : 0,
|
||||
"width" : 614, "height" : 35,
|
||||
"children" :
|
||||
(
|
||||
{
|
||||
"name" : "board",
|
||||
"type" : "expanded_image",
|
||||
"x" : 0,"y" : 0,
|
||||
"image" : IMG_DIR+"log_bar.tga",
|
||||
"children":
|
||||
(
|
||||
{"name" : "select_btn","type" : "expanded_image","x":0,"y":0,},
|
||||
|
||||
{"name" : "owner","type" : "text","fontname": "Tahoma:11","text_horizontal_align" : "center" ,"x" : 75,"y" : 10,},
|
||||
{"name" : "target","type" : "text","fontname": "Tahoma:11","text_horizontal_align" : "center" ,"x" : 180,"y" : 10,},
|
||||
{"name" : "gold","type" : "text","fontname": "Tahoma:11","text_horizontal_align" : "left" ,"x" : 250,"y" : 10,},
|
||||
{"name" : "date","type" : "text","fontname": "Tahoma:11","text_horizontal_align" : "center" ,"x" : 370,"y" : 10,},
|
||||
{"name" : "ip","type" : "text","fontname": "Tahoma:11","text_horizontal_align" : "center" ,"x" : 460,"y" : 10,},
|
||||
|
||||
{"name" : "content","type" : "button","x" : 520,"y" : 8,"default_image" : IMG_DIR + "view_0.tga","over_image" : IMG_DIR + "view_1.tga","down_image" : IMG_DIR + "view_2.tga",},
|
||||
|
||||
),
|
||||
},
|
||||
),
|
||||
}
|
||||
@@ -0,0 +1,60 @@
|
||||
import localeInfo
|
||||
|
||||
IMG_DIR = "d:/ymir work/ui/game/exchange_log/"
|
||||
|
||||
WINDOW_SIZE = [653, 428]
|
||||
|
||||
window = {
|
||||
"name" : "ExchangeLogWindow",
|
||||
"style" : ("movable", "float","animate",),
|
||||
"x" : 0, "y" : 0,
|
||||
"width" : WINDOW_SIZE[0], "height" : WINDOW_SIZE[1],
|
||||
"children" :
|
||||
(
|
||||
{
|
||||
"name" : "board",
|
||||
"type" : "board_with_titlebar",
|
||||
"x" : 0,"y" : 0,"title": localeInfo.EXCHANGELOG_TITLE+"(Null)",
|
||||
"width" : WINDOW_SIZE[0],"height" : WINDOW_SIZE[1],
|
||||
"children":
|
||||
(
|
||||
{
|
||||
"name" : "bg",
|
||||
"type" : "image",
|
||||
"x" : 8,"y" : 30,
|
||||
"image": IMG_DIR + "bg.tga",
|
||||
"children":
|
||||
(
|
||||
# Titles
|
||||
{"name" : "ownername_title","type" : "text","text_horizontal_align" : "left" ,"x" : 43,"y" : 8,"text": localeInfo.EXCHANGELOG_OWNERNAME,},
|
||||
{"name" : "targetname_title","type" : "text","text_horizontal_align" : "left" ,"x" : 151,"y" : 8,"text": localeInfo.EXCHANGELOG_TARGETNAME,},
|
||||
{"name" : "goldtraded_title","type" : "text","text_horizontal_align" : "left" ,"x" : 255,"y" : 8,"text": localeInfo.EXCHANGELOG_GOLDTRADED,},
|
||||
{"name" : "date_title","type" : "text","text_horizontal_align" : "left" ,"x" : 362,"y" : 8,"text": localeInfo.EXCHANGELOG_DATE,},
|
||||
{"name" : "ip_title","type" : "text","text_horizontal_align" : "left" ,"x" : 456,"y" : 8,"text": localeInfo.EXCHANGELOG_IP,},
|
||||
{"name" : "content_title","type" : "text","text_horizontal_align" : "left" ,"x" : 545,"y" : 8,"text": localeInfo.EXCHANGELOG_CONTENT,},
|
||||
|
||||
# Page Buttons
|
||||
{"name" : "first_prev_button","type" : "button","x" : 71,"y" : 368,"default_image" : IMG_DIR + "first_page_0.tga","over_image" : IMG_DIR + "first_page_0.tga","down_image" : IMG_DIR + "first_page_1.tga",},
|
||||
{"name" : "last_next_button","type" : "button","x" : 267,"y" : 368,"default_image" : IMG_DIR + "last_page_0.tga","over_image" : IMG_DIR + "last_page_0.tga","down_image" : IMG_DIR + "last_page_1.tga",},
|
||||
{"name" : "prev_button","type" : "button","x" : 87,"y" : 368,"default_image" : IMG_DIR + "back_page_0.tga","over_image" : IMG_DIR + "back_page_0.tga","down_image" : IMG_DIR + "back_page_1.tga",},
|
||||
{"name" : "next_button","type" : "button","x" : 250,"y" : 368,"default_image" : IMG_DIR + "next_page_0.tga","over_image" : IMG_DIR + "next_page_0.tga","down_image" : IMG_DIR + "next_page_1.tga",},
|
||||
|
||||
# Page Index Buttons
|
||||
{"name" : "page_0","type" : "button","x" : 104 + (0 * 29),"y" : 360,"text": "1","default_image" : IMG_DIR + "page_box.tga","over_image" : IMG_DIR + "page_box.tga","down_image" : IMG_DIR + "page_box.tga",},
|
||||
{"name" : "page_1","type" : "button","x" : 104 + (1 * 29),"y" : 360,"text": "2","default_image" : IMG_DIR + "page_box.tga","over_image" : IMG_DIR + "page_box.tga","down_image" : IMG_DIR + "page_box.tga",},
|
||||
{"name" : "page_2","type" : "button","x" : 104 + (2 * 29),"y" : 360,"text": "3","default_image" : IMG_DIR + "page_box.tga","over_image" : IMG_DIR + "page_box.tga","down_image" : IMG_DIR + "page_box.tga",},
|
||||
{"name" : "page_3","type" : "button","x" : 104 + (3 * 29),"y" : 360,"text": "4","default_image" : IMG_DIR + "page_box.tga","over_image" : IMG_DIR + "page_box.tga","down_image" : IMG_DIR + "page_box.tga",},
|
||||
{"name" : "page_4","type" : "button","x" : 104 + (4 * 29),"y" : 360,"text": "5","default_image" : IMG_DIR + "page_box.tga","over_image" : IMG_DIR + "page_box.tga","down_image" : IMG_DIR + "page_box.tga",},
|
||||
|
||||
#Delete Buttons
|
||||
{"name" : "delete_selected","type" : "button","x" : 356, "y" : 360,"text": localeInfo.EXCHANGELOG_DELETESELECTED,"default_image" : IMG_DIR + "button_0.tga","over_image" : IMG_DIR + "button_1.tga","down_image" : IMG_DIR + "button_2.tga",},
|
||||
{"name" : "delete_all","type" : "button","x" : 492, "y" : 360,"text": localeInfo.EXCHANGELOG_DELETEALL,"default_image" : IMG_DIR + "button_0.tga","over_image" : IMG_DIR + "button_1.tga","down_image" : IMG_DIR + "button_2.tga",},
|
||||
|
||||
{"name" : "listbox","type" : "listbox_new","x" : 2, "y" : 36, "width" : 628,"height" : 313,},
|
||||
|
||||
),
|
||||
},
|
||||
),
|
||||
},
|
||||
),
|
||||
}
|
||||
Reference in New Issue
Block a user