Thread Tools Display Modes
08-26-22, 08:55 AM   #1
Platine
A Cliff Giant
AddOn Author - Click to view addons
Join Date: Dec 2010
Posts: 72
ItemRefTooltip is not fired

Please move this thread to the Lua/XML Help section.

Hello, if I hover over an item in the backpack with the mouse, its description will be displayed in the GameTooltip frame. If they additionally press the Shift key, the description Currently Equipped will be displayed in the ItemRefTooltip frame.



I would like to capture the moment of the ItemRefTooltip frame is showing, but something fails:

Code:
ItemRefTooltip:HookScript("OnTooltipSetItem", function(self, ...)
   print("ItemRefTooltip1");      
end );      

ItemRefTooltip:HookScript("OnShow", function(self)
   print("ItemRefTooltip2");      
end );      

ItemRefTooltip:HookScript("OnEnter", function(self)
   print("ItemRefTooltip3");      
end );      

ItemRefTooltip:HookScript("OnLeave", function(self)
   print("ItemRefTooltip4");
end );
The message is not displayed after showing the frame with Currently Equipped.

Last edited by Platine : 08-27-22 at 12:24 AM.
  Reply With Quote
08-26-22, 12:53 PM   #2
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 2,313
ItemRefTooltip only handles chat links. The comparison tooltips you're looking for are ShoppingTooltip1 and ShoppingTooltip2.
__________________
WoWInterface AddOns
"All I want is a pretty girl, a decent meal, and the right to shoot lightning at fools."
-Anders (Dragon Age: Origins - Awakening)
  Reply With Quote
08-27-22, 12:27 AM   #3
Platine
A Cliff Giant
AddOn Author - Click to view addons
Join Date: Dec 2010
Posts: 72
So how to detect the opening of the Currently Equipped frame?
I found such a solution and it works.
hooksecurefunc("GameTooltip_ShowCompareItem",function() print("You pressed Shift on Item Button"); end );
And then accessing Currently Equipped frames through ShopingTooltip1,2,3 objects.
-

Last edited by Platine : 08-27-22 at 01:31 AM.
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » ItemRefTooltip is not fired

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