Jump to content

Hide quickslot tooltip


Go to solution Solved by MrQuin,

Recommended Posts

  • Active Member

Hey guys,

I'm wondering how to hide taskbar quickslot tooltip when help window is opened, because when you open the help window and hover over the items or skills, which you have in taskbar quickslot, you will see the tooltip, which won't disappear until you close the help window and hover over another tooltip somewhere. The tooltip should be hidden when the help window is opened like the other tooltips are.

I tried to lock these slots like below:

File: uihelp.py

Spoiler
	def LockSlot(self, slotIndex):
		wndMgr.LockSlot(self.hWnd, slotIndex)

	def UnlockSlot(self, slotIndex):
		wndMgr.UnlockSlot(self.hWnd, slotIndex)

	def Open(self):
		self.LockSlot(player.GetGlobalQuickSlot(SlotNumber))
		self.Lock()
		self.Show()

	def Close(self):
		self.UnlockSlot(player.GetGlobalQuickSlot(SlotNumber))
		self.Unlock()
		self.Hide()

 

But it doesn't work, surprisingly... xD

Everyone has this problem, I'm sure there's no one who have fixed that, so would be nice, if someone can share with us some solution.

Thanks for possible answers!

Sincerely,

ReFresh

Edited by ReFresh

I'll be always helpful! 👊 

Link to comment
Share on other sites

  • 5 weeks later...
  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

  • Contributor
  • Solution
Spoiler

@ interfaceModule.py:
After:

 

		wndTaskBar = uiTaskBar.TaskBar()


Add:
 

		wndTaskBar.BindInterface(self)

After:
 

	def CloseHelpWindow(self):
		self.wndUICurtain.Hide()
		self.wndHelp.Close()

Add:
 

	def IsShowHelpWindow(self):
		if self.wndHelp:
			if self.wndHelp.IsShow():
				return 1
		return 0

@ uiTaskbar.py:
After:

 

	def __del__(self):
		#print "---------------------------------------------------------------------------- DELETE TASKBAR"
		ui.ScriptWindow.__del__(self)

Add:
 

	def BindInterface(self, interface):
		from _weakref import proxy
		self.interface = proxy(interface)


After:

 

	def OverInItem(self, slotNumber):
		if mouseModule.mouseController.isAttached():
			return

Add:
 

		if self.interface.IsShowHelpWindow():
			return

! I still don't see this as a "problem" to be honest.

 

Edited by MrQuin
  • Metin2 Dev 1

My only accounts are here and on M2D, Don't trust anyone else from other shitty sites.
266868740522639360.png

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.