Jump to content

Open costumewindow from other file than uiinventory


Go to solution Solved by VegaS™,

Recommended Posts

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

  • Forum Moderator
  • Solution
  • 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()

 

  • Love 2
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

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.