Problema butoane inventar

Totalitatea subiectelor care nu respectă regulamentul impus in sectiunea "Probleme şi Întrebări" vor fi stocate aici.
Închis
Avatar utilizator
[Mafia83]
Membru Club

Membru Club
Mesaje: 777
Membru din: 24 Feb 2016, 20:32
Server: Metin2KGB
Regat: Jinno
Aprecieri: 279  
Mulţumiri: 2287  
Discord: Copiază ID
 Contact:
Medalii

*Problemă/Întrebare: Butoane langa inventar.
Tipologie server: PvM
*Resursă folosită: M2KGB
*ServerFiles utilizat: M2KGB
*Syserr: Nu am nimic in sysser.
Poză:
Imagine
Imagine
*Detalii suplimentare:Am incercat sa adaug acel meniu de butoane in langa inventar si m-am impiedicat de problema... ca nu pot sa dau click pe ele, e ca si cum n-ar fi acolo acele butoane, am cautat o rezolvare 4 ore si nimic...

Inventorywindow.py
import uiScriptLocale
import item
import uiToolTip

EQUIPMENT_START_INDEX = 180

window = {
"name" : "InventoryWindow",

## 600 - (width + ˘ŻA˘¬ˇÍAEA˘¬ˇ¤I ¨¬IAI ˘Ňc˘Żiˇľa 24 px)
"x" : SCREEN_WIDTH - 176,
"y" : SCREEN_HEIGHT - 37 - 589+22,

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

"width" : 176+37,
"height" : 589+22,

"children" :
(
##Board Butoane
{
"name" : "buttonsboard",
"type" : "board",
"style" : ("attach",),

"x" : -40,
"y" : 0,

"width" : 60,
"height" : 260,

"children" :
(
#Pagina bonusuri
{
"name" : "Alaska_py",
"type" : "button",
"x" : 8,
"y" : 9,

"tooltip_text" : "Vezi Bonusurile",

"default_image" : "d:/ymir work/ui/game/12.tga",
"over_image" : "d:/ymir work/ui/game/12.tga",
"down_image" : "d:/ymir work/ui/game/11.tga",
},
#Bonusuri
{
"name" : "DSSButton",
"type" : "button",
"x" : 8,
"y" : 9+35,

"tooltip_text" : "Schimbare bonusuri",

"default_image" : "d:/ymir work/ui/game/14.tga",
"over_image" : "d:/ymir work/ui/game/14.tga",
"down_image" : "d:/ymir work/ui/game/13.tga",
},
#Schimba echipament
{
"name" : "echipament",
"type" : "button",
"x" : 8,
"y" : 9+35+35,

"tooltip_text" : "Schimba echipament",

"default_image" : "d:/ymir work/ui/game/15.tga",
"over_image" : "d:/ymir work/ui/game/15.tga",
"down_image" : "d:/ymir work/ui/game/16.tga",
},
#Fructul Vietii
{
"name" : "Frucht",
"type" : "button",
"x" : 8,
"y" : 9+35+35+35,

"tooltip_text" : "Grad",

"default_image" : "d:/ymir work/ui/game/4.tga",
"over_image" : "d:/ymir work/ui/game/4.tga",
"down_image" : "d:/ymir work/ui/game/3.tga",
},
##Inel Teleport
{
"name" : "Telep",
"type" : "button",
"x" : 8,
"y" : 9+35+35+35+35,

"tooltip_text" : "Inel Teleport",

"default_image" : "d:/ymir work/ui/game/6.tga",
"over_image" : "d:/ymir work/ui/game/6.tga",
"down_image" : "d:/ymir work/ui/game/5.tga",
},
#Noapte zi
{
"name" : "noaptezi",
"type" : "button",
"x" : 8,
"y" : 9+35+35+35+35+35,

"tooltip_text" : "Schimba Zi",

"default_image" : "d:/ymir work/ui/game/18.tga",
"over_image" : "d:/ymir work/ui/game/18.tga",
"down_image" : "d:/ymir work/ui/game/17.tga",
},
#Iesire
{
"name" : "iesire",
"type" : "button",
"x" : 8,
"y" : 9+35+35+35+35+35+35,

"tooltip_text" : "Iesire rapida",

"default_image" : "d:/ymir work/ui/game/exit1.tga",
"over_image" : "d:/ymir work/ui/game/exit1.tga",
"down_image" : "d:/ymir work/ui/game/exit2.tga",
},
),
},
## Inventory, Equipment Slots
{
"name" : "board",
"type" : "board",
"style" : ("attach",),

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

"width" : 176,
"height" : 589-22,

"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},
),
},
## Dragon Soul Button
{
"name" : "DSSButton",
"type" : "button",

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

"tooltip_text" : uiScriptLocale.TASKBAR_DRAGON_SOUL,

"default_image" : "d:/ymir work/ui/dragonsoul/dss_inventory_button_01.tga",
"over_image" : "d:/ymir work/ui/dragonsoul/dss_inventory_button_02.tga",
"down_image" : "d:/ymir work/ui/dragonsoul/dss_inventory_button_03.tga",
},
## 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",
},
## 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" : "Equipment_Tab_03",
"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_03_Print",
"type" : "text",

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

"all_align" : "center",

"text" : "III",
},
),
},
{
"name" : "Equipment_Tab_04",
"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_04_Print",
"type" : "text",

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

"all_align" : "center",

"text" : "IV",
},
),
},

),
},
{
"name" : "Inventory_Tab_01",
"type" : "radio_button",

"x" : 11,
"y" : 31 + 193,

"default_image" : "d:/ymir work/ui/game/windows/tab_button_large_half_01.sub",
"over_image" : "d:/ymir work/ui/game/windows/tab_button_large_half_02.sub",
"down_image" : "d:/ymir work/ui/game/windows/tab_button_large_half_03.sub",
#"tooltip_text" : uiScriptLocale.INVENTORY_PAGE_BUTTON_TOOLTIP_1,

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

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

"all_align" : "center",

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

"x" : 13 + 37,
"y" : 31 + 193,

"default_image" : "d:/ymir work/ui/game/windows/tab_button_large_half_01.sub",
"over_image" : "d:/ymir work/ui/game/windows/tab_button_large_half_02.sub",
"down_image" : "d:/ymir work/ui/game/windows/tab_button_large_half_03.sub",
#"tooltip_text" : uiScriptLocale.INVENTORY_PAGE_BUTTON_TOOLTIP_2,

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

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

"all_align" : "center",

"text" : "II",
},
),
},
{
"name" : "Inventory_Tab_03",
"type" : "radio_button",

"x" : 13 + 77,
"y" : 31 + 193,

"default_image" : "d:/ymir work/ui/game/windows/tab_button_large_half_01.sub",
"over_image" : "d:/ymir work/ui/game/windows/tab_button_large_half_02.sub",
"down_image" : "d:/ymir work/ui/game/windows/tab_button_large_half_03.sub",
#"tooltip_text" : "3.Inventar",

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

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

"all_align" : "center",

"text" : "III",
},
),
},
{
"name" : "Inventory_Tab_04",
"type" : "radio_button",

"x" : 14 + 116,
"y" : 31 + 193,

"default_image" : "d:/ymir work/ui/game/windows/tab_button_large_half_01.sub",
"over_image" : "d:/ymir work/ui/game/windows/tab_button_large_half_02.sub",
"down_image" : "d:/ymir work/ui/game/windows/tab_button_large_half_03.sub",
#"tooltip_text" : "4.Inventar",

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

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

"all_align" : "center",

"text" : "IV",
},
),
},

## 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"
},
{
"name":"engel_01_open",
"type":"button",
"vertical_align":"bottom",

"x":8,
"y":339-18,

"default_image":"d:/ymir work/ui/ex_inven_cover_button_open.sub",
"over_image":"d:/ymir work/ui/ex_inven_cover_button_open.sub",
"down_image":"d:/ymir work/ui/ex_inven_cover_button_open.sub",
},
{
"name":"engel_01_close",
"type":"image",
"vertical_align":"bottom",

"x":8,
"y":339-18,

"image":"d:/ymir work/ui/ex_inven_cover_button_close.sub",
},
{
"name":"engel_02_open",
"type":"button",
"vertical_align":"bottom",

"x":8,
"y":339 - 32-18,

"default_image":"d:/ymir work/ui/ex_inven_cover_button_open.sub",
"over_image":"d:/ymir work/ui/ex_inven_cover_button_open.sub",
"down_image":"d:/ymir work/ui/ex_inven_cover_button_open.sub",
},
{
"name":"engel_02_close",
"type":"image",
"vertical_align":"bottom",

"x":8,
"y":339 - 32-18,

"image":"d:/ymir work/ui/ex_inven_cover_button_close.sub",
},
{
"name":"engel_03_open",
"type":"button",
"vertical_align":"bottom",

"x":8,
"y":339 - 64-18,

"default_image":"d:/ymir work/ui/ex_inven_cover_button_open.sub",
"over_image":"d:/ymir work/ui/ex_inven_cover_button_open.sub",
"down_image":"d:/ymir work/ui/ex_inven_cover_button_open.sub",
},
{
"name":"engel_03_close",
"type":"image",
"vertical_align":"bottom",

"x":8,
"y":339 - 64-18,

"image":"d:/ymir work/ui/ex_inven_cover_button_close.sub",
},
{
"name":"engel_04_open",
"type":"button",
"vertical_align":"bottom",

"x":8,
"y":339 - 96-18,

"default_image":"d:/ymir work/ui/ex_inven_cover_button_open.sub",
"over_image":"d:/ymir work/ui/ex_inven_cover_button_open.sub",
"down_image":"d:/ymir work/ui/ex_inven_cover_button_open.sub",
},
{
"name":"engel_04_close",
"type":"image",
"vertical_align":"bottom",

"x":8,
"y":339 - 96-18,

"image":"d:/ymir work/ui/ex_inven_cover_button_close.sub",
},
{
"name":"engel_05_open",
"type":"button",
"vertical_align":"bottom",

"x":8,
"y":339 - 128-18,

"default_image":"d:/ymir work/ui/ex_inven_cover_button_open.sub",
"over_image":"d:/ymir work/ui/ex_inven_cover_button_open.sub",
"down_image":"d:/ymir work/ui/ex_inven_cover_button_open.sub",
},
{
"name":"engel_05_close",
"type":"image",
"vertical_align":"bottom",

"x":8,
"y":339 - 128-18,

"image":"d:/ymir work/ui/ex_inven_cover_button_close.sub",
},
{
"name":"engel_06_open",
"type":"button",
"vertical_align":"bottom",

"x":8,
"y":339 - 160-18,

"default_image":"d:/ymir work/ui/ex_inven_cover_button_open.sub",
"over_image":"d:/ymir work/ui/ex_inven_cover_button_open.sub",
"down_image":"d:/ymir work/ui/ex_inven_cover_button_open.sub",
},
{
"name":"engel_06_close",
"type":"image",
"vertical_align":"bottom",

"x":8,
"y":339 - 160-18,

"image":"d:/ymir work/ui/ex_inven_cover_button_close.sub",
},
{
"name":"engel_07_open",
"type":"button",
"vertical_align":"bottom",

"x":8,
"y":339 - 192-18,

"default_image":"d:/ymir work/ui/ex_inven_cover_button_open.sub",
"over_image":"d:/ymir work/ui/ex_inven_cover_button_open.sub",
"down_image":"d:/ymir work/ui/ex_inven_cover_button_open.sub",
},
{
"name":"engel_07_close",
"type":"image",
"vertical_align":"bottom",

"x":8,
"y":339 - 192-18,

"image":"d:/ymir work/ui/ex_inven_cover_button_close.sub",
},
{
"name":"engel_08_open",
"type":"button",
"vertical_align":"bottom",

"x":8,
"y":339 - 224-18,

"default_image":"d:/ymir work/ui/ex_inven_cover_button_open.sub",
"over_image":"d:/ymir work/ui/ex_inven_cover_button_open.sub",
"down_image":"d:/ymir work/ui/ex_inven_cover_button_open.sub",
},
{
"name":"engel_08_close",
"type":"image",
"vertical_align":"bottom",

"x":8,
"y":339 - 224-18,

"image":"d:/ymir work/ui/ex_inven_cover_button_close.sub",
},
{
"name":"engel_09_open",
"type":"button",
"vertical_align":"bottom",

"x":8,
"y":339 - 256-18,

"default_image":"d:/ymir work/ui/ex_inven_cover_button_open.sub",
"over_image":"d:/ymir work/ui/ex_inven_cover_button_open.sub",
"down_image":"d:/ymir work/ui/ex_inven_cover_button_open.sub",
},
{
"name":"engel_09_close",
"type":"image",
"vertical_align":"bottom",

"x":8,
"y":339 - 256-18,

"image":"d:/ymir work/ui/ex_inven_cover_button_close.sub",
},
#sw
{
"name" : "switchbutton",
"type" : "button",

"x" :8,
"y" : 559-22,

#"tooltip_text" : uiScriptLocale.SWITCHBOT_TITLE,

"default_image" : "logo/sw1.tga",
"over_image" : "logo/sw2.tga",
"down_image" : "logo/sw1.tga",

#"text" : "Switch",
},
## 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",
"type" : "text",

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

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

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

),
},
),
}
Vad ca toti au reusit sa rezolve problema aceasta dar nu a postat nimeni o rezolvare si pentru altii care nu stiu cum sa o rezolve. :(
Avatar utilizator
BeauDeCiuda
Utilizator interzis !

Utilizator interzis !
Mesaje: 1915
Membru din: 24 Mar 2014, 16:25
Server: http://infomanii.ro
Regat: Chunjo
Aprecieri: 169  
Mulţumiri: 225  
 Contact:
Medalii

De ce ai intr-o parte "height" : 589-22, si in alta "height" : 589+22, ?
Board-ul normal nu are "x" : 35, iar in buttonsboard ai +35 ... una e sa-l bagi cu cap si sa stii functiile alta e sa dai copy/paste din alta parte si sa te astepti sa-ti functioneze.
Imagine
Afișează semnătura
Avatar utilizator
[Mafia83]
Membru Club

Membru Club
Mesaje: 777
Membru din: 24 Feb 2016, 20:32
Server: Metin2KGB
Regat: Jinno
Aprecieri: 279  
Mulţumiri: 2287  
Discord: Copiază ID
 Contact:
Medalii

Nu prea înțeleg la ce te referi, eu in acel fisier am adăugat de la ## board butoane până la ##iesire. Restul așa au fost nu am modificat absolut nimic

[ Postat de pe Android ] Imagine
Avatar utilizator
[Mafia83]
Membru Club

Membru Club
Mesaje: 777
Membru din: 24 Feb 2016, 20:32
Server: Metin2KGB
Regat: Jinno
Aprecieri: 279  
Mulţumiri: 2287  
Discord: Copiază ID
 Contact:
Medalii

Up

[ Postat de pe Android ] Imagine
Avatar utilizator
[Reizo]
Ţepar / Untrusted User

Ţepar / Untrusted User
Mesaje: 1301
Membru din: 22 Oct 2019, 15:44
Server: SAPPHIRE2
Regat: Chunjo
Aprecieri: 409  
Mulţumiri: 4322  
Discord: Copiază ID
 Contact:
Medalii

Trebuie să măreşti dimensiunile inventarului.
Imagine
Afișează semnătura
Avatar utilizator
[Mafia83]
Membru Club

Membru Club
Mesaje: 777
Membru din: 24 Feb 2016, 20:32
Server: Metin2KGB
Regat: Jinno
Aprecieri: 279  
Mulţumiri: 2287  
Discord: Copiază ID
 Contact:
Medalii

Ok, dupa muuulte incercari am reusit puteti da T/C
Rezolvarea este foarte simpla, trebuie sa te joci cu x si y pana ii nimeresti pozitia board-ului.
Închis
Răspunsuri
16
Vizualizări
1241
Răspunsuri
5
Vizualizări
519
Răspunsuri
6
Vizualizări
569
Răspunsuri
3
Vizualizări
380

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

  • Informaţie
  • Cine este conectat

    Utilizatori ce ce navighează pe acest forum: Google [Bot] și 102 vizitatori