Problema bara inventar

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

Nivel 3
Mesaje: 421
Membru din: 11 Iul 2015, 11:48
Server: Metin2 BlackMetal
Regat: Jinno
Aprecieri: 5  
Mulţumiri: 4  
Medalii

*Problemă: Am implementat cu succes acest 'sistem' pot zice . Fara erori in syserr , dar nu imi apare niciun buton nicaieri...
Tipologie server(PvM / PvP): -
*Resursă folosită: http://just4metin.ro/altele/butoane-lan ... 72891.html
*ServerFiles utilizat: clean
*Syserr: gol
Poză: -
*Detalii suplimentare: Deci repet, nu exista erori in syserr, butoanele nu apar in stanga langa inventar cum ar trebui sa apara... Ceva idei?
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

InventoryWindow.py este problema verifica-l atent
Imagine
Afișează semnătura
Avatar utilizator
tiuntiuc1
Nivel 3

Nivel 3
Mesaje: 421
Membru din: 11 Iul 2015, 11:48
Server: Metin2 BlackMetal
Regat: Jinno
Aprecieri: 5  
Mulţumiri: 4  
Medalii

BeauDeCiuda scrie:InventoryWindow.py este problema verifica-l atent
{
"name" : "vegas_board",
"type" : "board",
"style" : ("attach",),

"x" : 0,
"y" : +15,
"vertical_align":"center",

"width" : 40,
"height" : 210,

"children" :
(
{
"name" : "Button_Function_1",
"type" : "button",

"x" : position_button_1_x,
"y" : position_button_1_y,

"tooltip_text" : TEXT_VEGAS_1,

"default_image" : GET_IMAGE_BUTTON + "1.tga",
"over_image" : GET_IMAGE_BUTTON + "2.tga",
"down_image" : GET_IMAGE_BUTTON + "3.tga",
},
{
"name" : "Button_Function_2",
"type" : "button",

"x" : position_button_2_x,
"y" : position_button_2_y,

"tooltip_text" : TEXT_VEGAS_2,

"default_image" : GET_IMAGE_BUTTON + "number_x2_01.tga",
"over_image" : GET_IMAGE_BUTTON + "number_x2_02.tga",
"down_image" : GET_IMAGE_BUTTON + "number_x2_03.tga",
},
{
"name" : "Button_Function_3",
"type" : "button",

"x" : position_button_3_x,
"y" : position_button_3_y,

"tooltip_text" : TEXT_VEGAS_3,

"default_image" : GET_IMAGE_BUTTON + "number_x3_01.tga",
"over_image" : GET_IMAGE_BUTTON + "number_x3_02.tga",
"down_image" : GET_IMAGE_BUTTON + "number_x3_03.tga",
},
{
"name" : "Button_Function_4",
"type" : "button",

"x" : position_button_4_x,
"y" : position_button_4_y,

"tooltip_text" : TEXT_VEGAS_4,

"default_image" : GET_IMAGE_BUTTON + "number_x4_01.tga",
"over_image" : GET_IMAGE_BUTTON + "number_x4_02.tga",
"down_image" : GET_IMAGE_BUTTON + "number_x4_03.tga",
},
{
"name" : "Button_Function_5",
"type" : "button",

"x" : position_button_5_x,
"y" : position_button_5_y,

"tooltip_text" : TEXT_VEGAS_5,

"default_image" : GET_IMAGE_BUTTON + "number_x5_01.tga",
"over_image" : GET_IMAGE_BUTTON + "number_x5_02.tga",
"down_image" : GET_IMAGE_BUTTON + "number_x5_03.tga",
},
{
"name" : "Button_Function_6",
"type" : "button",

"x" : position_button_6_x,
"y" : position_button_6_y,

"tooltip_text" : TEXT_VEGAS_6,

"default_image" : GET_IMAGE_BUTTON + "number_x6_01.tga",
"over_image" : GET_IMAGE_BUTTON + "number_x6_02.tga",
"down_image" : GET_IMAGE_BUTTON + "number_x6_03.tga",
},
),
},


Asta e tot ce am pus in inventorywindow.py , problema este ca nu stiu coordonatele care trebuie sa fie langa inventar, gen in stanga,cred ca intelegi la ce ma refer.
Avatar utilizator
[RaffaeL]
Software Developer

Software Developer
Mesaje: 3223
Membru din: 19 Mar 2016, 12:58
Server: ...
Aprecieri: 15  
Mulţumiri: 2502  
  Rezolvări prob.: 2
Discord: Copiază ID
 Contact:
Medalii

tiuntiuc1 scrie:
BeauDeCiuda scrie:InventoryWindow.py este problema verifica-l atent
{
"name" : "vegas_board",
"type" : "board",
"style" : ("attach",),

"x" : 0,
"y" : +15,
"vertical_align":"center",

"width" : 40,
"height" : 210,

"children" :
(
{
"name" : "Button_Function_1",
"type" : "button",

"x" : position_button_1_x,
"y" : position_button_1_y,

"tooltip_text" : TEXT_VEGAS_1,

"default_image" : GET_IMAGE_BUTTON + "1.tga",
"over_image" : GET_IMAGE_BUTTON + "2.tga",
"down_image" : GET_IMAGE_BUTTON + "3.tga",
},
{
"name" : "Button_Function_2",
"type" : "button",

"x" : position_button_2_x,
"y" : position_button_2_y,

"tooltip_text" : TEXT_VEGAS_2,

"default_image" : GET_IMAGE_BUTTON + "number_x2_01.tga",
"over_image" : GET_IMAGE_BUTTON + "number_x2_02.tga",
"down_image" : GET_IMAGE_BUTTON + "number_x2_03.tga",
},
{
"name" : "Button_Function_3",
"type" : "button",

"x" : position_button_3_x,
"y" : position_button_3_y,

"tooltip_text" : TEXT_VEGAS_3,

"default_image" : GET_IMAGE_BUTTON + "number_x3_01.tga",
"over_image" : GET_IMAGE_BUTTON + "number_x3_02.tga",
"down_image" : GET_IMAGE_BUTTON + "number_x3_03.tga",
},
{
"name" : "Button_Function_4",
"type" : "button",

"x" : position_button_4_x,
"y" : position_button_4_y,

"tooltip_text" : TEXT_VEGAS_4,

"default_image" : GET_IMAGE_BUTTON + "number_x4_01.tga",
"over_image" : GET_IMAGE_BUTTON + "number_x4_02.tga",
"down_image" : GET_IMAGE_BUTTON + "number_x4_03.tga",
},
{
"name" : "Button_Function_5",
"type" : "button",

"x" : position_button_5_x,
"y" : position_button_5_y,

"tooltip_text" : TEXT_VEGAS_5,

"default_image" : GET_IMAGE_BUTTON + "number_x5_01.tga",
"over_image" : GET_IMAGE_BUTTON + "number_x5_02.tga",
"down_image" : GET_IMAGE_BUTTON + "number_x5_03.tga",
},
{
"name" : "Button_Function_6",
"type" : "button",

"x" : position_button_6_x,
"y" : position_button_6_y,

"tooltip_text" : TEXT_VEGAS_6,

"default_image" : GET_IMAGE_BUTTON + "number_x6_01.tga",
"over_image" : GET_IMAGE_BUTTON + "number_x6_02.tga",
"down_image" : GET_IMAGE_BUTTON + "number_x6_03.tga",
},
),
},


Asta e tot ce am pus in inventorywindow.py , problema este ca nu stiu coordonatele care trebuie sa fie langa inventar, gen in stanga,cred ca intelegi la ce ma refer.
GET_IMAGE_BUTTON + "1.tga" unde GET_IMAGE_BUTTON este locatia imaginii;
Exemplu: GET_IMAGE_BUTTON = "d:/ymir work/ui/game/windows/"
Ai adaugat/setat corect acea locatie, si butoanele sunt adaugate in locatia specificata?
Imagine
Imagine
https://www.youtube.com/watch?v=GhYkCIETEto
Do everything, if you know what you're doing, else... Imagine
Ma gasesti si aici: Discord https://discord.gg/5J5GnyZVSR
Afișează semnătura
Avatar utilizator
tiuntiuc1
Nivel 3

Nivel 3
Mesaje: 421
Membru din: 11 Iul 2015, 11:48
Server: Metin2 BlackMetal
Regat: Jinno
Aprecieri: 5  
Mulţumiri: 4  
Medalii

[RaffaeL] scrie:
tiuntiuc1 scrie:
BeauDeCiuda scrie:InventoryWindow.py este problema verifica-l atent
{
"name" : "vegas_board",
"type" : "board",
"style" : ("attach",),

"x" : 0,
"y" : +15,
"vertical_align":"center",

"width" : 40,
"height" : 210,

"children" :
(
{
"name" : "Button_Function_1",
"type" : "button",

"x" : position_button_1_x,
"y" : position_button_1_y,

"tooltip_text" : TEXT_VEGAS_1,

"default_image" : GET_IMAGE_BUTTON + "1.tga",
"over_image" : GET_IMAGE_BUTTON + "2.tga",
"down_image" : GET_IMAGE_BUTTON + "3.tga",
},
{
"name" : "Button_Function_2",
"type" : "button",

"x" : position_button_2_x,
"y" : position_button_2_y,

"tooltip_text" : TEXT_VEGAS_2,

"default_image" : GET_IMAGE_BUTTON + "number_x2_01.tga",
"over_image" : GET_IMAGE_BUTTON + "number_x2_02.tga",
"down_image" : GET_IMAGE_BUTTON + "number_x2_03.tga",
},
{
"name" : "Button_Function_3",
"type" : "button",

"x" : position_button_3_x,
"y" : position_button_3_y,

"tooltip_text" : TEXT_VEGAS_3,

"default_image" : GET_IMAGE_BUTTON + "number_x3_01.tga",
"over_image" : GET_IMAGE_BUTTON + "number_x3_02.tga",
"down_image" : GET_IMAGE_BUTTON + "number_x3_03.tga",
},
{
"name" : "Button_Function_4",
"type" : "button",

"x" : position_button_4_x,
"y" : position_button_4_y,

"tooltip_text" : TEXT_VEGAS_4,

"default_image" : GET_IMAGE_BUTTON + "number_x4_01.tga",
"over_image" : GET_IMAGE_BUTTON + "number_x4_02.tga",
"down_image" : GET_IMAGE_BUTTON + "number_x4_03.tga",
},
{
"name" : "Button_Function_5",
"type" : "button",

"x" : position_button_5_x,
"y" : position_button_5_y,

"tooltip_text" : TEXT_VEGAS_5,

"default_image" : GET_IMAGE_BUTTON + "number_x5_01.tga",
"over_image" : GET_IMAGE_BUTTON + "number_x5_02.tga",
"down_image" : GET_IMAGE_BUTTON + "number_x5_03.tga",
},
{
"name" : "Button_Function_6",
"type" : "button",

"x" : position_button_6_x,
"y" : position_button_6_y,

"tooltip_text" : TEXT_VEGAS_6,

"default_image" : GET_IMAGE_BUTTON + "number_x6_01.tga",
"over_image" : GET_IMAGE_BUTTON + "number_x6_02.tga",
"down_image" : GET_IMAGE_BUTTON + "number_x6_03.tga",
},
),
},


Asta e tot ce am pus in inventorywindow.py , problema este ca nu stiu coordonatele care trebuie sa fie langa inventar, gen in stanga,cred ca intelegi la ce ma refer.
GET_IMAGE_BUTTON + "1.tga" unde GET_IMAGE_BUTTON este locatia imaginii;
Exemplu: GET_IMAGE_BUTTON = "d:/ymir work/ui/game/windows/"
Ai adaugat/setat corect acea locatie, si butoanele sunt adaugate in locatia specificata?

Da am selectat locatia si am pus butoanele acolo unde trebuie, problema cred ca e de la "x" : position_button_4_x,
"y" : position_button_4_y,
Avatar utilizator
[RaffaeL]
Software Developer

Software Developer
Mesaje: 3223
Membru din: 19 Mar 2016, 12:58
Server: ...
Aprecieri: 15  
Mulţumiri: 2502  
  Rezolvări prob.: 2
Discord: Copiază ID
 Contact:
Medalii

tiuntiuc1 scrie:
[RaffaeL] scrie:
tiuntiuc1 scrie: GET_IMAGE_BUTTON + "1.tga" unde GET_IMAGE_BUTTON este locatia imaginii;
Exemplu: GET_IMAGE_BUTTON = "d:/ymir work/ui/game/windows/"
Ai adaugat/setat corect acea locatie, si butoanele sunt adaugate in locatia specificata?

Da am selectat locatia si am pus butoanele acolo unde trebuie, problema cred ca e de la "x" : position_button_4_x,
"y" : position_button_4_y,
Bineinteles "x" : position_button_4_x, si "y" : position_button_4_y, trebuie inlocuite cu coordonate reale.
Incearca incepand cu "x" : 3, "y" : 5, si in functie de asta, ajustezi pe parcurs.
Distanta intre butoane, pe y(vertical) de obicei este 40.
Imagine
Imagine
https://www.youtube.com/watch?v=GhYkCIETEto
Do everything, if you know what you're doing, else... Imagine
Ma gasesti si aici: Discord https://discord.gg/5J5GnyZVSR
Afișează semnătura
Avatar utilizator
tiuntiuc1
Nivel 3

Nivel 3
Mesaje: 421
Membru din: 11 Iul 2015, 11:48
Server: Metin2 BlackMetal
Regat: Jinno
Aprecieri: 5  
Mulţumiri: 4  
Medalii

[RaffaeL] scrie:
tiuntiuc1 scrie:
[RaffaeL] scrie:

Da am selectat locatia si am pus butoanele acolo unde trebuie, problema cred ca e de la "x" : position_button_4_x,
"y" : position_button_4_y,
Bineinteles "x" : position_button_4_x, si "y" : position_button_4_y, trebuie inlocuite cu coordonate reale.
Incearca incepand cu "x" : 3, "y" : 5, si in functie de asta, ajustezi pe parcurs.
Distanta intre butoane, pe y(vertical) de obicei este 40.
Ramane aceeasi problema, si cu coordonate puse nu apare nicaieri butonul.
Avatar utilizator
Titan
Metin Master

Metin Master
Mesaje: 2783
Membru din: 01 Iun 2015, 15:09
Server: In curand.
Regat: Chunjo
Aprecieri: 42  
Mulţumiri: 377  
  Rezolvări prob.: 3
Discord: Copiază ID
 Contact:
Medalii

Subiect inactiv, arhivat.
Imagine
Afișează semnătura
Închis
Răspunsuri
2
Vizualizări
191
Răspunsuri
3
Vizualizări
88
Răspunsuri
3
Vizualizări
348
Răspunsuri
5
Vizualizări
723

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

  • Informaţie
  • Cine este conectat

    Utilizatori ce ce navighează pe acest forum: Niciun utilizator înregistrat și 32 vizitatori