Jump to content
Sign in to follow this  
juleshuxley

How do I hide the commanding menu?

Recommended Posts

You can give this command a multidimensional array and it will generate a menu for you: showCommandingMenu 

 

However, I'm finding it very difficult to reverse engineer this array. Here's an example of a menu:

 

AIO_MENU_GroupCommunication =
[
    ["All-In-One Command Menu",true],
    [parseText"<img color='#a532c9' image='\A3\ui_f\data\IGUI\Cfg\Actions\eject_ca.paa'/><t font='PuristaBold'> Disembark Non-Essential", [], "", -5, [["expression", "[(groupSelectedUnits player)] call AIO_fnc_disembarkNonEssential"]], "NotEmptyInVehicle", "1"],
    [parseText"<img color='#95ff44' image='\A3\ui_f\data\IGUI\Cfg\simpleTasks\types\meet_ca.paa'/><t font='PuristaBold'> Infantry Commands", ([[2], [2, 79]] select _useNumpad), "#USER:AIO_infantry_subMenu", -5, [["expression", ""]], "1", "1"],
    [parseText"<img color='#ffff00' image='\A3\ui_f\data\IGUI\Cfg\simpleTasks\types\navigate_ca.paa'/><t font='PuristaBold'> WayPoints", ([[3], [3, 80]] select _useNumpad), "", -5, [["expression", "call AIO_fnc_startWaypointUI"]], "1", "1"],
    [parseText"<img color='#ffa43d' image='\A3\ui_f\data\IGUI\Cfg\simpleTasks\types\heli_ca.paa'/><t font='PuristaBold'> Vehicle Commands", ([[4], [4, 81]] select _useNumpad), "#USER:AIO_vehicle_subMenu", -5, [["expression", ""]], "1", "1"],
    [parseText"<img color='#8c3825' image='\A3\ui_f\data\IGUI\Cfg\simpleTasks\types\rifle_ca.paa'/><t font='PuristaBold'> Manage equipment", ([[5], [5, 75]] select _useNumpad), "#USER:AIO_weaponAcessories_subMenu", -5, [["expression", ""]], "1", "1"],
    ["", [], "", -1, [["expression", ""]], "1", "0"],
    [parseText"<img color='#ffd6df' image='\A3\ui_f\data\IGUI\Cfg\Actions\take_ca.paa'/><t font='PuristaBold'> Actions", ([[6], [6, 76]] select _useNumpad), "#USER:AIO_action_subMenu", -5, [["expression", ""]], "1", "1"],
    ["", [], "", -1, [["expression", ""]], "1", "0"],
    [parseText"<img color='#f94a4a' image='\A3\ui_f\data\IGUI\Cfg\simpleTasks\types\takeoff_ca.paa'/><t font='PuristaBold'> Unstick Unit", ([[7], [7, 77]] select _useNumpad), "", -5, [["expression", "[(groupSelectedUnits player)] spawn AIO_fnc_unstickUnit "]], "1", "1"],
    ["", [], "", -1, [["expression", ""]], "1", "0"],
    [parseText"<img image='AIO_AIMENU\pictures\advance1.paa'/><t font='PuristaBold'> High Command", ([[8], [8, 71]] select _useNumpad), "", -5, [["expression", "[] spawn AIO_fnc_Menu_HC"]], "1", "1"],
    [parseText"<img image='\A3\ui_f\data\IGUI\Cfg\simpleTasks\types\documents_ca.paa'/><t font='PuristaBold'> Cheats", ([[9], [9, 72]] select _useNumpad), "", -5, [["expression", "[groupSelectedUnits player] spawn AIO_fnc_createCheatsMenu"]], AIO_Cheats_Enabled_STR, "1"],
    [parseText"<img color='#5c3fd9' image='AIO_AIMENU\pictures\zeus.paa'/><t font='PuristaBold'> Activate AIO Zeus", _zeusShortcut, "", -5, [["expression", "[0] call AIO_fnc_zeus"]], AIO_Zeus_Enabled_STR, "1"]
];

Can someone explain every array entry for one item and what it does?
 

Entry 1: Is the button's description. Font and an image can also be inserted through using the parseText function here.

Entry 2: An emty array, sometimes contains small arrays??
Entry 3: sometimes contains the function select _useNumpad
Entry 4: Contains a string that will be evaluated as code, it's what happens when the button is chosen by the user
Entry 5: An interger ???
Entry 6 An integer???

Something like that, it's really hard to read what's going on. Very poor documentation on showCommandingMenu, I have no idea how the person who made the mod I'm reverse engineering figured all this out.

Can someone help me figure out the array structure for showCommandingMenu? Thanks

Share this post


Link to post
Share on other sites

-snip-

Edited by EO
Post no longer relevant.

Share this post


Link to post
Share on other sites
On 10/14/2020 at 3:34 PM, juleshuxley said:

-snip-

Two threads of the same name merged and moved to the correct location. As EO said please post in the correct location, any further issues may result in forum infractions.

  • Thanks 1

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×