WoW:API GameTooltip GetSpell: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
(Created page with '{{widgetmethod}} <!-- List return values and arguments as well as function name, follow Blizzard usage convention for args --> spellName, spellRank, spellID = ''GameTooltip'':...')
 
No edit summary
Line 1: Line 1:
{{widgetmethod}}
{{widgetmethod}}<!-- List return values and arguments as well as function name, follow Blizzard usage convention for args -->


<!-- List return values and arguments as well as function name, follow Blizzard usage convention for args -->
  spellName, spellID = ''GameTooltip'':GetSpell();
 
  spellName, spellRank, spellID = ''GameTooltip'':GetSpell();


Returns the name and link of the item displayed on a GameTooltip.
Returns the name and link of the item displayed on a GameTooltip.
Line 14: Line 12:
;''Returns''
;''Returns''


:spellName, spellRank, spellID
:spellName, spellID
:;spellName: Plain text spell name (e.g. "Explosive Shot").
:;spellName
:;spellRank: Plain text spell rank (e.g. "Rank 4").
:: Plain text spell name (e.g. "Explosive Shot").
:;spellID: Integer spell ID (e.g. "60053").
:;spellID
:: Integer spell ID (e.g. "60053").

Revision as of 04:16, 18 July 2018

Widget API ← GameTooltip < GetSpell

spellName, spellID = GameTooltip:GetSpell();

Returns the name and link of the item displayed on a GameTooltip.


Arguments
none

Returns
spellName, spellID
spellName
Plain text spell name (e.g. "Explosive Shot").
spellID
Integer spell ID (e.g. "60053").