WoW:API ToggleCharacter: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
mNo edit summary
m (Move page script moved page API ToggleCharacter to API ToggleCharacter without leaving a redirect)
 
(6 intermediate revisions by 6 users not shown)
Line 1: Line 1:
<center>'''ToggleCharacter''' ''-Documentation by AlexanderYoshi-''</center>
{{framexmlfunc|FrameXML/CharacterFrame.lua}} __NOTOC__
 
Toggles the character pane to the specified frame.


  ToggleCharacter(frameName);
  ToggleCharacter(frameName);


----
Toggles the character pane to the specified frame.
;''Arguments''
 
:(String frameName)
 
:;frameName : The framename to toggle on or off


----
== Parameters ==
;''Returns''


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


----
=== Returns ===
;''Example''
* nil
ToggleCharacter("SkillFrame");


;''Result''
=== Example ===


----
/script ToggleCharacter("PVPFrame")
;''Description''


: Toggles the character pane to the specified frame frameName.
or


----
/script ToggleCharacter("SkillFrame");
{{Template:WoW API}}
[[Category:API Functions|ToggleCharacter]]
[[Category:API Toggle Functions|ToggleCharacter]]

Latest revision as of 04:47, 15 August 2023

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[edit]

Arguments[edit]

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

Returns[edit]

  • nil

Example[edit]

/script ToggleCharacter("PVPFrame")

or

/script ToggleCharacter("SkillFrame");