I'm making an addon which adds lines to the GameTooltip. That works correctly, but it doesn't seem to apply to the item-details pop-up window that appears when you click an item in the chat window. I didn't find any reference to that pop-up (what it's called etc.) so I'm not sure how to hook into it.
Also, is there a general approach to hooking into tooltips from other addons, like Atlas loot?
local origChatFrame_OnHyperlinkShow = ChatFrame_OnHyperlinkShow;
ChatFrame_OnHyperlinkShow = function(...)
local chatFrame, link, text, button = ...;
local result = origChatFrame_OnHyperlinkShow(...);
print (result);
ShowUIPanel(ItemRefTooltip);
if (not ItemRefTooltip:IsVisible()) then
ItemRefTooltip:SetOwner(UIParent, "ANCHOR_PRESERVE");
end
-- do stuff to add lines
ItemRefTooltip:Show(); ItemRefTooltip:Show();
return result;
end;
Hey,
I'm making an addon which adds lines to the GameTooltip. That works correctly, but it doesn't seem to apply to the item-details pop-up window that appears when you click an item in the chat window. I didn't find any reference to that pop-up (what it's called etc.) so I'm not sure how to hook into it.
Also, is there a general approach to hooking into tooltips from other addons, like Atlas loot?
Cheers
Finally found the solution:
In reply to tZeequemola:
Hi im just starting to learn , im looking to make a script that shows the spell id when i hover over it in game
any suggestions