avertuss 48 Posted June 24, 2019 Share Posted June 24, 2019 Hi. I want to open costume window by character window(uicharacter). I tried: import uiInventory self.xd = uiInventory.CostumeWindow() self.xd.Show() and syserr 0624 20:26:35749 :: 0624 20:26:35749 :: self.xd = uiInventory.CostumeWindow() 0624 20:26:35749 :: TypeError 0624 20:26:35749 :: : 0624 20:26:35749 :: __init__() takes exactly 2 arguments (1 given) 0624 20:26:35749 :: Link to comment Share on other sites More sharing options...
Forum Moderator Solution VegaS™ 10275 Posted June 25, 2019 Forum Moderator Solution Share Posted June 25, 2019 root/InterfaceModule.py: # Search for: wndInventory = uiInventory.InventoryWindow() # Add after: wndCharacter.BindInterfaceClass(wndInventory) root/uicharacter.py: # Search for: self.toolTipSkill = 0 # Add after: self.wndInventory = None # Search for: def __del__(self): ui.ScriptWindow.__del__(self) # Add after: def BindInterfaceClass(self, wndInventory): self.wndInventory = wndInventory How-To-Use: if self.wndInventory: self.wndInventory.ClickCostumeButton() 2 Check my GitHub Profile Click to find all the threads started by me [TOOL] Text file loader + JSON Link to comment Share on other sites More sharing options...
avertuss 48 Posted June 29, 2019 Author Share Posted June 29, 2019 (edited) @VegaS™ It works but when i equip i unequip items from that slots i need to reopen gui to refresh Gif: Edited August 25, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now