Tipologie server: -
*Resursă folosită: -
*ServerFiles utilizat: Clean
*Syserr: N-am.
Poză:
*Detalii suplimentare: Tot subiectul este specificat în titlu!
*Detalii suplimentare: Tot subiectul este specificat în titlu!
Cod: Selectaţi tot
"default_image" : "d:/ymir work/ui/public/parameter_slot_02.sub",
"over_image" : "d:/ymir work/ui/public/parameter_slot_02.sub",
"down_image" : "d:/ymir work/ui/public/parameter_slot_02.sub",Cod: Selectaţi tot
d:/ymir work/ui/public/parameter_slot_03.sub

{
"name" : "Owner_Accept_Light",
"type" : "button",
"x" : 131,
"y" : 135,
"default_image" : "d:/ymir work/ui/game/windows/accept_button_off.sub",
"over_image" : "d:/ymir work/ui/game/windows/accept_button_off.sub",
"down_image" : "d:/ymir work/ui/game/windows/accept_button_on.sub",
},
{
"name" : "Owner_Accept_Button",
"type" : "toggle_button",
"x" : 150,
"y" : 135,
"text" : uiScriptLocale.EXCHANGE_ACCEPT,
"default_image" : "d:/ymir work/ui/public/small_button_01.sub",
"over_image" : "d:/ymir work/ui/public/small_button_02.sub",
"down_image" : "d:/ymir work/ui/public/small_button_03.sub",
},
Cum arată acum?



Cod: Selectaţi tot
"width" : 170,
"height" : 90,Cod: Selectaţi tot
"image" : "d:/ymir work/ui/public/Parameter_Slot_03.sub",
#ExchangeDialog.py ~ 24 Slot Item
import uiScriptLocale
ROOT = "d:/ymir work/ui/game/"
window = {
"name" : "ExchangeDialog",
"x" : 0,
"y" : 0,
"style" : ("movable", "float",),
"width" : 400,
"height" : 200,
"children" :
(
{
"name" : "board",
"type" : "board",
"style" : ("attach",),
"x" : 0,
"y" : 0,
"width" : 400,
"height" : 200,
"children" :
(
## Title
{
"name" : "TitleBar",
"type" : "titlebar",
"style" : ("attach",),
"x" : 8,
"y" : 8,
"width" : 384,
"color" : "gray",
"children" :
(
{ "name":"TitleName", "type":"text", "x":192, "y":3, "text":uiScriptLocale.EXCHANGE_TITLE, "text_horizontal_align":"center" },
),
},
## MiddleBar
{
"name" : "Middle_Bar",
"type" : "image",
"x" : 200,
"y" : 31,
"image" : ROOT + "windows/middlebar.sub",
},
## Owner
{
"name" : "Owner",
"type" : "window",
"x" : 200,
"y" : 33,
"width" : 200,
"height" : 150,
"children" :
(
{
"name" : "Owner_Slot",
"type" : "grid_table",
"start_index" : 0,
"x" : 0,
"y" : 0,
"x_count" : 6,
"y_count" : 4,
"x_step" : 32,
"y_step" : 32,
"x_blank" : 0,
"y_blank" : 0,
"image" : "d:/ymir work/ui/public/slot_base.sub",
},
{
"name" : "Owner_Money",
"type" : "button",
"x" : 0,
"y" : 136,
#"image" : "d:/ymir work/ui/public/parameter_slot_03.sub",
"default_image" : "d:/ymir work/ui/public/parameter_slot_03.sub",
"over_image" : "d:/ymir work/ui/public/parameter_slot_03.sub",
"down_image" : "d:/ymir work/ui/public/parameter_slot_03.sub",
"children" :
(
{
"name" : "Owner_Money_Value",
"type" : "text",
"x" : 84,
"y" : 2,
"text" : "1234567",
"text_horizontal_align" : "right",
},
),
},
{
"name" : "Owner_Accept_Light",
"type" : "button",
"x" : 131,
"y" : 135,
"default_image" : "d:/ymir work/ui/game/windows/accept_button_off.sub",
"over_image" : "d:/ymir work/ui/game/windows/accept_button_off.sub",
"down_image" : "d:/ymir work/ui/game/windows/accept_button_on.sub",
},
{
"name" : "Owner_Accept_Button",
"type" : "toggle_button",
"x" : 150,
"y" : 135,
"text" : uiScriptLocale.EXCHANGE_ACCEPT,
"default_image" : "d:/ymir work/ui/public/small_button_01.sub",
"over_image" : "d:/ymir work/ui/public/small_button_02.sub",
"down_image" : "d:/ymir work/ui/public/small_button_03.sub",
},
),
},
## Target
{
"name" : "Target",
"type" : "window",
"x" : 10,
"y" : 33,
"width" : 200,
"height" : 150,
"children" :
(
{
"name" : "Target_Slot",
"type" : "grid_table",
"start_index" : 0,
"x" : 0,
"y" : 0,
"x_count" : 6,
"y_count" : 4,
"x_step" : 32,
"y_step" : 32,
"x_blank" : 0,
"y_blank" : 0,
"image" : "d:/ymir work/ui/public/slot_base.sub",
},
{
"name" : "Target_Money",
"type" : "image",
"x" : 0,
"y" : 135,
"image" : "d:/ymir work/ui/public/parameter_slot_03.sub",
"children" :
(
{
"name" : "Target_Money_Value",
"type" : "text",
"x" : 84,
"y" : 2,
"text" : "1234567",
"text_horizontal_align" : "right",
},
),
},
{
"name" : "Target_Accept_Light",
"type" : "button",
"x" : 91,
"y" : 135,
"default_image" : "d:/ymir work/ui/game/windows/accept_button_off.sub",
"over_image" : "d:/ymir work/ui/game/windows/accept_button_off.sub",
"down_image" : "d:/ymir work/ui/game/windows/accept_button_on.sub",
},
),
},
),
},
),
}
pickmoneydialog.py
import uiScriptLocale
window = {
"name" : "PickMoneyDialog",
"x" : 100,
"y" : 100,
"style" : ("movable", "float",),
"width" : 170,
"height" : 90,
"children" :
(
{
"name" : "board",
"type" : "board_with_titlebar",
"x" : 0,
"y" : 0,
"width" : 205,
"height" : 90,
"title" : uiScriptLocale.PICK_MONEY_TITLE,
"children" :
(
## Money Slot
{
"name" : "money_slot",
"type" : "image",
"x" : 20,
"y" : 34,
"image" : "d:/ymir work/ui/public/Parameter_Slot_03.sub",
"children" :
(
{
"name" : "money_value",
"type" : "editline",
"x" : 3,
"y" : 2,
"width" : 60,
"height" : 18,
"input_limit" : 6,
"only_number" : 1,
"text" : "1",
},
{
"name" : "max_value",
"type" : "text",
"x" : 80,
"y" : 3,
"text" : "/ 999999",
},
),
},
## Button
{
"name" : "accept_button",
"type" : "button",
"x" : 100 - 61 - 5,
"y" : 58,
"text" : uiScriptLocale.OK,
"default_image" : "d:/ymir work/ui/public/middle_button_01.sub",
"over_image" : "d:/ymir work/ui/public/middle_button_02.sub",
"down_image" : "d:/ymir work/ui/public/middle_button_03.sub",
},
{
"name" : "cancel_button",
"type" : "button",
"x" : 100 + 5,
"y" : 58,
"text" : uiScriptLocale.CANCEL,
"default_image" : "d:/ymir work/ui/public/middle_button_01.sub",
"over_image" : "d:/ymir work/ui/public/middle_button_02.sub",
"down_image" : "d:/ymir work/ui/public/middle_button_03.sub",
},
),
},
),
}
T/C!
Utilizatori ce ce navighează pe acest forum: Niciun utilizator înregistrat și 55 vizitatori