WoW:API ToggleSpellBook: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
({{framexmlfunc|FrameXML/SpellBookFrame.lua}} __NOTOC__) |
||
Line 1: | Line 1: | ||
{{framexmlfunc|FrameXML/SpellBookFrame.lua}} __NOTOC__ | |||
ToggleSpellBook(bookType); | ToggleSpellBook(bookType); | ||
Shows/Hides the Spellbook. | |||
== Parameters == | |||
=== Arguments === | |||
:;bookType: string containing which spellbook to open. Valid choices are "spell" and "pet" | :;bookType: string containing which spellbook to open. Valid choices are "spell" and "pet" | ||
=== Returns === | |||
:;nil | :;nil | ||
== Example == | |||
ToggleSpellBook("spell"); | 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. | : Shows the Spellbook. Equivalent to pressing 'P'. Note that if you do not have any pet spells, passing in "pet" will do nothing. | ||
Revision as of 14:19, 5 September 2006
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" and "pet"
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.