
Problema Bordura inventar !!
Salut Just4Metin am si eu o mica problema sper sa ma puteti ajuta , deci sa va explic , am server file happines si are sistem-ul de meniu in inventar dar in dreapta iar eu am dorit sa bag bordura in stanga , am incercat dupa mine eu cred ca am facut totul bine , va voi pune poza sa vedeti cum se vede , pare a fii ok dar este alta problema , deci daca apas pe bordura nu pot muta inventarul ci mi se pune tinta sa pot merge iar cand vreau sa apas normal pe buttoane nu merge doar daca apas mai spre inventar cam langa button.. Daca stie cineva un tutorial ceva poate am uitat sa modific ceva anume ..


Intra in inventorywindow.py si adauga la width de la buttonboard la width InventoryWindow.AndreyBăă scrie:Salut Just4Metin am si eu o mica problema sper sa ma puteti ajuta , deci sa va explic , am server file happines si are sistem-ul de meniu in inventar dar in dreapta iar eu am dorit sa bag bordura in stanga , am incercat dupa mine eu cred ca am facut totul bine , va voi pune poza sa vedeti cum se vede , pare a fii ok dar este alta problema , deci daca apas pe bordura nu pot muta inventarul ci mi se pune tinta sa pot merge iar cand vreau sa apas normal pe buttoane nu merge doar daca apas mai spre inventar cam langa button.. Daca stie cineva un tutorial ceva poate am uitat sa modific ceva anume ..
Ceva de genul. Asa am eu la bara:
Cod: Selectaţi tot
"name" : "buttonboard",
"type" : "board",
"style" : ("attach",),
"x" : 3,
"y" : 120,
"width" : 60,
"height" : 188+35+35+35+35 ,
"children" : Cod: Selectaţi tot
"name" : "InventoryWindow",
## 600 - (width + ????? ?? ??? 24 px)
"x" : SCREEN_WIDTH - 176 - 38 - 72 + 70,
"y" : SCREEN_HEIGHT - 50 - 565 -2,
"style" : ("movable", "float",),
"width" : 176 + 10 + 60,
"height" : 585,Nu am reusit .. imi da aceasta eroare in syserr .. si ma scoate din client dupa loading ..
Si in locale/ro/ui/inventorywindow.py
Cod: Selectaţi tot
0716 22:01:36464 :: Failed to load script file : locale/ro/ui/InventoryWindow.py
0716 22:01:36467 ::
ui.py(line:2860) LoadScriptFile
system.py(line:192) execfile
system.py(line:163) Run
locale/ro/ui/InventoryWindow.py(line:262) <module>
LoadScriptFile!!!!!!!!!!!!!! - <type 'exceptions.TypeError'>:unhashable type: 'dict'
0716 22:01:36467 :: ============================================================================================================
0716 22:01:36467 :: Abort!!!!
0716 22:01:36467 ::
uiInventory.py(line:225) __LoadWindow
ui.py(line:2877) LoadScriptFile
exception.py(line:36) Abort
InventoryWindow.LoadWindow.LoadObject - <type 'exceptions.SystemExit'>:
0716 22:01:36467 :: ============================================================================================================
0716 22:01:36467 :: Abort!!!!
Cod: Selectaţi tot
import uiScriptLocale
import item
EQUIPMENT_START_INDEX = 180
window = {
"name" : "InventoryWindow",
## 600 - (width + 오른쪽으로 부터 띄우기 24 px)
"x" : SCREEN_WIDTH - 176 - 38 - 72 + 70,
"y" : SCREEN_HEIGHT - 37 - 565,
"style" : ("movable", "float",),
"width" : 176 + 10 + 60,
"height" : 565,
"children" :
(
##SYSTEM_BARA
{
"name" : "bordura",
"type" : "image",
"x" : -38,
"y" : 100,
"image" : "locale/ro/ui/bordura.tga",
},
{
"name" : "background_1",
"type" : "image",
"x" : -32,
"y" : 110,
"image" : "steelteam_work/system/background/background_1.tga",
},
{
"name" : "background_1",
"type" : "image",
"x" : -32,
"y" : 150,
"image" : "steelteam_work/system/background/background_1.tga",
},
{
"name" : "background_1",
"type" : "image",
"x" : -32,
"y" : 190,
"image" : "steelteam_work/system/background/background_1.tga",
},
{
"name" : "background_1",
"type" : "image",
"x" : -32,
"y" : 230,
"image" : "steelteam_work/system/background/background_1.tga",
},
{
"name" : "background_1",
"type" : "image",
"x" : -32,
"y" : 270,
"image" : "steelteam_work/system/background/background_1.tga",
},
{
"name" : "background_1",
"type" : "image",
"x" : -32,
"y" : 310,
"image" : "steelteam_work/system/background/background_1.tga",
},
{
"name" : "background_1",
"type" : "image",
"x" : -32,
"y" : 350,
"image" : "steelteam_work/system/background/background_1.tga",
},
{
"name" : "background_1",
"type" : "image",
"x" : -32,
"y" : 390,
"image" : "steelteam_work/system/background/background_1.tga",
},
{
"name" : "background_1",
"type" : "image",
"x" : -32,
"y" : 430,
"image" : "steelteam_work/system/background/background_1.tga",
},
{
"name" : "background_1",
"type" : "image",
"x" : -32,
"y" : 470,
"image" : "steelteam_work/system/background/background_1.tga",
},
##SYSTEM_BARA_END
##BUTTON
{
"name" : "buttonboard",
"type" : "board",
"style" : ("attach",),
"x" : 3,
"y" : 120,
"width" : 60,
"height" : 188+35+35+35+35,
"children" :
{
#Switchbot
{
"name" : "ToggleSwitchbot",
"type" : "button",
"x" : -32,
"y" : 110,
"tooltip_text" : "Switchbot",
"default_image" : "steelteam_work/system/switcher/switcher_1.tga",
"over_image" : "steelteam_work/system/switcher/switcher_2.tga",
"down_image" : "steelteam_work/system/switcher/switcher_1.tga",
},
#Bonus
{
"name" : "BonusPage",
"type" : "button",
"x" : -32,
"y" : 150,
"tooltip_text" : "Pagina Bonusuri",
"default_image" : "steelteam_work/system/bonus/bonus_1.tga",
"over_image" : "steelteam_work/system/bonus/bonus_2.tga",
"down_image" : "steelteam_work/system/bonus/bonus_1.tga",
},
#Equip
{
"name" : "FastEquip",
"type" : "button",
"x" : -32,
"y" : 190,
"tooltip_text" : "Equipment",
"default_image" : "steelteam_work/system/equip/equip_1.tga",
"over_image" : "steelteam_work/system/equip/equip_2.tga",
"down_image" : "steelteam_work/system/equip/equip_1.tga",
},
#Wiki
{
"name" : "OnWiki",
"type" : "button",
"x" : -32,
"y" : 230,
"tooltip_text" : "Wikipedia",
"default_image" : "steelteam_work/system/wikipedia/wikipedia_1.tga",
"over_image" : "steelteam_work/system/wikipedia/wikipedia_2.tga",
"down_image" : "steelteam_work/system/wikipedia/wikipedia_1.tga",
},
#Mantie
{
"name" : "Button_Mantii",
"type" : "button",
"x" : -32,
"y" : 270,
"tooltip_text" : "Mantie",
"default_image" : "steelteam_work/system/mantie/mantie_1.tga",
"over_image" : "steelteam_work/system/mantie/mantie_2.tga",
"down_image" : "steelteam_work/system/mantie/mantie_1.tga",
},
#Anti_exp
{
"name" : "Button_Exp",
"type" : "button",
"x" : -32,
"y" : 310,
"tooltip_text" : "Anti Exp",
"default_image" : "steelteam_work/system/anti_exp/anti_exp_1.tga",
"over_image" : "steelteam_work/system/anti_exp/anti_exp_2.tga",
"down_image" : "steelteam_work/system/anti_exp/anti_exp_1.tga",
},
#Player_shop
{
"name" : "Button_Shop",
"type" : "button",
"x" : -32,
"y" : 350,
"tooltip_text" : "Open Shop",
"default_image" : "steelteam_work/system/player_shop/player_shop_1.tga",
"over_image" : "steelteam_work/system/player_shop/player_shop_2.tga",
"down_image" : "steelteam_work/system/player_shop/player_shop_1.tga",
},
#Polymorph
{
"name" : "Button_Poly",
"type" : "button",
"x" : -32,
"y" : 390,
"tooltip_text" : "Transformare Mob",
"default_image" : "steelteam_work/system/polymorph/polymorph_1.tga",
"over_image" : "steelteam_work/system/polymorph/polymorph_2.tga",
"down_image" : "steelteam_work/system/polymorph/polymorph_1.tga",
},
#Yang
{
"name" : "Button_Yang",
"type" : "button",
"x" : -32,
"y" : 430,
"tooltip_text" : "Depozitare Yang",
"default_image" : "steelteam_work/system/yang/yang_1.tga",
"over_image" : "steelteam_work/system/yang/yang_2.tga",
"down_image" : "steelteam_work/system/yang/yang_1.tga",
},
#Warp_ring
{
"name" : "Button_Warp",
"type" : "button",
"x" : -32,
"y" : 470,
"tooltip_text" : "Panou Teleportare",
"default_image" : "steelteam_work/system/warp_ring/warp_ring_1.tga",
"over_image" : "steelteam_work/system/warp_ring/warp_ring_2.tga",
"down_image" : "steelteam_work/system/warp_ring/warp_ring_1.tga",
},
},
},
{
"name" : "board",
"type" : "board",
"style" : ("attach",),
#"x" : 0+37,
"x" : 0,
"y" : 0,
"width" : 176,
"height" : 589,
"children" :
(
## Title
{
"name" : "TitleBar",
"type" : "titlebar",
"style" : ("attach",),
"x" : 8,
"y" : 7,
"width" : 163,
"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_and_belts.tga",
"children" :
(
{
"name" : "EquipmentSlot",
"type" : "slot",
"x" : 3,
"y" : 3,
"width" : 150,
"height" : 182,
"slot" : (
{"index":EQUIPMENT_START_INDEX+0, "x":39, "y":32, "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},
),
},
## Offline Shop Button
#{
# "name" : "OfflineShopButton",
# "type" : "button",
#
# "x" : 77,
# "y" : 109,
#
# "tooltip_text" : uiScriptLocale.TASKBAR_OFFLINE_SHOP,
#
# "default_image" : "locale/ro/offlineshop/boton1.tga",
# "over_image" : "locale/ro/offlineshop/boton2.tga",
# "down_image" : "locale/ro/offlineshop/boton1.tga",
#},
## MallButton
{
"name" : "MallButton",
"type" : "button",
"x" : 118,
"y" : 109,
"tooltip_text" : uiScriptLocale.MALL_TITLE,
"default_image" : "steelteam_work/system/storage/storage_1.png",
"over_image" : "steelteam_work/system/storage/storage_2.png",
"down_image" : "steelteam_work/system/storage/storage_3.png",
},
## OpenIs
{
"name" : "OpenIs",
"type" : "button",
"x" : 118,
"y" : 148,
"tooltip_text" : uiScriptLocale.IS_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" : "Inventory_Tab_01",
"type" : "radio_button",
"x" : 11,
"y" : 33 + 191,
"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",
"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" : 33 + 191,
"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",
"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" : 33 + 191,
"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",
"tooltip_text" : uiScriptLocale.INVENTORY_PAGE_BUTTON_TOOLTIP_3,
"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" : 33 + 191,
"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",
"tooltip_text" : uiScriptLocale.INVENTORY_PAGE_BUTTON_TOOLTIP_4,
"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"
},
## Print
{
"name":"Money_Slot",
"type":"button",
"x":20,
"y":28+24,
"horizontal_align":"center",
"vertical_align":"bottom",
"default_image" : "d:/ymir work/ui/public/parameter_slot_69.sub",
"over_image" : "d:/ymir work/ui/public/parameter_slot_69.sub",
"down_image" : "d:/ymir work/ui/public/parameter_slot_69.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",
},
),
},
## Print
{
"name":"Premium_Slot",
"type":"button",
"x":20,
"y":28,
"horizontal_align":"center",
"vertical_align":"bottom",
"default_image" : "d:/ymir work/ui/public/parameter_slot_69.sub",
"over_image" : "d:/ymir work/ui/public/parameter_slot_69.sub",
"down_image" : "d:/ymir work/ui/public/parameter_slot_69.sub",
"children" :
(
{
"name":"Premium_Icon",
"type":"image",
"x":-18,
"y":2,
"image":"d:/ymir work/ui/game/windows/money_icon.sub",
},
{
"name" : "Premium",
"type" : "text",
"x" : 3,
"y" : 3,
"horizontal_align" : "right",
"text_horizontal_align" : "right",
"text" : "123456789",
},
),
},
),
},
),
}- FRANCIS
-

- Mesaje: 7879
- Membru din: 06 Noi 2015, 19:52
- Regat: Chunjo
- Aprecieri: 334
- Mulţumiri: 54528
- Discord: Copiază ID
pune şi aici
window = {
"name" : "InventoryWindow",
## 600 - (width + 오른쪽으로 부터 띄우기 24 px)
"x" : SCREEN_WIDTH - 176 - 38 - 72 + 70,
"y" : SCREEN_HEIGHT - 37 - 565,
"style" : ("movable", "float",),
"width" : 176 + 10 + 60,
"height" : 565, # AICI MODIFICĂ in 589
window = {
"name" : "InventoryWindow",
## 600 - (width + 오른쪽으로 부터 띄우기 24 px)
"x" : SCREEN_WIDTH - 176 - 38 - 72 + 70,
"y" : SCREEN_HEIGHT - 37 - 565,
"style" : ("movable", "float",),
"width" : 176 + 10 + 60,
"height" : 565, # AICI MODIFICĂ in 589
Am modificat si acolo si acea problema tot insista .. ma scoate din client si imi da aia in syserr ...
La functia cu button cred ca am gresit ceva acolo dar nu imi dau seama ce anume pentru ca linia aia 262 este asta
La functia cu button cred ca am gresit ceva acolo dar nu imi dau seama ce anume pentru ca linia aia 262 este asta
Cod: Selectaţi tot
"down_image" : "steelteam_work/system/warp_ring/warp_ring_1.tga",
-
- Informaţie
-
Cine este conectat
Utilizatori ce ce navighează pe acest forum: cosminusi93ksm și 44 vizitatori


daca te-am ajutat


