m
Move page script moved page API ToggleGameMenu to WoW:API ToggleGameMenu without leaving a redirect
mNo edit summary |
m (Move page script moved page API ToggleGameMenu to WoW:API ToggleGameMenu without leaving a redirect) |
||
| (4 intermediate revisions by 4 users not shown) | |||
| Line 1: | Line 1: | ||
{{protectedapi|2.0.1|}} | |||
<br>{{framexmlfunc|FrameXML/UIParent.lua}} __NOTOC__ | |||
ToggleGameMenu(); | |||
Opens/closes the game menu. | Opens/closes the game menu. | ||
== Parameters == | |||
=== Arguments === | |||
:''none'' | :''none'' | ||
=== Returns === | |||
:;nil | :;nil | ||
== Example == | |||
ToggleGameMenu(); | ToggleGameMenu(); | ||
; | ==Note== | ||
* The function itself is not protected; it calls the following protected functions which trigger the ACTION_BLOCKED event:<br /> | |||
**[[API_SpellStopCasting|SpellStopCasting]]()<br /> | |||
**[[API_SpellStopTargeting|SpellStopTargeting]]()<br /> | |||
**[[API_ClearTarget|ClearTarget]]() | |||
* 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. | |||