Hello Dev's,
I'm having a problem adding a button to inventory.
The goal is to click on it and it opens the switchbot, I already configured the root / uiinventory.py, root / game.py and locale_xx / ui / inventorywindow.py
The problem is that it gives me this syserr:
0731 14:54:17650 :: CMapOutdoor::Load - LoadMonsterAreaInfo ERROR
0731 14:54:22403 :: Traceback (most recent call last):
0731 14:54:22403 :: File "networkModule.py", line 239, in SetGamePhase
0731 14:54:22403 :: File "game.py", line 114, in __init__
0731 14:54:22404 :: File "interfaceModule.py", line 321, in MakeInterface
0731 14:54:22404 :: File "interfaceModule.py", line 179, in __MakeWindows
0731 14:54:22404 :: File "uiInventory.py", line 259, in __init__
0731 14:54:22404 :: File "uiInventory.py", line 394, in __LoadWindow
0731 14:54:22404 :: NameError
0731 14:54:22404 :: :
0731 14:54:22404 :: global name 'wndswitchbot' is not defined
0731 14:54:22404 ::
0731 14:55:24080 :: Traceback (most recent call last):
0731 14:55:24080 :: File "game.py", line 839, in RefreshInventory
0731 14:55:24081 :: File "interfaceModule.py", line 631, in RefreshInventory
0731 14:55:24081 :: AttributeError
0731 14:55:24081 :: :
0731 14:55:24081 :: 'NoneType' object has no attribute 'RefreshQuickSlot'
0731 14:55:24081 ::
0731 14:55:24081 :: Traceback (most recent call last):
0731 14:55:24081 :: File "game.py", line 839, in RefreshInventory
0731 14:55:24081 :: File "interfaceModule.py", line 631, in RefreshInventory
0731 14:55:24082 :: AttributeError
0731 14:55:24082 :: :
0731 14:55:24082 :: 'NoneType' object has no attribute 'RefreshQuickSlot'
0731 14:55:24082 ::
I'll leave my code here for you to review.
game.py
uiinventory.py
inventorywindow.py
Hope you guys can give me some help
Best Regards,
Red