Problemă InventoryWindow

Totalitatea subiectelor care nu respectă regulamentul impus in sectiunea "Probleme şi Întrebări" vor fi stocate aici.
Închis
Avatar utilizator
*Madalin*
Nivel 3

Nivel 3
Mesaje: 321
Membru din: 14 Mar 2015, 20:35
Server: Nu e
Regat: Chunjo
Aprecieri: 6  
Mulţumiri: 6  
Medalii

Nu merge sa scot bara cu acele butoane de fiecare data cand le scot nu mai ma lasa in client . Imagine InventoryWindow.py
import uiScriptLocale
import item
import translate
import uiToolTip

EQUIPMENT_START_INDEX = 225

window = {
"name" : "InventoryWindow",

## 600 - (width + ????? ?? ??? 24 px)
"x" : SCREEN_WIDTH - 176 - 38 - 72 + 70,
"y" : SCREEN_HEIGHT - 50 - 565 -2,

"style" : ("movable", "float",),

"width" : 176 + 70,
"height" : 585,

"children" :
(
{
"name" : "buttonboard",
"type" : "board",
"style" : ("attach",),

"x" : 73 - 70,
"y" : 120,

"width" : 60,
"height" : 188+35+35+35+35 ,
"children" :
(
#Pier?cie? Gracza
{
"name" : "switchboot",
"type" : "button",
"x" : 8,
"y" : 9,

"default_image" : "locale/tr/ui/butoane/zmiana_eq01.tga",
"over_image" : "locale/tr/ui/butoane/zmiana_eq02.tga",
"down_image" : "locale/tr/ui/butoane/zmiana_eq03.tga",
},
#Ko?
{
"name" : "bonusuri",
"type" : "button",
"x" : 8 ,
"y" : 9+35,

"default_image" : "locale/tr/ui/butoane/bonus_button_01.tga",
"over_image" : "locale/tr/ui/butoane/bonus_button_02.tga",
"down_image" : "locale/tr/ui/butoane/bonus_button_03.tga",
},
#Teleportacja
{
"name" : "echipament",
"type" : "button",
"x" : 8 ,
"y" : 9+35+35,

"default_image" : "locale/tr/ui/butoane/schimba1.tga",
"over_image" : "locale/tr/ui/butoane/schimba2.tga",
"down_image" : "locale/tr/ui/butoane/schimba1.tga",
},
## Smocze kamienie
{
"name" : "antiexp",
"type" : "button",
"x" : 8 ,
"y" : 9+35+35+35,

"default_image" : "locale/tr/ui/butoane/7.tga",
"over_image" : "locale/tr/ui/butoane/8.tga",
"down_image" : "locale/tr/ui/butoane/7.tga",
},
# Badania
{
"name" : "depozit",
"type" : "button",
"x" : 8 ,
"y" : 9+35+35+35+35,

"default_image" : "locale/tr/ui/butoane/5.tga",
"over_image" : "locale/tr/ui/butoane/6.tga",
"down_image" : "locale/tr/ui/butoane/5.tga",
},
#Bs
{
"name" : "sterge",
"type" : "button",
"x" : 8 ,
"y" : 9+35+35+35+35+35,

"default_image" : "locale/tr/ui/butoane/sterge1.tga",
"over_image" : "locale/tr/ui/butoane/sterge2.tga",
"down_image" : "locale/tr/ui/butoane/sterge1.tga",
},
#Statystyki
{
"name" : "noaptezi",
"type" : "button",
"x" : 8 ,
"y" : 9+35+35+35+35+35+35,

"default_image" : "locale/tr/ui/butoane/noapte1.tga",
"over_image" : "locale/tr/ui/butoane/noapte2.tga",
"down_image" : "locale/tr/ui/butoane/noapte3.tga",
},
{
"name" : "realizari",
"type" : "button",
"x" : 8 ,
"y" : 9+35+35+35+35+35+35+35,

"default_image" : "locale/tr/ui/butoane/achivement1.tga",
"over_image" : "locale/tr/ui/butoane/achivement2.tga",
"down_image" : "locale/tr/ui/butoane/achivement3.tga",
},
{
"name" : "iesire",
"type" : "button",
"x" : 8 ,
"y" : 9+35+35+35+35+35+35+35+35,

"default_image" : "locale/tr/ui/butoane/exit1.tga",
"over_image" : "locale/tr/ui/butoane/exit2.tga",
"down_image" : "locale/tr/ui/butoane/exit3.tga",
},
),
},
## Inventory, Equipment Slots
{
"name" : "board",
"type" : "board",
"style" : ("attach",),

"x" : 37 + 45 + 30 - 70,
"y" : 0,

"width" : 176,
"height" : 580,

"children" :
(
## Title
{
"name" : "TitleBar",
"type" : "titlebar",
"style" : ("attach",),

"x" : 8,
"y" : 7,

"width" : 161,
"color" : "yellow",

"children" :
(
{ "name":"TitleName", "type":"text", "x":77, "y":3, "text":uiScriptLocale.INVENTORY_TITLE, "text_horizontal_align":"center" },
),
},

## Equipment Slot
{
"name" : "Equipment_Base",
"type" : "image",

"x" : 10,
"y" : 33,

"image" : "d:/ymir work/ui/equipment_bg_with_ring.tga",

"children" :
(

{
"name" : "EquipmentSlot",
"type" : "slot",

"x" : 3,
"y" : 3,

"width" : 150,
"height" : 182,

"slot" : (
{"index":EQUIPMENT_START_INDEX+0, "x":39, "y":37, "width":32, "height":64},
{"index":EQUIPMENT_START_INDEX+1, "x":39, "y":2, "width":32, "height":32},
{"index":EQUIPMENT_START_INDEX+2, "x":39, "y":145, "width":32, "height":32},
{"index":EQUIPMENT_START_INDEX+3, "x":75, "y":67, "width":32, "height":32},
{"index":EQUIPMENT_START_INDEX+4, "x":3, "y":3, "width":32, "height":96},
{"index":EQUIPMENT_START_INDEX+5, "x":114, "y":67, "width":32, "height":32},
{"index":EQUIPMENT_START_INDEX+6, "x":114, "y":35, "width":32, "height":32},
{"index":EQUIPMENT_START_INDEX+7, "x":2, "y":145, "width":32, "height":32},
{"index":EQUIPMENT_START_INDEX+8, "x":75, "y":145, "width":32, "height":32},
{"index":EQUIPMENT_START_INDEX+9, "x":114, "y":2, "width":32, "height":32},
{"index":EQUIPMENT_START_INDEX+10, "x":75, "y":35, "width":32, "height":32},
{"index":item.EQUIPMENT_RING1, "x":2, "y":106, "width":32, "height":32},
{"index":item.EQUIPMENT_RING2, "x":75, "y":106, "width":32, "height":32},
{"index":item.EQUIPMENT_BELT, "x":39, "y":106, "width":32, "height":32},
),
},
## MallButton
{
"name" : "MallButton",
"type" : "button",

"x" : 118,
"y" : 148,

"tooltip_text" : uiScriptLocale.MALL_TITLE,

"default_image" : "d:/ymir work/ui/game/TaskBar/Mall_Button_01.tga",
"over_image" : "d:/ymir work/ui/game/TaskBar/Mall_Button_02.tga",
"down_image" : "d:/ymir work/ui/game/TaskBar/Mall_Button_03.tga",
},
## Offline Shop Button
{
"name" : "OfflineShopButton",
"type" : "button",

"x" : 114,
"y" : 107,

"tooltip_text" : uiScriptLocale.TASKBAR_OFFLINE_SHOP,

"default_image" : "locale/tr/offlineshop/boton1.tga",
"over_image" : "locale/tr/offlineshop/boton2.tga",
"down_image" : "locale/tr/offlineshop/boton1.tga",
},
## CostumeButton
{
"name" : "CostumeButton",
"type" : "button",

"x" : 78,
"y" : 5,

"tooltip_text" : uiScriptLocale.COSTUME_TITLE,

"default_image" : "d:/ymir work/ui/game/taskbar/costume_Button_01.tga",
"over_image" : "d:/ymir work/ui/game/taskbar/costume_Button_02.tga",
"down_image" : "d:/ymir work/ui/game/taskbar/costume_Button_03.tga",
},
{
"name" : "Equipment_Tab_01",
"type" : "radio_button",

"x" : 86,
"y" : 161,

"default_image" : "d:/ymir work/ui/game/windows/tab_button_small_01.sub",
"over_image" : "d:/ymir work/ui/game/windows/tab_button_small_02.sub",
"down_image" : "d:/ymir work/ui/game/windows/tab_button_small_03.sub",

"children" :
(
{
"name" : "Equipment_Tab_01_Print",
"type" : "text",

"x" : 0,
"y" : 0,

"all_align" : "center",

"text" : "I",
},
),
},
{
"name" : "Equipment_Tab_02",
"type" : "radio_button",

"x" : 86 + 32,
"y" : 161,

"default_image" : "d:/ymir work/ui/game/windows/tab_button_small_01.sub",
"over_image" : "d:/ymir work/ui/game/windows/tab_button_small_02.sub",
"down_image" : "d:/ymir work/ui/game/windows/tab_button_small_03.sub",

"children" :
(
{
"name" : "Equipment_Tab_02_Print",
"type" : "text",

"x" : 0,
"y" : 0,

"all_align" : "center",

"text" : "II",
},
),
},
),
},

{
'name':'Envanter1geri',
'type':'radio_button',
"x" : 10,
"y" : 33 + 191,
'width':61,
'height':21,
'text':'Back',
'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',
},
{
'name':'Envanter1ileri',
'type':'radio_button',
"x" : 10 + 114,
"y" : 33 + 191,
'width':61,
'height':21,
'text':'Next',
'tooltip_text':'Catre pagina 2.',
'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',
},
{
'name':'Envanter2geri',
'type':'radio_button',
"x" : 10,
"y" : 33 + 191,
'width':61,
'height':21,
'text':'Back',
'tooltip_text':'Catre pagina 1.',
'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',
},
{
'name':'Envanter2ileri',
'type':'radio_button',
"x" : 10 + 114,
"y" : 33 + 191,
'width':61,
'height':21,
'text':'Next',
'tooltip_text':'Catre pagina 3.',
'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',
},
{
'name':'envanter3gerixd',
'type':'radio_button',
"x" : 10,
"y" : 33 + 191,
'width':61,
'height':21,
'text':'Back',
'tooltip_text':'Catre pagina 2.',
'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',
},
{
'name':'envanter3ilerixd',
'type':'radio_button',
"x" : 10 + 114,
"y" : 33 + 191,
'width':61,
'height':21,
'text':'Next',
'tooltip_text':'Catre pagina 4.',
'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',
},
{
'name':'envanter4gerixd',
'type':'radio_button',
"x" : 10,
"y" : 33 + 191,
'width':61,
'height':21,
'text':'Back',
'tooltip_text':'Catre pagina 3.',
'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',
},
{
'name':'envanter4ilerixd',
'type':'radio_button',
"x" : 10 + 114,
"y" : 33 + 191,
'width':61,
'height':21,
'text':'Next',
'tooltip_text':'Catre pagina 5.',
'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',
},
{
'name':'envanter5gerixd',
'type':'radio_button',
"x" : 10,
"y" : 33 + 191,
'width':61,
'height':21,
'text':'Back',
'tooltip_text':'Catre pagina 4.',
'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',
},
{
'name':'envanter5ilerixd',
'type':'radio_button',
"x" : 10 + 114,
"y" : 33 + 191,
'width':61,
'height':21,
'text':'Next',
'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',
},
{
'name':'page_slot',
'type':'image',
"x" : 10 + 47,
"y" : 33 + 191,
'image':'d:/ymir work/ui/public/Parameter_Slot_02.sub',
'children':
(
{
'name':'page_1',
'type':'text',
"x" : 30,
"y" : 2,
'text':'I',
'text_horizontal_align':'center'
},
{
'name':'page_2',
'type':'text',
"x" : 30,
"y" : 2,
'text':'II',
'text_horizontal_align':'center'
},
{
'name':'page_3',
'type':'text',
"x" : 30,
"y" : 2,
'text':'III',
'text_horizontal_align':'center'
},
{
'name':'page_4',
'type':'text',
"x" : 30,
"y" : 2,
'text':'IV',
'text_horizontal_align':'center'
},
{
'name':'page_5',
'type':'text',
"x" : 30,
"y" : 2,
'text':'V',
'text_horizontal_align':'center'
},
),
},

## Item Slot
{
"name" : "ItemSlot",
"type" : "grid_table",

"x" : 8,
"y" : 246,

"start_index" : 0,
"x_count" : 5,
"y_count" : 9,
"x_step" : 32,
"y_step" : 32,

"image" : "d:/ymir work/ui/public/Slot_Base.sub"
},

## Print
{
"name":"Money_Slot",
"type":"button",

"x":8,
"y":28,

"horizontal_align":"center",
"vertical_align":"bottom",

"default_image" : "d:/ymir work/ui/public/parameter_slot_05.sub",
"over_image" : "d:/ymir work/ui/public/parameter_slot_05.sub",
"down_image" : "d:/ymir work/ui/public/parameter_slot_05.sub",

"children" :
(
{
"name":"Money_Icon",
"type":"image",

"x":-18,
"y":2,

"image":"d:/ymir work/ui/game/windows/money_icon.sub",
},

{
"name" : "Money",
"type" : "text",

"x" : 3,
"y" : 3,

"horizontal_align" : "right",
"text_horizontal_align" : "right",

"text" : "123456789",
},
),
},

),
},
),
}
Avatar utilizator
[Tupeu]
Membru de Elita

Membru de Elita
Mesaje: 4101
Membru din: 28 Oct 2015, 16:16
Aprecieri: 35  
Mulţumiri: 2304  
 Contact:
Medalii

Trebuie scoasa si din uiinventory.py din root.

[ Postat de pe Android ] Imagine
Avatar utilizator
[Tupeu]
Membru de Elita

Membru de Elita
Mesaje: 4101
Membru din: 28 Oct 2015, 16:16
Aprecieri: 35  
Mulţumiri: 2304  
 Contact:
Medalii

Subiect inactiv. Arhivat !
Închis
Răspunsuri
4
Vizualizări
206
Răspunsuri
6
Vizualizări
544
Răspunsuri
2
Vizualizări
181

Înapoi la “Arhivă Probleme şi Întrebări”

  • Informaţie
  • Cine este conectat

    Utilizatori ce ce navighează pe acest forum: Google [Bot], Semrush [Bot] și 78 vizitatori