WoW:API ToggleCharacter: Difference between revisions
Jump to navigation
Jump to search
m (→Arguments) |
m (Move page script moved page API ToggleCharacter to API ToggleCharacter without leaving a redirect) |
||
(3 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
{{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 | |||
** known frame names are as follows: - PaperDollFrame, PetPaperDollFrame, SkillFrame, ReputationFrame, TokenFrame | |||
known frame names are as follows | |||
=== Returns === | === Returns === | ||
* nil | |||
=== Example === | === Example === | ||
/script ToggleCharacter("PVPFrame") | /script ToggleCharacter("PVPFrame") | ||
or | or | ||
/script ToggleCharacter("SkillFrame"); | /script ToggleCharacter("SkillFrame"); |
Latest revision as of 04:47, 15 August 2023
- This 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");