140 lines
3.2 KiB
Python
140 lines
3.2 KiB
Python
import uiScriptLocale
|
|
|
|
HATCHING_WINDOW_WIDTH = 176
|
|
HATCHING_WINDOW_HEIGHT = 184
|
|
|
|
window = {
|
|
"name" : "PetHatchingWindow",
|
|
"style" : ("movable", "float", "animate",),
|
|
|
|
"x" : SCREEN_WIDTH / 2 - HATCHING_WINDOW_WIDTH / 2,
|
|
"y" : SCREEN_HEIGHT / 2 - HATCHING_WINDOW_HEIGHT / 2,
|
|
|
|
"width" : HATCHING_WINDOW_WIDTH,
|
|
"height" : HATCHING_WINDOW_HEIGHT,
|
|
|
|
"children" :
|
|
(
|
|
{
|
|
"name" : "board",
|
|
"type" : "board",
|
|
"style" : ("attach",),
|
|
|
|
"x" : 0,
|
|
"y" : 0,
|
|
|
|
"width" : HATCHING_WINDOW_WIDTH,
|
|
"height" : HATCHING_WINDOW_HEIGHT,
|
|
|
|
"children" :
|
|
(
|
|
# Pet Hatching Window Title
|
|
{
|
|
"name" : "PetHatching_TitleBar",
|
|
"type" : "titlebar",
|
|
"style" : ("attach",),
|
|
|
|
"x" : 0,
|
|
"y" : 0,
|
|
|
|
"width" : HATCHING_WINDOW_WIDTH - 2,
|
|
|
|
"children" :
|
|
(
|
|
{ "name":"TitleName", "type":"text", "x":0, "y":0, "text":uiScriptLocale.PET_SYSTEM_1, "all_align":"center" },
|
|
),
|
|
},
|
|
|
|
## Pet Hatching Slot Img
|
|
{
|
|
"name" : "SlotBG",
|
|
"type" : "expanded_image",
|
|
"style" : ("attach",),
|
|
"x" : 68,
|
|
"y" : 34,
|
|
"image" : "d:/ymir work/ui/pet/Pet_Incu_slot_001.tga",
|
|
},
|
|
|
|
## Pet Hatching Slot
|
|
{
|
|
"name" : "HatchingItemSlot",
|
|
"type" : "slot",
|
|
|
|
#"image" : "d:/ymir work/ui/pet/Pet_Incu_slot_001.tga",
|
|
|
|
"x" : 68 + 4,
|
|
"y" : 34 + 4,
|
|
"width" : 32,
|
|
"height" : 32,
|
|
|
|
"slot" : ({"index":0, "x":0, "y":0, "width":32, "height":32,},),
|
|
},
|
|
|
|
## Pet Hatching Money
|
|
{
|
|
"name" : "HatchingMoneyWindow", "type" : "window", "x" : 13, "y" : 132, "width" : 150, "height" : 14, "style" : ("attach",),
|
|
"children" :
|
|
(
|
|
{"name":"HatchingMoney", "type":"text", "x":0, "y":0, "text": uiScriptLocale.SHOP_CREATE_PRICE+" 100.000 Yang", "r":1.0, "g":1.0, "b":1.0, "a":1.0, "all_align" : "center"},
|
|
),
|
|
},
|
|
|
|
## Pet Hatching Button
|
|
{
|
|
"name" : "HatchingButton",
|
|
"type" : "button",
|
|
|
|
"x" : 39,
|
|
"y" : 151,
|
|
|
|
"text" : uiScriptLocale.ACCEPT,
|
|
|
|
"default_image" : "d:/ymir work/ui/pattern/LargeB_Button_01.tga",
|
|
"over_image" : "d:/ymir work/ui/pattern/LargeB_Button_02.tga",
|
|
"down_image" : "d:/ymir work/ui/pattern/LargeB_Button_03.tga",
|
|
},
|
|
|
|
## Pet Naming Area
|
|
{
|
|
"name" : "PetNamingBG",
|
|
"type" : "expanded_image",
|
|
"style" : ("attach",),
|
|
|
|
"x" : 12,
|
|
"y" : 78,
|
|
|
|
"image" : "d:/ymir work/ui/pet/Pet_Incu_001.tga",
|
|
|
|
"children" :
|
|
(
|
|
## Pet Name Edit
|
|
{
|
|
"name" : "pet_name",
|
|
"type" : "editline",
|
|
|
|
"x" : 11,
|
|
"y" : 28,
|
|
|
|
"width" : 129,
|
|
"height" : 16,
|
|
|
|
"input_limit" : 20,
|
|
|
|
#"text" : uiScriptLocale.WHISPER_NAME,
|
|
},
|
|
),
|
|
},
|
|
|
|
## Pet Naming Title
|
|
{
|
|
"name" : "PetNamingTitleWindow", "type" : "window", "x" : 22, "y" : 86, "width" : 130, "height" : 14, "style" : ("attach",),
|
|
"children" :
|
|
(
|
|
{"name":"PetNamingTitle", "type":"text", "x":0, "y":0, "text":uiScriptLocale.CREATE_NAME, "all_align" : "center"},
|
|
),
|
|
},
|
|
),
|
|
},
|
|
),
|
|
}
|