Jump to content

Link fonction uiinventory.py -> game.py


Recommended Posts

  • 9 months later...
  • Forum Moderator

 

  • root/game.py
# Search for:
		self.interface = interfaceModule.Interface()
# Replace with:
		self.interface = interfaceModule.Interface(self)
  • root/interfaceModule.py
# Search for:
	def __init__(self):
		systemSetting.SetInterfaceHandler(self)
# Replace with:
	def __init__(self, wndGame):
		self.wndGame = wndGame
		systemSetting.SetInterfaceHandler(self)
  • root/uiInventory.py
	wndGame = self.interface.wndGame
	if wndGame:
		wndGame.StartAttack() # Function from game.py

 

  • Love 1
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.