*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?
Problema bara inventar
- BeauDeCiuda
-

- Mesaje: 1915
- Membru din: 24 Mar 2014, 16:25
- Server: http://infomanii.ro
- Regat: Chunjo
- Aprecieri: 169
- Mulţumiri: 225
- Contact:
InventoryWindow.py este problema verifica-l atent
{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.
- [RaffaeL]
-

- Mesaje: 3223
- Membru din: 19 Mar 2016, 12:58
- Server: ...
- Aprecieri: 15
- Mulţumiri: 2502
- Rezolvări prob.: 2
- Discord: Copiază ID
- Contact:
GET_IMAGE_BUTTON + "1.tga" unde GET_IMAGE_BUTTON este locatia imaginii;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.
Exemplu: GET_IMAGE_BUTTON = "d:/ymir work/ui/game/windows/"
Ai adaugat/setat corect acea locatie, si butoanele sunt adaugate in locatia specificata?
[RaffaeL] scrie:GET_IMAGE_BUTTON + "1.tga" unde GET_IMAGE_BUTTON este locatia imaginii;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.
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,
- [RaffaeL]
-

- Mesaje: 3223
- Membru din: 19 Mar 2016, 12:58
- Server: ...
- Aprecieri: 15
- Mulţumiri: 2502
- Rezolvări prob.: 2
- Discord: Copiază ID
- Contact:
Bineinteles "x" : position_button_4_x, si "y" : position_button_4_y, trebuie inlocuite cu coordonate reale.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,
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.[RaffaeL] scrie:Bineinteles "x" : position_button_4_x, si "y" : position_button_4_y, trebuie inlocuite cu coordonate reale.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,
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.
- Titan
-

- 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:
Subiect inactiv, arhivat.
-
- Informaţie
-
Cine este conectat
Utilizatori ce ce navighează pe acest forum: Niciun utilizator înregistrat și 75 vizitatori






