AVA2 cross-platform client parity baseline
This commit is contained in:
@@ -0,0 +1,427 @@
|
||||
import uiScriptLocale
|
||||
|
||||
WINDOW_WIDTH = 537
|
||||
WINDOW_HEIGHT = 297
|
||||
|
||||
ROOT_PATH = "d:/ymir work/ui/game/battle_pass/"
|
||||
|
||||
window = {
|
||||
"name" : "BattlePassWindow",
|
||||
"style" : ("movable", "float", "animate",),
|
||||
"x" : 0, "y" : 0,
|
||||
"width" : WINDOW_WIDTH, "height" : WINDOW_HEIGHT,
|
||||
"children" :
|
||||
(
|
||||
{
|
||||
"name" : "board", "type" : "board",
|
||||
"style" : ("attach",),
|
||||
"x" : 0, "y" : 0,
|
||||
"width" : WINDOW_WIDTH, "height" : WINDOW_HEIGHT,
|
||||
"children" :
|
||||
(
|
||||
## Title
|
||||
{
|
||||
"name" : "TitleBar", "type" : "titlebar",
|
||||
"style" : ("attach",),
|
||||
"x" : 8, "y" : 7,
|
||||
"width" : WINDOW_WIDTH - 15,
|
||||
"color" : "yellow",
|
||||
"children" :
|
||||
(
|
||||
{
|
||||
"name" : "TitleName", "type" : "text",
|
||||
"x" : (WINDOW_WIDTH - 15) / 2, "y" : 3,
|
||||
"text" : uiScriptLocale.BATTLE_PASS,
|
||||
"text_horizontal_align" : "center"
|
||||
},
|
||||
),
|
||||
},
|
||||
## Scroll Border
|
||||
{
|
||||
"name" : "BorderScroll",
|
||||
"type" : "thinboard_circle",
|
||||
"x" : 295, "y" : 32,
|
||||
"width" : 20, "height" : 255,
|
||||
},
|
||||
## Missions Border
|
||||
{
|
||||
"name" : "BorderMissions", "type" : "thinboard_circle",
|
||||
"x" : 8, "y" : 32,
|
||||
"width" : 298, "height" : 255,
|
||||
},
|
||||
## Ranking Boreder
|
||||
{
|
||||
"name" : "BorderRanking", "type" : "thinboard_circle",
|
||||
"x" : 8, "y" : 32,
|
||||
"width" : 307, "height" : 255,
|
||||
"children":
|
||||
(
|
||||
## Ranking Title
|
||||
{
|
||||
"name" : "RankingTitle", "type" : "image",
|
||||
"x" : 3, "y" : 3,
|
||||
"image" : ROOT_PATH + "ranking_title.tga",
|
||||
},
|
||||
## Pagination Window
|
||||
{
|
||||
"name" : "PaginationWindow", "type" : "window",
|
||||
"x" : 25, "y" : 23,
|
||||
"vertical_align" : "bottom",
|
||||
"width" : 307, "height" : 22,
|
||||
"children" :
|
||||
(
|
||||
{
|
||||
"name" : "first_prev_button", "type" : "button",
|
||||
"x" : 0,"y" : 2,
|
||||
"default_image" : ROOT_PATH + "pagination/btn_first_prev_default.dds",
|
||||
"over_image" : ROOT_PATH + "pagination/btn_first_prev_hover.dds",
|
||||
"down_image" : ROOT_PATH + "pagination/btn_first_prev_down.dds",
|
||||
},
|
||||
{
|
||||
"name" : "prev_button", "type" : "button",
|
||||
"x" : 23, "y" : 2,
|
||||
"default_image" : ROOT_PATH + "pagination/btn_prev_default.dds",
|
||||
"over_image" : ROOT_PATH + "pagination/btn_prev_hover.dds",
|
||||
"down_image" : ROOT_PATH + "pagination/btn_prev_down.dds",
|
||||
},
|
||||
{
|
||||
"name" : "page1_button", "type" : "button",
|
||||
"x" : 45, "y" : 0,
|
||||
"text" : "1",
|
||||
"default_image" : ROOT_PATH + "pagination/pagenumber_default.tga",
|
||||
"over_image" : ROOT_PATH + "pagination/pagenumber_default.tga",
|
||||
"down_image" : ROOT_PATH + "pagination/pagenumber_down.tga",
|
||||
},
|
||||
{
|
||||
"name" : "page2_button", "type" : "button",
|
||||
"x" : 78, "y" : 0,
|
||||
"text" : "2",
|
||||
"default_image" : ROOT_PATH + "pagination/pagenumber_default.tga",
|
||||
"over_image" : ROOT_PATH + "pagination/pagenumber_default.tga",
|
||||
"down_image" : ROOT_PATH + "pagination/pagenumber_down.tga",
|
||||
},
|
||||
{
|
||||
"name" : "page3_button", "type" : "button",
|
||||
"x" : 111, "y" : 0,
|
||||
"text" : "3",
|
||||
"default_image" : ROOT_PATH + "pagination/pagenumber_default.tga",
|
||||
"over_image" : ROOT_PATH + "pagination/pagenumber_default.tga",
|
||||
"down_image" : ROOT_PATH + "pagination/pagenumber_down.tga",
|
||||
},
|
||||
{
|
||||
"name" : "page4_button", "type" : "button",
|
||||
"x" : 144, "y" : 0,
|
||||
"text" : "4",
|
||||
"default_image" : ROOT_PATH + "pagination/pagenumber_default.tga",
|
||||
"over_image" : ROOT_PATH + "pagination/pagenumber_default.tga",
|
||||
"down_image" : ROOT_PATH + "pagination/pagenumber_down.tga",
|
||||
},
|
||||
{
|
||||
"name" : "page5_button", "type" : "button",
|
||||
"x" : 177, "y" : 0,
|
||||
"text" : "5",
|
||||
"default_image" : ROOT_PATH + "pagination/pagenumber_default.tga",
|
||||
"over_image" : ROOT_PATH + "pagination/pagenumber_default.tga",
|
||||
"down_image" : ROOT_PATH + "pagination/pagenumber_down.tga",
|
||||
},
|
||||
{
|
||||
"name" : "next_button", "type" : "button",
|
||||
"x" : 222, "y" : 2,
|
||||
"default_image" : ROOT_PATH + "pagination/btn_next_default.dds",
|
||||
"over_image" : ROOT_PATH + "pagination/btn_next_hover.dds",
|
||||
"down_image" : ROOT_PATH + "pagination/btn_next_down.dds",
|
||||
},
|
||||
{
|
||||
"name" : "last_next_button", "type" : "button",
|
||||
"x" : 242, "y" : 2,
|
||||
"default_image" : ROOT_PATH + "pagination/btn_last_next_default.dds",
|
||||
"over_image" : ROOT_PATH + "pagination/btn_last_next_hover.dds",
|
||||
"down_image" : ROOT_PATH + "pagination/btn_last_next_down.dds",
|
||||
},
|
||||
),
|
||||
},
|
||||
),
|
||||
},
|
||||
## Mission Info Border
|
||||
{
|
||||
"name" : "BorderInfoMission", "type" : "thinboard_circle",
|
||||
"x" : 320, "y" : 58,
|
||||
"width" : 207, "height" : 229,
|
||||
"children":
|
||||
(
|
||||
{
|
||||
"name" : "bgImageMission", "type" : "image",
|
||||
"x" : 3, "y" : 3,
|
||||
"image" : ROOT_PATH + "mission_big_clean.tga",
|
||||
"children":
|
||||
(
|
||||
{
|
||||
"name" : "missionImageTitle", "type" : "image",
|
||||
"x" : 0, "y" : 0,
|
||||
"image" : ROOT_PATH + "title_bar_special.tga",
|
||||
"children":
|
||||
(
|
||||
{
|
||||
"name" : "missionTitleText", "type" : "text",
|
||||
"x" : 100, "y" : 4,
|
||||
"text" : uiScriptLocale.BATTLE_PASS_MISSION_NAME,
|
||||
"text_horizontal_align" : "center",
|
||||
"text_color" : 0xffffeea6,
|
||||
},
|
||||
),
|
||||
},
|
||||
{
|
||||
"name" : "mission_image_10", "type" : "image",
|
||||
"x" : 0, "y" : 22,
|
||||
"image" : ROOT_PATH + "info_bar_title.tga",
|
||||
"children":
|
||||
(
|
||||
{
|
||||
"name" : "mission_text_10", "type" : "text",
|
||||
"x" : 5, "y" : 0,
|
||||
"text" : uiScriptLocale.BATTLE_PASS_MISSION_STATUS,
|
||||
"fontsize" : "LARGE",
|
||||
"color" : 0xFFFEE3AE,
|
||||
# "text_horizontal_align" : "center",
|
||||
# "horizontal_align" : "center",
|
||||
},
|
||||
),
|
||||
},
|
||||
{
|
||||
"name" : "mission_text_0", "type" : "text",
|
||||
"x" : 5, "y" : 42,
|
||||
"text" : "",
|
||||
},
|
||||
{
|
||||
"name" : "mission_image_20", "type" : "image",
|
||||
"x" : 0, "y" : 65,
|
||||
"image" : ROOT_PATH + "info_bar_title.tga",
|
||||
"children":
|
||||
(
|
||||
{
|
||||
"name" : "mission_text_20", "type" : "text",
|
||||
"x" : 5, "y" : 0,
|
||||
"text" : uiScriptLocale.BATTLE_PASS_MISSION_INFO,
|
||||
"fontsize" : "LARGE",
|
||||
"color" : 0xFFFEE3AE,
|
||||
# "text_horizontal_align" : "center",
|
||||
# "horizontal_align" : "center",
|
||||
},
|
||||
),
|
||||
},
|
||||
{
|
||||
"name" : "mission_text_1", "type" : "text",
|
||||
"x" : 5, "y" : 85,
|
||||
"text" : "",
|
||||
},
|
||||
{
|
||||
"name" : "mission_image_2", "type" : "image",
|
||||
"x" : 0, "y" : 101,
|
||||
"image" : ROOT_PATH + "info_bar_even.tga",
|
||||
"children":
|
||||
(
|
||||
{
|
||||
"name" : "mission_text_2", "type" : "text",
|
||||
"x" : 5, "y" : 2,
|
||||
"text" : "",
|
||||
},
|
||||
),
|
||||
},
|
||||
{
|
||||
"name" : "mission_text_3", "type" : "text",
|
||||
"x" : 5, "y" : 121,
|
||||
"text" : "",
|
||||
},
|
||||
{
|
||||
"name" : "mission_image_30", "type" : "image",
|
||||
"x" : 0, "y" : 149,
|
||||
"image" : ROOT_PATH + "info_bar_title.tga",
|
||||
"children":
|
||||
(
|
||||
{
|
||||
"name" : "mission_text_30", "type" : "text",
|
||||
"x" : 5, "y" : 0,
|
||||
"text" : uiScriptLocale.BATTLE_PASS_DESCRIPTION,
|
||||
"fontsize" : "LARGE",
|
||||
"color" : 0xFFFEE3AE,
|
||||
# "text_horizontal_align" : "center",
|
||||
# "horizontal_align" : "center",
|
||||
},
|
||||
),
|
||||
},
|
||||
{
|
||||
"name" : "mission_text_4", "type" : "text",
|
||||
"x" : 5, "y" : 169,
|
||||
"text" : "",
|
||||
},
|
||||
{
|
||||
"name" : "mission_image_5", "type" : "image",
|
||||
"x" : 0, "y" : 185,
|
||||
"image" : ROOT_PATH + "info_bar_even.tga",
|
||||
"children":
|
||||
(
|
||||
{
|
||||
"name" : "mission_text_5", "type" : "text",
|
||||
"x" : 5, "y" : 2,
|
||||
"text" : "",
|
||||
},
|
||||
),
|
||||
},
|
||||
{
|
||||
"name" : "mission_text_6", "type" : "text",
|
||||
"x" : 5, "y" : 205,
|
||||
"text" : "",
|
||||
},
|
||||
),
|
||||
},
|
||||
),
|
||||
},
|
||||
## General Info Border
|
||||
{
|
||||
"name" : "BorderInfoGeneral", "type" : "thinboard_circle",
|
||||
"x" : 320, "y" : 58,
|
||||
"width" : 207, "height" : 229,
|
||||
"children":
|
||||
(
|
||||
{
|
||||
"name" : "bgImageGeneral", "type" : "image",
|
||||
"x" : 3, "y" : 3,
|
||||
"image" : ROOT_PATH + "general_image.tga",
|
||||
"children":
|
||||
(
|
||||
{
|
||||
"name" : "generalImageTitle", "type" : "image",
|
||||
"x" : 0, "y" : 0,
|
||||
"image" : ROOT_PATH + "title_bar_special.tga",
|
||||
"children":
|
||||
(
|
||||
{
|
||||
"name" : "generalTitleText", "type" : "text",
|
||||
"x" : 100, "y" : 4,
|
||||
"text" : uiScriptLocale.BATTLE_PASS_INFO,
|
||||
"text_horizontal_align" : "center",
|
||||
"text_color" : 0xffffeea6,
|
||||
},
|
||||
),
|
||||
},
|
||||
{
|
||||
"name" : "general_text_0", "type" : "text",
|
||||
"x" : 5, "y" : 27,
|
||||
"text" : "",
|
||||
},
|
||||
{
|
||||
"name" : "general_image_1", "type" : "image",
|
||||
"x" : 0, "y" : 43,
|
||||
"image" : ROOT_PATH + "info_bar_even.tga",
|
||||
"children":
|
||||
(
|
||||
{
|
||||
"name" : "general_text_1", "type" : "text",
|
||||
"x" : 5, "y" : 2,
|
||||
"text" : "",
|
||||
},
|
||||
),
|
||||
},
|
||||
{
|
||||
"name" : "general_text_2", "type" : "text",
|
||||
"x" : 5, "y" : 63,
|
||||
"text" : "",
|
||||
},
|
||||
{
|
||||
"name" : "general_image_3", "type" : "image",
|
||||
"x" : 0, "y" : 79,
|
||||
"image" : ROOT_PATH + "info_bar_even.tga",
|
||||
"children":
|
||||
(
|
||||
{
|
||||
"name" : "general_text_3", "type" : "text",
|
||||
"x" : 5, "y" : 2,
|
||||
"text" : "",
|
||||
},
|
||||
),
|
||||
},
|
||||
{
|
||||
"name" : "general_text_4", "type" : "text",
|
||||
"x" : 5, "y" : 99,
|
||||
"text" : uiScriptLocale.BATTLE_PASS_FINISHED,
|
||||
},
|
||||
{
|
||||
"name" : "totalProgressText", "type" : "text",
|
||||
"x" : 100, "y" : 120,
|
||||
"text" : uiScriptLocale.BATTLE_PASS_TOTAL_PROGRESS,
|
||||
"text_horizontal_align" : "center",
|
||||
},
|
||||
{
|
||||
"name" : "gaugeImageBack", "type" : "image",
|
||||
"x" : 2, "y" : 137,
|
||||
"image" : ROOT_PATH + "total_progress_empty.tga",
|
||||
"children":
|
||||
(
|
||||
{
|
||||
"name" : "gaugeImage", "type" : "expanded_image",
|
||||
"x" : 8, "y" : 2,
|
||||
"image" : ROOT_PATH + "total_progress_full.tga",
|
||||
},
|
||||
),
|
||||
},
|
||||
{
|
||||
"name" : "RankingButton", "type" : "button",
|
||||
"x" : 5, "y" : 160,
|
||||
"default_image" : ROOT_PATH + "ranking_normal.tga",
|
||||
"over_image" : ROOT_PATH + "ranking_over.tga",
|
||||
"down_image" : ROOT_PATH + "ranking_down.tga",
|
||||
},
|
||||
{
|
||||
"name" : "RewardButton", "type" : "button",
|
||||
"x" : 5, "y" : 195,
|
||||
"default_image" : ROOT_PATH + "reward_normal.tga",
|
||||
"over_image" : ROOT_PATH + "reward_over.tga",
|
||||
"down_image" : ROOT_PATH + "reward_down.tga",
|
||||
},
|
||||
{
|
||||
"name" : "RewardItems", "type" : "grid_table",
|
||||
"x" : 100, "y" : 155,
|
||||
"start_index" : 0,
|
||||
"x_count" : 3, "y_count" : 2,
|
||||
"x_step" : 32, "y_step" : 32,
|
||||
"image" : "d:/ymir work/ui/public/Slot_Base.sub"
|
||||
},
|
||||
),
|
||||
},
|
||||
),
|
||||
},
|
||||
## Tab Control Window
|
||||
{
|
||||
"name" : "tab_control", "type" : "window",
|
||||
"x" : 332, "y" : 32,
|
||||
"width" : 171, "height" : 29,
|
||||
"children" :
|
||||
(
|
||||
{
|
||||
"name" : "tab_01", "type" : "image",
|
||||
"x" : 0, "y" : 0,
|
||||
"width" : 171, "height" : 29,
|
||||
"image" : ROOT_PATH + "category_btn_1.tga",
|
||||
},
|
||||
{
|
||||
"name" : "tab_02", "type" : "image",
|
||||
"x" : 0, "y" : 0,
|
||||
"width" : 171, "height" : 29,
|
||||
"image" : ROOT_PATH + "category_btn_2.tga",
|
||||
},
|
||||
{
|
||||
"name" : "tab_button_01", "type" : "radio_button",
|
||||
"x" : 3, "y" : 0,
|
||||
"width" : 83, "height" : 29,
|
||||
},
|
||||
{
|
||||
"name" : "tab_button_02", "type" : "radio_button",
|
||||
"x" : 86, "y" : 0,
|
||||
"width" : 83, "height" : 29,
|
||||
},
|
||||
),
|
||||
},
|
||||
),
|
||||
},
|
||||
),
|
||||
}
|
||||
Reference in New Issue
Block a user