Jump to content
  • We need you!

    You must register to discover all the features of our community!

  • 0

Clicking problem


Datheft15

Question

2 answers to this question

Recommended Posts

  • 0
			elif Type == player.SLOT_TYPE_UPGRADE_INVENTORY or\
				Type == player.SLOT_TYPE_BOOK_INVENTORY or\
				Type == player.SLOT_TYPE_STONE_INVENTORY:
				item.SelectItem(self.AttachedItemIndex)
				self.AttachedIconHandle = item.GetIconInstance()
	
				if not self.AttachedIconHandle:
					self.AttachedIconHandle = 0
					self.DeattachObject()
					return
	
				(width, height) = item.GetItemSize()

			elif Type == player.SLOT_TYPE_SKILL:
				skillGrade = player.GetSkillGrade(SlotNumber)
				self.AttachedIconHandle = skill.GetIconInstanceNew(self.AttachedItemIndex, skillGrade)

Problem was in mousemodel.py. 

Just i've had If Type == player.SLOT_TYPE_UPGRADE_INVENTORY I just change to elif and it works ;)

 

 

SOLVED #

Edited by Datheft15 (see edit history)
Link to post

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


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