Files
AVA2/upstream/python-root/uiscript/nameinputwindow.py
T

106 lines
2.7 KiB
Python

import localeInfo
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" :
(
{
"name" : "Titlebar",
"type" : "titlebar",
"style" : ("attach",),
"x" : 0,
"y" : 0,
"width" : HATCHING_WINDOW_WIDTH - 2,
"children" :
(
{ "name":"TitleName", "type":"text", "x":0, "y":0, "text":"", "all_align":"center" },
),
},
{
"name" : "SlotBG",
"type" : "expanded_image",
"style" : ("attach",),
"x" : 68,
"y" : 34,
"image" : "d:/ymir work/ui/pet/Pet_Incu_slot_001.tga",
},
{
"name" : "ItemSlot",
"type" : "slot",
"x" : 68 + 4,
"y" : 34 + 4,
"width" : 32,
"height" : 32,
"slot" : ({"index":0, "x":0, "y":0, "width":32, "height":32,},),
},
{
"name" : "HatchingMoneyWindow", "type" : "window", "x" : 13, "y" : 132, "width" : 150, "height" : 14, "style" : ("attach",),
"children" :
(
{"name":"HatchingMoney", "type":"text", "x":0, "y":0, "text": localeInfo.NAME_INPUT_PRICE, "r":1.0, "g":1.0, "b":1.0, "a":1.0, "all_align" : "center"},
),
},
{
"name" : "acceptbtn",
"type" : "button",
"x" : 39,
"y" : 151,
"text" : localeInfo.UI_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",
},
{
"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" : "InputString",
"type" : "editline",
"x" : 11,
"y" : 28,
"width" : 129,
"height" : 16,
"input_limit" : 25,
},
),
},
{
"name" : "PetNamingTitleWindow", "type" : "window", "x" : 22, "y" : 86, "width" : 130, "height" : 14, "style" : ("attach",),
"children" :
(
{"name":"PetNamingTitle", "type":"text", "x":0, "y":0, "text":localeInfo.NAME_INPUT_TEXT, "all_align" : "center"},
),
},
),
},
),
}