Jump to content
×
×
  • Create New...
  • 0

Switchbot Button - On Inventar


Red

Question

  • Premium

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

Link to comment
Share on other sites

  • Answers 3
  • Created
  • Last Reply

Top Posters For This Question

Top Posters For This Question

3 answers to this question

Recommended Posts

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.


Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.