WoW:API ToggleGameMenu: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
No edit summary
m (Move page script moved page API ToggleGameMenu to API ToggleGameMenu without leaving a redirect)
 
(5 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<center>'''ToggleGameMenu''' ''-Documentation by AlexanderYoshi-''</center>
{{protectedapi|2.0.1|}}
 
<br>{{framexmlfunc|FrameXML/UIParent.lua}} __NOTOC__
 
 
ToggleGameMenu();


Opens/closes the game menu.
Opens/closes the game menu.


ToggleGameMenu();


----
== Parameters ==
;''Arguments''
=== Arguments ===


:''none''
:''none''


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


:;nil
:;nil


----
 
;''Example''
== Example ==
  ToggleGameMenu();
  ToggleGameMenu();


;''Result''
==Note==
 
* The function itself is not protected; it calls the following protected functions which trigger the ACTION_BLOCKED event:<br />
----
**[[API_SpellStopCasting|SpellStopCasting]]()<br />
;''Description''
**[[API_SpellStopTargeting|SpellStopTargeting]]()<br />
 
**[[API_ClearTarget|ClearTarget]]()
: Opens/closes the game menu.
* The name of this function is a bit of a misnomer, it's actually a handler that fires when the user presses the Escape key.
 
----
{{WoW API}}

Latest revision as of 04:47, 15 August 2023


WoW API < ToggleGameMenu

"I" iconThis function is implemented in Lua here FrameXML/UIParent.lua.


ToggleGameMenu();

Opens/closes the game menu.


Parameters[edit]

Arguments[edit]

none

Returns[edit]

nil


Example[edit]

ToggleGameMenu();

Note[edit]

  • The function itself is not protected; it calls the following protected functions which trigger the ACTION_BLOCKED event:
  • The name of this function is a bit of a misnomer, it's actually a handler that fires when the user presses the Escape key.