Wowpedia

We have moved to Warcraft Wiki. Click here for information and the new URL.

READ MORE

Wowpedia
mNo edit summary
 
(Added new options for the new spellbook layout.)
 
Line 1: Line 1:
  +
<br>{{framexmlfunc|FrameXML/SpellBookFrame.lua}} __NOTOC__
−
[[Image:Thrumn.jpg|right]]
 
−
[[Thrumn]] is a level 25 [[tabard]] [[vendor]] located on the [[Lower Rise]] in the [[tauren]] city of [[Thunder Bluff]].
 
−
<br><br>
 
−
See [[List of Thunder Bluff NPCs]].
 
   
  +
−
[[Category:Tauren]]
 
  +
ToggleSpellBook(bookType);
−
[[Category:Armor Vendors]]
 
  +
−
[[Category:City:Thunder Bluff]]
 
  +
Shows/Hides the Spellbook.
  +
  +
  +
== Parameters ==
  +
=== Arguments ===
  +
  +
:;bookType: string containing which spellbook to open. Valid choices are "spell", "pet", "general", "Mounts", "Companions", "Professions", 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 <code>ToggleFrame(SpellBookFrame)</code> instead.

Latest revision as of 05:09, 30 October 2010


This function is implemented in FrameXML/SpellBookFrame.lua.


ToggleSpellBook(bookType);

Shows/Hides the Spellbook.


Parameters

Arguments

bookType
string containing which spellbook to open. Valid choices are "spell", "pet", "general", "Mounts", "Companions", "Professions", 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.