Jump to content

Problem with sort inventory


Recommended Posts

Hello everyone, as the title suggests, I have a problem with this system (Link to system) when I have the mouse on the button, and I press the I to close the inventory, the tooltip remains open, I have to move the mouse from the button and close the inventory to do so that doesn't happen. It's a small bug but I want to fix it, can someone help me?

Spoiler

spacer.pngspacer.png

I think the cause is this file: root/uiinventory.py, exactly this part:

		if app.ENABLE_SORT_INVEN and self.tooltipInfo:
			for i in xrange(len(self.tooltipInfo)):
				if self.yenilebutton.IsIn():
					self.tooltipInfo[i].Show()
				else:
					self.tooltipInfo[i].Hide()

Because would I have to put it in "def OnUpdate (self) :", it's just not there so I created this def

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

  • 1 year later...

I found the solution:
look in the file client->root->uiinventory.py, inside class InventoryWindow(ui.ScriptWindow) (it's the third def Close(self) you'll find) :

	def Close(self):
		self.Hide()

add below:
 

        if app.ENABLE_SORT_INVEN:
            for i in xrange(len(self.tooltipInfo)):
                self.tooltipInfo[i].Hide()
Edited by 4peppe
  • 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.