AVA2 cross-platform client parity baseline
This commit is contained in:
@@ -0,0 +1,109 @@
|
||||
import localeInfo
|
||||
|
||||
IMG_DIR = "d:/ymir work/ui/game/mission/"
|
||||
BUTTON_ROOT = "d:/ymir work/ui/public/"
|
||||
window = {
|
||||
"name" : "MissionItem",
|
||||
"x" : 0,
|
||||
"y" : 0,
|
||||
"width" : 620,
|
||||
"height" : 85,
|
||||
"children" :
|
||||
(
|
||||
{
|
||||
"name": "board",
|
||||
"type": "expanded_image",
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"image":IMG_DIR+"item.tga",
|
||||
"children":
|
||||
(
|
||||
{
|
||||
"name":"name",
|
||||
"type":"text",
|
||||
"style" : ("not_pick",),
|
||||
"x": 35,
|
||||
"y": 12,
|
||||
"text_horizontal_align":"left",
|
||||
"text":"",
|
||||
"color":0xFFF6A800,
|
||||
},
|
||||
{
|
||||
"name":"icon",
|
||||
"type":"expanded_image",
|
||||
"x": 5,
|
||||
"y": 5,
|
||||
"image": "icon/item/50309.tga",
|
||||
},
|
||||
|
||||
{
|
||||
"name":"status_text",
|
||||
"type":"text",
|
||||
"x": 8,
|
||||
"y": 32,
|
||||
"text_horizontal_align":"left",
|
||||
"text":"",
|
||||
},
|
||||
{
|
||||
"name":"type_text",
|
||||
"type":"text",
|
||||
"x": 8,
|
||||
"y": 32 + 15,
|
||||
"text_horizontal_align":"left",
|
||||
"text":"",
|
||||
},
|
||||
{
|
||||
"name":"time_text",
|
||||
"type":"text",
|
||||
"x": 8,
|
||||
"y": 32 + 15 + 15,
|
||||
"text_horizontal_align":"left",
|
||||
"text":"",
|
||||
},
|
||||
{
|
||||
"name" : "reward_btn",
|
||||
"type" : "button",
|
||||
"x" : 170,
|
||||
"y" : 15,
|
||||
"default_image" : IMG_DIR + "reward_btn_0.tga",
|
||||
"over_image" : IMG_DIR + "reward_btn_1.tga",
|
||||
"down_image" : IMG_DIR + "reward_btn_2.tga",
|
||||
"disable_image" : IMG_DIR + "reward_btn_2.tga",
|
||||
},
|
||||
{
|
||||
"name" : "delete_btn",
|
||||
"type" : "button",
|
||||
"x" : 170,
|
||||
"y" : 15+30,
|
||||
"default_image" : IMG_DIR + "delete_btn_0.tga",
|
||||
"over_image" : IMG_DIR + "delete_btn_1.tga",
|
||||
"down_image" : IMG_DIR + "delete_btn_2.tga",
|
||||
},
|
||||
{
|
||||
"name":"reward_text",
|
||||
"type":"text",
|
||||
"x": 315,
|
||||
"y": 15,
|
||||
"text_horizontal_align":"center",
|
||||
"text":localeInfo.MISSION_REWARD_TITLE,
|
||||
},
|
||||
{
|
||||
"name":"reward_experience",
|
||||
"type":"text",
|
||||
"x": 315,
|
||||
"y": 30,
|
||||
"text_horizontal_align":"center",
|
||||
"text":"",
|
||||
},
|
||||
{
|
||||
"name":"gold_experience",
|
||||
"type":"text",
|
||||
"x": 315,
|
||||
"y": 45,
|
||||
"text_horizontal_align":"center",
|
||||
"text":"",
|
||||
},
|
||||
),
|
||||
},
|
||||
),
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
import localeInfo
|
||||
|
||||
IMG_DIR = "d:/ymir work/ui/game/mission/"
|
||||
|
||||
BG_IMAGE_SIZE = (492, 324)
|
||||
WINDOW_SIZE = (BG_IMAGE_SIZE[0]+12, BG_IMAGE_SIZE[1]+30+10)
|
||||
|
||||
window = {
|
||||
"name" : "MissionWindow",
|
||||
"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,
|
||||
"width" : WINDOW_SIZE[0],
|
||||
"height" : WINDOW_SIZE[1],
|
||||
"title" : "Mission Books",
|
||||
"children" :
|
||||
(
|
||||
{
|
||||
"name" : "bg",
|
||||
"type" : "image",
|
||||
"x" : 6,
|
||||
"y" : 32,
|
||||
"image":IMG_DIR+"bg.tga",
|
||||
"children":
|
||||
(
|
||||
{
|
||||
"name" : "listbox",
|
||||
"type" : "listbox_new",
|
||||
"x" : 3,
|
||||
"y" : 3,
|
||||
"width" : BG_IMAGE_SIZE[0] - 15,
|
||||
"height" : BG_IMAGE_SIZE[1]-6,
|
||||
},
|
||||
),
|
||||
},
|
||||
),
|
||||
},
|
||||
),
|
||||
}
|
||||
Reference in New Issue
Block a user