m
Move page script moved page API GameTooltip SetSpell to WoW:API GameTooltip SetSpell without leaving a redirect
No edit summary |
m (Move page script moved page API GameTooltip SetSpell to WoW:API GameTooltip SetSpell without leaving a redirect) |
||
| (2 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
{{widgetmethod}} | {{widgetmethod}} | ||
Shows the tooltip for the specified spell. | Shows the tooltip for the specified spell. | ||
GameTooltip:SetSpell( | GameTooltip:SetSpell(spellBookId, bookType); | ||
;''Arguments'' | ;''Arguments'' | ||
: | : | ||
:; | :;spellBookId: Number - the id of the spell on the tab from the spellbook - not the same as SpellId | ||
:;bookType: String - Either BOOKTYPE_SPELL ("spell") or BOOKTYPE_PET ("pet"). | :;bookType: String - Either BOOKTYPE_SPELL ("spell") or BOOKTYPE_PET ("pet"). | ||
| Line 14: | Line 14: | ||
== Details == | == Details == | ||
* Find the | * Find the spellBookId as follows: | ||
local i = 1 | local i = 1 | ||
| Line 28: | Line 28: | ||
i = i + 1 | i = i + 1 | ||
end | end | ||
== Notes == | |||
This has been renamed to SetSpellBookItem in patch 4.0.1 | |||