Wikia

WoWWiki

API ToggleSpellBook

Talk0
101,391pages on
this wiki
Revision as of 18:02, August 24, 2011 by Hizuro (Talk | contribs)


WoW API < ToggleSpellBook
Icon-information-22x22This function is implemented by FrameXML in FrameXML/SpellBookFrame.lua.


ToggleSpellBook(bookType);

Shows/Hides the Spellbook.


Parameters

Arguments

bookType
string containing which spellbook to open. Valid choices are "spell", "mount", "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.
If you want to open the spellbook using Lua, don't use this, use ToggleFrame(SpellBookFrame) instead.

Around Wikia's network

Random Wiki