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'':...')
 
m (Move page script moved page API GameTooltip GetSpell to API GameTooltip GetSpell without leaving a redirect)
 
(One intermediate revision by one other user not shown)
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").

Latest revision as of 04:45, 15 August 2023

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").