WoW:API ToggleSpellBook: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
m (catfix, Replaced: {{framexml → <br>{{framexml) |
||
Line 1: | Line 1: | ||
{{framexmlfunc|FrameXML/SpellBookFrame.lua}} __NOTOC__ | <br>{{framexmlfunc|FrameXML/SpellBookFrame.lua}} __NOTOC__ | ||
Revision as of 00:41, 15 July 2008
This function is implemented in Lua here FrameXML/SpellBookFrame.lua.
ToggleSpellBook(bookType);
Shows/Hides the Spellbook.
Parameters
Arguments
- bookType
- string containing which spellbook to open. Valid choices are "spell", "pet", "general", or any spec name (e.g. "assasination", "fire", etc). Only "spell" and "pet" will open the full spellbook (with all the tabs to click on), the rest will open only that tab (with no tabs to click on).
Returns
- nil
Example
ToggleSpellBook("spell");
Details
- Shows the Spellbook. Equivalent to pressing 'P'. Note that if you do not have any pet spells, passing in "pet" will do nothing.