Thread Tools Display Modes
Prev Previous Post   Next Post Next
08-22-22, 07:48 AM   #1
nyxxir
A Defias Bandit
Join Date: Aug 2022
Posts: 2
Why OnTooltipSetUnit callback is not working?

Lua Code:
  1. GameTooltip:HookScript("OnTooltipSetUnit", TooltipCallback)
  2.  
  3. function TooltipCallback(tooltip, ...)
  4.     local unitName, unitId = tooltip:GetUnit()
  5.     GameTooltip:AddLine(unitName)
  6. end

The new line is not added. What is wrong? And what arguments OnTooltipSetUnit callback should have? I've a lot of different options ('self', 'self, tooltip', 'self, ...', 'tooltip, ...' and so on)...
  Reply With Quote
 

WoWInterface » Developer Discussions » Lua/XML Help » Why OnTooltipSetUnit callback is not working?


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