WoW:API ToggleCharacter: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
m (update known frames)
mNo edit summary
Line 1: Line 1:
<br>{{framexmlfunc|FrameXML/CharacterFrame.lua}} __NOTOC__
{{framexmlfunc|FrameXML/CharacterFrame.lua}} __NOTOC__
 


  ToggleCharacter(frameName);
  ToggleCharacter(frameName);


Toggles the character pane to the specified frame.
Toggles the character pane to the specified frame.


== Parameters ==
== Parameters ==


=== Arguments ===
=== Arguments ===
 
* frameName (string) - The frame to toggle on or off
:;frameName : String- The frame to toggle on or off
** known frame names are as follows: - PaperDollFrame, PetPaperDollFrame, SkillFrame, ReputationFrame, TokenFrame
 
known frame names are as follows;
 
PaperDollFrame, PetPaperDollFrame, SkillFrame, ReputationFrame, TokenFrame


=== Returns ===
=== Returns ===
 
* nil
:;nil


=== Example ===
=== Example ===


/script ToggleCharacter("PVPFrame")
/script ToggleCharacter("PVPFrame")


or
or


/script ToggleCharacter("SkillFrame");
/script ToggleCharacter("SkillFrame");

Revision as of 23:47, 16 May 2020

WoW API < ToggleCharacter

"I" iconThis function is implemented in Lua here FrameXML/CharacterFrame.lua.
ToggleCharacter(frameName);

Toggles the character pane to the specified frame.

Parameters

Arguments

  • frameName (string) - The frame to toggle on or off
    • known frame names are as follows: - PaperDollFrame, PetPaperDollFrame, SkillFrame, ReputationFrame, TokenFrame

Returns

  • nil

Example

/script ToggleCharacter("PVPFrame")

or

/script ToggleCharacter("SkillFrame");