Quantcast

Hide tooltip on click

p3lim [01-14-11 - 20:34]
Hide tooltip on click
Filename
Broker_Equipment.lua
diff --git a/Broker_Equipment.lua b/Broker_Equipment.lua
index fc0ead0..e62095c 100644
--- a/Broker_Equipment.lua
+++ b/Broker_Equipment.lua
@@ -101,6 +101,10 @@ local function OnTooltipShow(self)
 end

 local function OnClick(self, button)
+	if(GameTooltip:GetOwner() == self) then
+		GameTooltip:Hide()
+	end
+
 	if(button ~= 'RightButton' and GetNumEquipmentSets() > 0) then
 		ToggleDropDownMenu(1, nil, parent, self, 0, 0)
 	else