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

Syserr uiinventory


Xerneas

Question

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

2 answers to this question

Recommended Posts

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

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.


  • Activity

    1. 0

      erorrs after update granny to 2.9

    2. 0

      Navicat Premium 16.1.1 x64

    3. 5

      problem Dargon Soul Changre Attribute

    4. 5

      problem Dargon Soul Changre Attribute

    5. 41

      Global Chat

    6. 5

      problem Dargon Soul Changre Attribute

    7. 2

      Startup Loading Window Library

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.