Thread Tools Display Modes
Prev Previous Post   Next Post Next
01-16-15, 11:22 AM   #19
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
Originally Posted by Vrul View Post
Shouldn't that SetItemRef call in OnHyperlinkLeave be this instead?
Code:
ItemRefTooltip:Hide()
No, because (a) the OnHyperlinkEnter script uses the GameTooltip, not the ItemRefTooltip, and (b) that won't hide the special tooltips used for battle pets etc.

The default UI calls SetItemRef each time you click on a link, and for tooltips it acts as a toggle -- the first click shows the tooltip, and the second click hides it.
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
  Reply With Quote
 

WoWInterface » Developer Discussions » Lua/XML Help » Hyperlink Tooltip Help

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off