Quantcast
GameTooltip:GetSpell() - WoWInterface
Thread Tools Display Modes
01-28-21, 03:07 PM   #1
Platine
An Aku'mai Servant
AddOn Author - Click to view addons
Join Date: Dec 2010
Posts: 36
GameTooltip:GetSpell()

The function OnTooltipSetSpell is fired on spell and talent tooltip.
How to recognize if it is spell or talent?

Lua Code:
  1. GameTooltip:HookScript("OnTooltipSetSpell", function(self)
  2.     local spellName, spellID = self:GetSpell();
  3.    ----- this work both on spell and talent tooltip
  4. end
  5. );
  Reply With Quote
01-28-21, 03:22 PM   #2
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2007
Posts: 1,705
Lua Code:
  1. hooksecurefunc(GameTooltip, 'SetTalent', function(self, spellID, isInspect, talentGroup)
  2.    -- do your thing
  3. end)
  Reply With Quote
01-29-21, 06:53 AM   #3
Platine
An Aku'mai Servant
AddOn Author - Click to view addons
Join Date: Dec 2010
Posts: 36
OK, it is some information that I can use.
Thanks p3lim.
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » GameTooltip:GetSpell()

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