AVA2 cross-platform client parity baseline
This commit is contained in:
@@ -0,0 +1,316 @@
|
||||
import uiScriptLocale
|
||||
|
||||
LOCALE_PATH = uiScriptLocale.WINDOWS_PATH
|
||||
ROOT_PATH = "d:/ymir work/ui/game/windows/"
|
||||
ROOT = "d:/ymir work/ui/game/"
|
||||
PET_UI_ROOT = "d:/ymir work/ui/pet/"
|
||||
|
||||
MINI_WINDOW_WIDTH = 111
|
||||
MINI_WINDOW_HEIGHT = 44
|
||||
|
||||
## Slot File
|
||||
BASE_SLOT_FILE = "d:/ymir work/ui/public/slot_base.sub"
|
||||
PET_MINI_INFO_SLOT_FILE = "d:/ymir work/ui/pet/mini_window/pet_slot_corver.sub"
|
||||
|
||||
## EXP Gague interval
|
||||
EXP_GAGUE_INTERVAL = 2
|
||||
EXP_GAGUE_SCALE = 0.8
|
||||
EXP_IMG_WIDTH = 16 * EXP_GAGUE_SCALE
|
||||
EXP_IMG_HEIGHT = 16 * EXP_GAGUE_SCALE
|
||||
|
||||
##LifeTime Gauge
|
||||
LIFE_TIME_SCALE_X = 0.536
|
||||
LIFE_TIME_SCALE_Y = 0.636
|
||||
|
||||
## Skill Slot
|
||||
SKILL_SLOT_SCALE_X = 0.5
|
||||
SKILL_SLOT_SCALE_Y = 0.5
|
||||
|
||||
window = {
|
||||
"name" : "PetMiniInformationWindow",
|
||||
"style" : ("movable", "float", "animate",),
|
||||
|
||||
"x" : 10,
|
||||
"y" : SCREEN_HEIGHT - 150,
|
||||
|
||||
"width" : MINI_WINDOW_WIDTH,
|
||||
"height" : MINI_WINDOW_HEIGHT,
|
||||
|
||||
"children" :
|
||||
(
|
||||
## Pet Mini Information Window Back Ground
|
||||
{
|
||||
"name" : "main_bg",
|
||||
"type" : "expanded_image",
|
||||
"style" : ("attach",),
|
||||
|
||||
"x" : 0,
|
||||
"y" : 0,
|
||||
|
||||
"image" : "d:/ymir work/ui/pet/mini_window/pet_mini_info_back.sub",
|
||||
|
||||
"width" : MINI_WINDOW_WIDTH,
|
||||
"height" : MINI_WINDOW_HEIGHT,
|
||||
|
||||
"children" :
|
||||
(
|
||||
## Icon Slot
|
||||
{
|
||||
"name" : "icon_base",
|
||||
"type" : "window",
|
||||
"style" : ("attach",),
|
||||
|
||||
"x" : 0,
|
||||
"y" : 0,
|
||||
|
||||
"width" : 32 + 3,
|
||||
"height" : MINI_WINDOW_HEIGHT,
|
||||
|
||||
"children" :
|
||||
(
|
||||
## Main Slot Img
|
||||
{
|
||||
"name" : "main_slot_img",
|
||||
"type" : "expanded_image",
|
||||
"style" : ("attach",),
|
||||
|
||||
"x" : 3,
|
||||
"y" : 3,
|
||||
|
||||
"image" : PET_MINI_INFO_SLOT_FILE,
|
||||
|
||||
"width" : 32,
|
||||
"height" : 38,
|
||||
},
|
||||
|
||||
## Main Slot
|
||||
{
|
||||
"name" : "pet_icon_slot",
|
||||
"type" : "button",
|
||||
"style" : ("attach",),
|
||||
|
||||
"x" : 3,
|
||||
"y" : 6,
|
||||
"width" : 35,
|
||||
"height" : MINI_WINDOW_HEIGHT,
|
||||
"default_image" : PET_MINI_INFO_SLOT_FILE,
|
||||
"over_image" : PET_MINI_INFO_SLOT_FILE,
|
||||
"down_image" : PET_MINI_INFO_SLOT_FILE,
|
||||
},
|
||||
|
||||
## Main Slot Effect
|
||||
{
|
||||
"name" : "pet_icon_slot_ani_img",
|
||||
"type" : "ani_image",
|
||||
"style" : ("attach",),
|
||||
|
||||
"x" : 3,
|
||||
"y" : 3,
|
||||
|
||||
"delay" : 6,
|
||||
|
||||
"images" :
|
||||
(
|
||||
"D:/Ymir Work/UI/pet/mini_window/main_slot_effect/main_slot_effect1.sub",
|
||||
"D:/Ymir Work/UI/pet/mini_window/main_slot_effect/main_slot_effect2.sub",
|
||||
"D:/Ymir Work/UI/pet/mini_window/main_slot_effect/main_slot_effect3.sub",
|
||||
"D:/Ymir Work/UI/pet/mini_window/main_slot_effect/main_slot_effect4.sub",
|
||||
"D:/Ymir Work/UI/pet/mini_window/main_slot_effect/main_slot_effect5.sub",
|
||||
"D:/Ymir Work/UI/pet/mini_window/main_slot_effect/main_slot_effect6.sub",
|
||||
"D:/Ymir Work/UI/pet/mini_window/main_slot_effect/main_slot_effect6.sub",
|
||||
"D:/Ymir Work/UI/pet/mini_window/main_slot_effect/main_slot_effect6.sub",
|
||||
"D:/Ymir Work/UI/pet/mini_window/main_slot_effect/main_slot_effect5.sub",
|
||||
"D:/Ymir Work/UI/pet/mini_window/main_slot_effect/main_slot_effect4.sub",
|
||||
"D:/Ymir Work/UI/pet/mini_window/main_slot_effect/main_slot_effect3.sub",
|
||||
"D:/Ymir Work/UI/pet/mini_window/main_slot_effect/main_slot_effect2.sub",
|
||||
"D:/Ymir Work/UI/pet/mini_window/main_slot_effect/main_slot_effect1.sub",
|
||||
),
|
||||
},
|
||||
),
|
||||
},
|
||||
|
||||
## LIFE Time Gauge Bar
|
||||
{
|
||||
"name" : "LifeGaugeWindow", "type" : "window", "x" : 36, "y":17, "width" : 71, "height" : 7, "style" : ("attach",),
|
||||
"children" :
|
||||
(
|
||||
## left img
|
||||
{
|
||||
"name" : "gauge_left",
|
||||
"type" : "expanded_image",
|
||||
"style" : ("attach",),
|
||||
|
||||
"x" : 0,
|
||||
"y" : 0,
|
||||
|
||||
"image" : "D:/Ymir Work/UI/Pattern/gauge_slot_left.tga",
|
||||
},
|
||||
## right img
|
||||
{
|
||||
"name" : "gauge_right",
|
||||
"type" : "expanded_image",
|
||||
"style" : ("attach",),
|
||||
|
||||
"x" : 55,
|
||||
"y" : 0,
|
||||
|
||||
"image" : "D:/Ymir Work/UI/Pattern/gauge_slot_right.tga",
|
||||
},
|
||||
## center img
|
||||
{
|
||||
"name" : "gauge_center",
|
||||
"type" : "expanded_image",
|
||||
"style" : ("attach",),
|
||||
|
||||
"x" : 10,
|
||||
"y" : 0,
|
||||
|
||||
"x_scale" : 3.1875,
|
||||
"y_scale" : 1.0,
|
||||
|
||||
"image" : "D:/Ymir Work/UI/Pattern/gauge_slot_center.tga",
|
||||
},
|
||||
|
||||
## red gauge
|
||||
{
|
||||
"name" : "LifeGauge",
|
||||
"type" : "ani_image",
|
||||
"style" : ("attach",),
|
||||
|
||||
"x" : 10,
|
||||
"y" : 0,
|
||||
|
||||
"x_scale" : LIFE_TIME_SCALE_X,
|
||||
"y_scale" : LIFE_TIME_SCALE_Y,
|
||||
|
||||
"delay" : 6,
|
||||
|
||||
"images" :
|
||||
(
|
||||
"D:/Ymir Work/UI/Pattern/HPGauge/01.tga",
|
||||
"D:/Ymir Work/UI/Pattern/HPGauge/02.tga",
|
||||
"D:/Ymir Work/UI/Pattern/HPGauge/03.tga",
|
||||
"D:/Ymir Work/UI/Pattern/HPGauge/04.tga",
|
||||
"D:/Ymir Work/UI/Pattern/HPGauge/05.tga",
|
||||
"D:/Ymir Work/UI/Pattern/HPGauge/06.tga",
|
||||
"D:/Ymir Work/UI/Pattern/HPGauge/07.tga",
|
||||
),
|
||||
},
|
||||
),
|
||||
}, ## End of LIFE Time Gauge Bar
|
||||
|
||||
## Skill Slot 1
|
||||
{
|
||||
"name" : "mini_skill_slot0",
|
||||
"type" : "slot",
|
||||
"style" : ("attach",),
|
||||
|
||||
"x" : 0,
|
||||
"y" : 0,
|
||||
"width" : 96,
|
||||
"height" : 16,
|
||||
|
||||
"x_scale" : SKILL_SLOT_SCALE_X,
|
||||
"y_scale" : SKILL_SLOT_SCALE_Y,
|
||||
|
||||
"image" : BASE_SLOT_FILE,
|
||||
|
||||
"slot" : ({"index":0, "x":36, "y":25, "width":16, "height":16,},{"index":1, "x":58, "y":25, "width":16, "height":16,},{"index":2, "x":80, "y":25, "width":16, "height":16,},),
|
||||
},
|
||||
## EXP Gauge
|
||||
{
|
||||
"name" : "pet_mini_info_exp_gauge_board",
|
||||
"type" : "window",
|
||||
"style": ("attach",),
|
||||
|
||||
"x" : 36,
|
||||
"y" : 3,
|
||||
|
||||
"width" : 78,
|
||||
"height" : 13,
|
||||
|
||||
"children" :
|
||||
(
|
||||
{
|
||||
"name" : "pet_mini_EXPGauge_01",
|
||||
"type" : "expanded_image",
|
||||
"style" : ("attach",),
|
||||
|
||||
"x_scale" : EXP_GAGUE_SCALE,
|
||||
"y_scale" : EXP_GAGUE_SCALE,
|
||||
|
||||
"x" : 0,
|
||||
"y" : 0,
|
||||
|
||||
"image" : PET_UI_ROOT + "exp_gauge/exp_on.sub",
|
||||
},
|
||||
{
|
||||
"name" : "pet_mini_EXPGauge_02",
|
||||
"type" : "expanded_image",
|
||||
"style" : ("attach",),
|
||||
|
||||
"x_scale" : EXP_GAGUE_SCALE,
|
||||
"y_scale" : EXP_GAGUE_SCALE,
|
||||
|
||||
"x" : EXP_IMG_WIDTH + EXP_GAGUE_INTERVAL,
|
||||
"y" : 0,
|
||||
|
||||
"image" : PET_UI_ROOT + "exp_gauge/exp_on.sub",
|
||||
},
|
||||
{
|
||||
"name" : "pet_mini_EXPGauge_03",
|
||||
"type" : "expanded_image",
|
||||
"style" : ("attach",),
|
||||
|
||||
"x_scale" : EXP_GAGUE_SCALE,
|
||||
"y_scale" : EXP_GAGUE_SCALE,
|
||||
|
||||
"x" : EXP_IMG_WIDTH * 2 + EXP_GAGUE_INTERVAL * 2,
|
||||
"y" : 0,
|
||||
|
||||
"image" : PET_UI_ROOT + "exp_gauge/exp_on.sub",
|
||||
},
|
||||
{
|
||||
"name" : "pet_mini_EXPGauge_04",
|
||||
"type" : "expanded_image",
|
||||
"style" : ("attach",),
|
||||
|
||||
"x_scale" : EXP_GAGUE_SCALE,
|
||||
"y_scale" : EXP_GAGUE_SCALE,
|
||||
|
||||
"x" : EXP_IMG_WIDTH * 3 + EXP_GAGUE_INTERVAL * 3,
|
||||
"y" : 0,
|
||||
|
||||
"image" : PET_UI_ROOT + "exp_gauge/exp_on.sub",
|
||||
},
|
||||
{
|
||||
"name" : "pet_mini_EXPGauge_05",
|
||||
"type" : "expanded_image",
|
||||
"style" : ("attach",),
|
||||
|
||||
"x_scale" : EXP_GAGUE_SCALE,
|
||||
"y_scale" : EXP_GAGUE_SCALE,
|
||||
|
||||
"x" : EXP_IMG_WIDTH * 4 + EXP_GAGUE_INTERVAL * 4,
|
||||
"y" : 0,
|
||||
|
||||
"image" : PET_UI_ROOT + "exp_gauge/item_exp_on.sub",
|
||||
},
|
||||
),
|
||||
}, #End of EXP
|
||||
{
|
||||
"name" : "icon_button",
|
||||
"type" : "window",
|
||||
|
||||
"x" : 0,
|
||||
"y" : 0,
|
||||
|
||||
"width" : 35,
|
||||
"height" : MINI_WINDOW_HEIGHT,
|
||||
|
||||
},
|
||||
),
|
||||
},
|
||||
|
||||
),
|
||||
}
|
||||
Reference in New Issue
Block a user