Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
WoW
Talk
English
Views
Read
Edit
History
More
Search
Navigation
Home
Random page
Help using wiki
Editions
for WoW
for WildStar
for Solar2D
Documentation
for WoW
for WildStar
Reference
WoW
⦁ FrameXML
⦁ AddOns
⦁ API
⦁ WoW Lua
WildStar
⦁ AddOns
⦁ API
⦁ WildStar Lua
Engine
Tools
What links here
Related changes
Special pages
Page information
Site
Recent Changes
Editing
WoW:API ToggleSpellBook
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
<br>{{framexmlfunc|FrameXML/SpellBookFrame.lua}} __NOTOC__ 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). :;bookType (in version 4.2.0.14480): string is optional. without parameter opens the book with the last used tab. current valid choices are "spell", "mount", "professions", "pet", "companions" for the bottom tabs line. direct accessability for talent spell are missing. === 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 <code>ToggleFrame(SpellBookFrame)</code> instead. : However both <code>ToggleFrame(SpellBookFrame) and ToggleSpellBook("spell") </code>will not execute successfully while in combat using Lua due to AddOn Taint unless the Spell Book was previously opened during the same game session.
Summary:
Please note that all contributions to AddOn Studio are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see
AddOn Studio Wiki:Copyrights
for details).
Submissions must be written by you, or copied from a public domain or similar free resource (see
AddOn Studio Wiki:Copyrights
for details).
Cancel
Editing help
(opens in new window)
Templates used on this page:
Template:Apinav
(
edit
)
Template:Editlink
(
edit
)
Template:Framexml
(
edit
)
Template:Framexmlfunc
(
edit
)
Template:Icon-information
(
edit
)
Template:Wowapi
(
edit
)
Template:Wowtoolsfilelink
(
edit
)