Jump to content

Syserr uiinventory


Recommended Posts

Good Evening,

 


    0330 18:32:02716 :: Traceback (most recent call last):
    0330 18:32:02716 ::   File "uiInventory.py", line 557, in OnUpdate
    0330 18:32:02716 :: AttributeError
    0330 18:32:02716 :: : 
    0330 18:32:02716 :: 'int' object has no attribute 'DisableSlotCoverImage'
    0330 18:32:02716 :: 

 

Code:

 


		def OnUpdate(self):
			# self.RefreshBagSlotWindow()
			for i in xrange(player.INVENTORY_PAGE_SIZE):
				GlobalSlot = self.__InventoryLocalSlotPosToGlobalSlotPos(i)
			if player.GetItemLook(GlobalSlot):
				self.wndItem.EnableSlotCoverImage(i)
			else:
				self.wndItem.DisableSlotCoverImage(i)
			if player.FindActivedChangeLookSlot(0) == GlobalSlot or player.FindActivedChangeLookSlot(1) == GlobalSlot:
				self.wndItem.ActivateChangeLookSlot(i)
			else:
				self.wndItem.DeactivateChangeLookSlot(i)

I´ve checked the code, but i didnt found the error..

Any Ideas? o_O

Link to comment
Share on other sites

  • Honorable Member

OnUpdate :wacko:

Isn't the best solution, but seems good.

		def OnUpdate(self):
			# self.RefreshBagSlotWindow()
			for i in xrange(player.INVENTORY_PAGE_SIZE):
				if self.wndItem:
					GlobalSlot = self.__InventoryLocalSlotPosToGlobalSlotPos(i)
					if player.GetItemLook(GlobalSlot):
						self.wndItem.EnableSlotCoverImage(i)
					else:
						self.wndItem.DisableSlotCoverImage(i)
					if player.FindActivedChangeLookSlot(0) == GlobalSlot or player.FindActivedChangeLookSlot(1) == GlobalSlot:
						self.wndItem.ActivateChangeLookSlot(i)
					else:
						self.wndItem.DeactivateChangeLookSlot(i)

 

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