commandingMenu: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Take[ _]On[ _]Helicopters(\|.*)?]]" to "{{GameCategory|tkoh|Scripting Commands}}") |
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
||
Line 1: | Line 1: | ||
{{Command|Comments= | {{Command|Comments= | ||
| arma2 |Game name= | | arma2 |Game name= | ||
Line 7: | Line 6: | ||
|gr1= Interaction |GROUP1= | |gr1= Interaction |GROUP1= | ||
| Returns the name of the topmost commanding menu or "" if the menu is closed. For action menu visibility check see [[isActionMenuVisible]]. |DESCRIPTION= | | Returns the name of the topmost commanding menu or "" if the menu is closed. For action menu visibility check see [[isActionMenuVisible]]. |DESCRIPTION= | ||
| '''commandingMenu''' |SYNTAX= | | '''commandingMenu''' |SYNTAX= | ||
Line 27: | Line 24: | ||
|x2= <code>[[if]] ([[commandingMenu]] != "") [[then]] { [[hint]] "Command menu is opened" };</code>|EXAMPLE2= | |x2= <code>[[if]] ([[commandingMenu]] != "") [[then]] { [[hint]] "Command menu is opened" };</code>|EXAMPLE2= | ||
| [[showCommandingMenu]], [[isActionMenuVisible]], [[BIS_fnc_addCommMenuItem]], [[BIS_fnc_removeCommMenuItem]] |SEEALSO= | | [[showCommandingMenu]], [[isActionMenuVisible]], [[BIS_fnc_addCommMenuItem]], [[BIS_fnc_removeCommMenuItem]] |SEEALSO= | ||
| |MPBEHAVIOUR= | | |MPBEHAVIOUR= | ||
}} | }} | ||
Revision as of 00:24, 17 January 2021
Description
- Description:
- Returns the name of the topmost commanding menu or "" if the menu is closed. For action menu visibility check see isActionMenuVisible.
- Groups:
- Interaction
Syntax
- Syntax:
- commandingMenu
- Return Value:
- String
Examples
- Example 1:
waitUntil {commandingMenu == "RscStatus"}; hint "Press 4, I'm bleeding !";
- Example 2:
if (commandingMenu != "") then { hint "Command menu is opened" };
Additional Information
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note
Notes
- Posted on July 15, 2009 - 12:21 (CEST)
- Lou Montana
-
Possible values are :
- "" - means menu is closed
- "RscMainMenu" - Main menu, by pressing backspace
- "RscMoveHigh" - Move menu (1)
- "#WATCH" - Watch menu (2)
- "#WATCH0" - Watch menu - next page (2-0)
- "RscWatchDir" - Engage menu (3)
- "RscWatchMoreDir" - Engage menu - watch a direction (3-8)
- "#GET_IN" - Mount menu (4)
- "RscStatus" - Status menu (5)
- "RscCallSupport" - Mount menu - call support (5-1)
- "#ACTION" - Action menu (6)
- "RscCombatMode" - Combat mode menu (7)
- "RscFormations" - Formation menu(8)
- "RscTeam" - Team menu (9)
- "RscSelectTeam" - Team menu - select team (0-5)
- "RscReply" - Reply menu (0)
- "#User:BIS_Menu_GroupCommunication" - Communication menu (0-8)
- "#CUSTOM_RADIO" - Custom sounds menu (0-9)
- "RscRadio" - Radio menu (0-0)
- "RscGroupRootMenu" - "simplified" menu