WoW BlueTracker Home | RSS | News | Contact
Recent | Search | Archive | CS Posts
Poster: Iriel at 9/12/2005 11:33:12 PM PDT
Subject: 1.7 breaks GameTooltip:SetUnit mouseover hook
   If you're an addon author who has hooked GameTooltip:SetUnit to add new content to the tooltip, you may notice that it's now stopped working in 1.7

My workaround has been this:


-- workaround un-hookability for mouseover
local oldScript = GameTooltip:GetScript("OnEvent");
local newScript =
function()
oldScript();
if (event == "UPDATE_MOUSEOVER_UNIT") then
CALL_YOUR_CODE_HERE(this);
end
end
GameTooltip:SetScript("OnEvent", newScript);


That seems to work pretty well, when your code is called the tooltip is already rendered and shown, so you just add your own text then :Show() again to resize.

If anyone has a better idea, please do let me know.
> Use ## SavedVariables: instead of RegisterForSave()
  http://forums.worldofwarcraft.com/thread.aspx?fn=wow-interface-customization&t=214892&p=#post214892
 
Poster: slouken at 9/13/2005 4:42:53 AM PDT
Subject: Re: 1.7 breaks GameTooltip:SetUnit mouseover hook
   I'm not sure how that would have been broken... How are you hooking the call?

Edit: Nevermind, I understand what happened. This should only affect mouseover, which is handled internally by the game engine.

[ post edited by slouken ]

  http://forums.worldofwarcraft.com/thread.aspx?fn=wow-interface-customization&t=214892&p=#post214961

View all recent official Blue Posts

WoW Blue Tracker: Archiving World of Warcraft Blue Posts
since March 2005
Home | RSS | News | Contact
Recent | Search | Archive | CS Posts
 

Why Ads?