commandingMenu: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (template:command argument fix)
(Add Arma 3 data thanks to RCA3)
(40 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Command|= Comments
{{RV|type=command
____________________________________________________________________________________________


| arma2 |= Game name
|game1= arma2
|version1= 1.00


|1.00|= Game version
|game2= arma2oa
____________________________________________________________________________________________
|version2= 1.50


| Return the name of the player actual topmost commanding menu. |DESCRIPTION=
|game3= tkoh
____________________________________________________________________________________________
|version3= 1.00


| '''commandingMenu''' |SYNTAX=
|game4= arma3
|version4= 0.50


|p1= |PARAMETER1=  
|gr1= Interaction


|p2= |PARAMETER2=
|descr= Returns the name of the topmost commanding menu or "" if the menu is closed. For action menu visibility check see [[isActionMenuVisible]]. See {{HashLink|#Notes}} for {{arma2}}/{{arma3}} structure.


|p3= |PARAMETER3=  
|s1= [[commandingMenu]]


| [[String]] |RETURNVALUE=
|r1= [[String]]


|x1= <code>[[waitUntil]] {[[commandingMenu]] == "RscStatus"}; [[hint]] "Press 4, I'm bleeding !";</code>


|x1= <code>[[waitUntil]] {[[commandingMenu]] <nowiki>==</nowiki> "RscStatus"}; [[hint]] "Press 4, I'm bleeding !";</code>|EXAMPLE1=
|x2= <code>[[if]] ([[commandingMenu]] != "") [[then]] { [[hint]] "Command menu is opened" };</code>


____________________________________________________________________________________________
|seealso= [[showCommandingMenu]], [[isActionMenuVisible]], [[BIS_fnc_addCommMenuItem]], [[BIS_fnc_removeCommMenuItem]]
}}


| [[showCommandingMenu]], [[BIS_fnc_addCommMenuItem]], [[BIS_fnc_removeCommMenuItem]] |SEEALSO=  
<dl class="command_description">


| |MPBEHAVIOUR=  
<dt></dt>
____________________________________________________________________________________________
<dd class="notedate">Posted on July 15, 2009 - 12:21 (CEST)</dd>
}}
<dt class="note">[[User:Lou Montana|Lou Montana]]</dt>
<dd class="note">
{{arma2}} possible values are:
* '''""''' - means the 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
</dd>


<h3 style='display:none'>Notes</h3>
<dt></dt>
<dl class='command_description'>
<dd class="notedate">Posted on Augst 02, 2021 - 07:42 (UTC)</dd>
<!-- Note Section BEGIN -->
<dt class="note">[[User:Lou Montana|Lou Montana]]</dt>
<dd class="notedate">Posted on July 15, 2009 - 12:21 (CEST)
<dt class="note">'''[[User:Lou Montana|Lou Montana]]'''
<dd class="note">
<dd class="note">
Possible values are :
{{arma3}} possible values (thanks to '''RCA3'''):
*'''""''' - means menu is closed
* '''""''' - means the menu is closed
*'''"RscMainMenu"''' - Main menu, by pressing backspace
* '''"RscGroupRootMenu"''' Group menu root
**'''"RscMoveHigh"''' - Move menu (1)
** '''"RscMenuMove"''' (1) Move menu
**'''"#WATCH"''' - Watch menu (2)
** '''"#WATCH"''' (2) Watch menu
***'''"#WATCH0"''' - Watch menu - next page (2-0)
*** '''"#WATCH1"''' (2-0) Watch menu - next page
**'''"RscWatchDir"''' - Engage menu (3)
** '''"RscMenuEngage"''' (3) Engage menu
***'''"RscWatchMoreDir"''' - Engage menu - watch a direction (3-8)
*** '''"RscMenuWatchDir"''' (3-8) Engage menu - watch a direction
**'''"#GET_IN"''' - Mount menu (4)
** '''"#GET_IN"''' (4) Mount menu
**'''"RscStatus"''' - Status menu (5)
** '''"RscMenuStatus"''' (5) Status menu
***'''"RscCallSupport"''' - Mount menu - call support (5-1)
*** '''"RscCallSupport"''' (5-1) Status menu - call support
**'''"#ACTION"''' - Action menu (6)
** '''"#ACTION"''' (6) Action menu Action menu
**'''"RscCombatMode"''' - Combat mode menu (7)
** '''"RscMenuCombatMode"''' (7) Combat mode menu
**'''"RscFormations"''' - Formation menu(8)
** '''"RscMenuFormations"''' (8) Formation menu
**'''"RscTeam"''' - Team menu (9)
** '''"RscMenuTeam"''' (9) Team menu
***'''"RscSelectTeam"''' - Team menu - select team (0-5)
*** '''"RscMenuSelectTeam"''' (9-9) Team menu - select team
**'''"RscReply"''' - Reply menu (0)
** '''"RscMenuReply"''' (0) Reply menu
***'''"#User:BIS_Menu_GroupCommunication"''' - Communication menu (0-8)
*** '''"#User:BIS_fnc_addCommMenuItem_menu"''' (0-8) BIS Supports
***'''"#CUSTOM_RADIO"''' - Custom sounds menu (0-9)
*** '''"#CUSTOM_RADIO"''' (0-9) Custom radio
**'''"RscRadio"''' - Radio menu (0-0)
*** '''"RscRadio"''' (0-0) Radio menu
*'''"RscGroupRootMenu"''' - "simplified" menu
** '''"RscMainMenu"''' (Backspace) Main menu
</dd>


<!-- Note Section END -->
</dl>
</dl>
<h3 style='display:none'>Bottom Section</h3>
[[Category:ArmA 2: New Scripting Commands List|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]

Revision as of 10:19, 2 August 2021

Hover & click on the images for description

Description

Description:
Returns the name of the topmost commanding menu or "" if the menu is closed. For action menu visibility check see isActionMenuVisible. See Notes for Arma 2/Arma 3 structure.
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

See also:
showCommandingMenuisActionMenuVisibleBIS_fnc_addCommMenuItemBIS_fnc_removeCommMenuItem

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
Posted on July 15, 2009 - 12:21 (CEST)
Lou Montana
Arma 2 possible values are:
  • "" - means the 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
Posted on Augst 02, 2021 - 07:42 (UTC)
Lou Montana
Arma 3 possible values (thanks to RCA3):
  • "" - means the menu is closed
  • "RscGroupRootMenu" Group menu root
    • "RscMenuMove" (1) Move menu
    • "#WATCH" (2) Watch menu
      • "#WATCH1" (2-0) Watch menu - next page
    • "RscMenuEngage" (3) Engage menu
      • "RscMenuWatchDir" (3-8) Engage menu - watch a direction
    • "#GET_IN" (4) Mount menu
    • "RscMenuStatus" (5) Status menu
      • "RscCallSupport" (5-1) Status menu - call support
    • "#ACTION" (6) Action menu Action menu
    • "RscMenuCombatMode" (7) Combat mode menu
    • "RscMenuFormations" (8) Formation menu
    • "RscMenuTeam" (9) Team menu
      • "RscMenuSelectTeam" (9-9) Team menu - select team
    • "RscMenuReply" (0) Reply menu
      • "#User:BIS_fnc_addCommMenuItem_menu" (0-8) BIS Supports
      • "#CUSTOM_RADIO" (0-9) Custom radio
      • "RscRadio" (0-0) Radio menu
    • "RscMainMenu" (Backspace) Main menu