AVA2 cross-platform client parity baseline

This commit is contained in:
shen
2026-10-06 00:53:42 -07:00
commit 9f748eb05a
3271 changed files with 1275528 additions and 0 deletions
@@ -0,0 +1,51 @@
import localeInfo
WINDOW_WIDTH = 405
WINDOW_HEIGHT = 114
IMG_DIR_AVATAR = "d:/ymir work/ui/game/track/avatar/"
IMG_DIR = "d:/ymir work/ui/game/track/new_design/"
window = {
"name" : "TrackWindow",
"x" : 0,
"y" : 0,
"width" : WINDOW_WIDTH,
"height" : WINDOW_HEIGHT,
"children" :
(
{
"name" : "board",
"type" : "expanded_image",
"x" : 0,
"y" : 0,
"image" : IMG_DIR+"dungeon_closed.tga",
"children" :
(
{"name" : "avatar","type" : "expanded_image","x" : 5,"y" : 5,"image":IMG_DIR_AVATAR+"alastor.tga",},
{"name" : "name_field","type" : "text","x" : 123,"y" : 19,"text":"","color":0xFFFFAF00,},
{"name" : "level_field","type" : "text","x" : 123,"y" : 19 + (1*18) ,"text":"",},
{"name" : "group_field","type" : "text","x" : 123,"y" : 19 + (2*18) ,"text":"",},
{"name" : "cooldown_field","type" : "text","x" : 123,"y" : 19 + (3*18) ,"text":"",},
{"name" : "status_field","type" : "text","x" : 123,"y" : 19 + (4*18) ,"text":"",},
{
"name" : "teleport_button",
"type" : "button",
"x" : WINDOW_WIDTH-114,
"y" : WINDOW_HEIGHT-35,
"default_image" : IMG_DIR+"button_0.tga",
"over_image" : IMG_DIR+"button_1.tga",
"down_image" : IMG_DIR+"button_2.tga",
"children" :
(
{"name" : "dungeon_key","type" : "text","x" : 49,"y" : -60,"text_horizontal_align": "center","text":localeInfo.TRACK_DUNGEON_KEY,},
{"name" : "teleport_button_text","type" : "text","x" : 0,"y" : 0,"all_align": 1,"text": localeInfo.TRACK_TELEPORT,},
),
},
{"name" : "item0","type" : "expanded_image","x" : (WINDOW_WIDTH-114)+49,"y" : 40,"image":"icon/item/70068.tga","children" :({ "name" : "itemcount0","type" : "text","x" : 10,"y" : 10,"all_align": 1,"text":"1","style" : ("not_pick",),},),},
{"name" : "item1","type" : "expanded_image","x" : (WINDOW_WIDTH-114)+49,"y" : 40,"image":"icon/item/70068.tga","children" :({"name" : "itemcount1","type" : "text","x" : 10,"y" : 10,"all_align": 1,"text":"1","style" : ("not_pick",),},),},
{"name" : "item2","type" : "expanded_image","x" : (WINDOW_WIDTH-114)+49,"y" : 40,"image":"icon/item/70068.tga","children" :({"name" : "itemcount2","type" : "text","x" : 10,"y" : 10,"all_align": 1,"text":"1","style" : ("not_pick",),},),},
),
},
),
}
@@ -0,0 +1,88 @@
import localeInfo
WINDOW_WIDTH = 405
WINDOW_HEIGHT = 114
IMG_DIR_AVATAR = "d:/ymir work/ui/game/track/avatar/"
IMG_DIR = "d:/ymir work/ui/game/track/ymirdesign/"
window = {
"name" : "TrackWindow",
"x" : 0,
"y" : 0,
"width" : WINDOW_WIDTH,
"height" : WINDOW_HEIGHT,
"children" :
(
{
"name" : "board",
"type" : "expanded_image",
"x" : 0,
"y" : 0,
"image" : IMG_DIR+"dungeon_closed.tga",
"children" :
(
{"name" : "avatar","type" : "expanded_image","x" : 5,"y" : 5,"image":IMG_DIR_AVATAR+"alastor.tga",},
{"name" : "name_field","type" : "text","x" : 123,"y" : 19,"text":"","color":0xFFFFAF00,},
{"name" : "level_field","type" : "text","x" : 123,"y" : 19 + (1*18) ,"text":"",},
{"name" : "group_field","type" : "text","x" : 123,"y" : 19 + (2*18) ,"text":"",},
{"name" : "cooldown_field","type" : "text","x" : 123,"y" : 19 + (3*18) ,"text":"",},
{"name" : "status_field","type" : "text","x" : 123,"y" : 19 + (4*18) ,"text":"",},
{
"name" : "teleport_button",
"type" : "button",
"x" : WINDOW_WIDTH-114,
"y" : WINDOW_HEIGHT-35,
"default_image" : IMG_DIR+"button_0.tga",
"over_image" : IMG_DIR+"button_1.tga",
"down_image" : IMG_DIR+"button_2.tga",
"children" :
(
{"name" : "dungeon_key","type" : "text","x" : 49,"y" : -60,"text_horizontal_align": "center","text":localeInfo.TRACK_DUNGEON_KEY,},
{"name" : "teleport_button_text","type" : "text","x" : 0,"y" : 0,"all_align": 1,"text": localeInfo.TRACK_TELEPORT,},
),
},
{
"name" :"itemwall0",
"type" : "expanded_image",
"x" : (WINDOW_WIDTH-114)+49,
"y" : 40,
"image":IMG_DIR+"item_slot.tga",
"children":(
{
"name" :"item0","type" : "expanded_image","x" : 0,"y" : 0,"image":"icon/item/70068.tga",
"children" :({ "name" : "itemcount0","type" : "text","x" : 10,"y" : 10,"all_align": 1,"text":"1","style" : ("not_pick",),},),
},
),
},
{
"name" :"itemwall1",
"type" : "expanded_image",
"x" : (WINDOW_WIDTH-114)+49,
"y" : 40,
"image":IMG_DIR+"item_slot.tga",
"children":(
{
"name" :"item1","type" : "expanded_image","x" : 0,"y" : 0,"image":"icon/item/70068.tga",
"children" :({ "name" : "itemcount1","type" : "text","x" : 10,"y" : 10,"all_align": 1,"text":"1","style" : ("not_pick",),},),
},
),
},
{
"name" :"itemwall2",
"type" : "expanded_image",
"x" : (WINDOW_WIDTH-114)+49,
"y" : 40,
"image":IMG_DIR+"item_slot.tga",
"children":(
{
"name" :"item2","type" : "expanded_image","x" : 0,"y" : 0,"image":"icon/item/70068.tga",
"children" :({ "name" : "itemcount2","type" : "text","x" : 10,"y" : 10,"all_align": 1,"text":"1","style" : ("not_pick",),},),
},
),
}
),
},
),
}
@@ -0,0 +1,131 @@
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,},
),
},
),
}
@@ -0,0 +1,130 @@
import localeInfo
WINDOW_WIDTH = 636
WINDOW_HEIGHT = 518
IMG_DIR = "d:/ymir work/ui/game/track/ymirdesign/"
window = {
"name" : "TrackWindow",
"x" : 0,
"y" : 0,
"style" : ("movable", "float",),
"width" : WINDOW_WIDTH,
"height" : WINDOW_HEIGHT,
"children" :
(
{
"name" : "board",
"type" : "board_with_titlebar",
"style" : ("movable","attach", "float",),
"x" : 0,
"y" : 0,
"width":WINDOW_WIDTH,
"height":WINDOW_HEIGHT,
"title":localeInfo.TRACK_WINDOW_TITLE,
"children" :
(
{
"name" : "bg",
"type" : "image",
"style" : ("movable","attach", "float",),
"x" : 10,
"y" : 36,
"image" : IMG_DIR+"bg.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,},
),
},
),
}