@@ -12,67 +12,53 @@ AIO_rearmTargets = [];
1212_inVeh = [" 0" , " 1" ] select (vehicle player ! = player );
1313
1414
15-
15+ _useNumpad = AIO_useNumpadKeys;
1616
1717// -------------------------------------------------------------------VEH------------------------------------------------------------
1818AIO_vehicle_subMenu =
1919[
2020 [" Vehicle Commands" ,true ],
2121 [parseText " <img image='AIO_AIMENU\pictures\changeSeat.paa'/><t font='PuristaBold'> Switch Seats" , [], " #USER:AIO_switchseat_subMenu" , - 5 , [[" expression" , " " ]], (_inVeh + " +NotEmptyInVehicle" ), " 1" ],
22- [parseText " <img image='\A3\ui_f\data\IGUI\Cfg\Cursors\getIn_ca.paa'/><t font='PuristaBold'> Mount" , ([[2 ], [2 , 79 ]] select AIO_useNumpadKeys ), " #USER:AIO_mount_subMenu" , - 5 , [[" expression" , " " ]], " 1" , " NotEmpty" ],
22+ [parseText " <img image='\A3\ui_f\data\IGUI\Cfg\Cursors\getIn_ca.paa'/><t font='PuristaBold'> Mount" , ([[2 ], [2 , 79 ]] select _useNumpad ), " #USER:AIO_mount_subMenu" , - 5 , [[" expression" , " " ]], " 1" , " NotEmpty" ],
2323 [" " , [], " " , - 1 , [[" expression" , " " ]], " 1" , " 0" ],
24- [parseText " <img color='#8c5826' image='\A3\ui_f\data\IGUI\RscIngameUI\RscUnitInfo\role_driver_ca.paa'/><t font='PuristaBold'> Create Driver" , ([[3 ], [3 , 80 ]] select AIO_useNumpadKeys ), " " , - 5 , [[" expression" , " [(groupSelectedUnits player)] spawn AIO_fnc_createDriver" ]], " 1" , _inVeh ],
25- [parseText " <img color='#FFFF00' image='\A3\ui_f\data\IGUI\Cfg\simpleTasks\types\land_ca.paa'/><t font='PuristaBold'> Land" , ([[4 ], [4 , 81 ]] select AIO_useNumpadKeys ), " " , - 5 , [[" expression" , " [groupSelectedUnits player] call AIO_fnc_HeliType" ]], " 1" , " NotEmptyInVehicle * CursorOnGround" ],
26- [parseText " <img color='#2da7ff' image='\A3\ui_f\data\IGUI\Cfg\simpleTasks\types\heli_ca.paa'/><t font='PuristaBold'> Flight Height" , ([[5 ], [5 , 75 ]] select AIO_useNumpadKeys ), " #USER:AIO_flightHeight_subMenu" , - 5 , [[" expression" , " " ]], " 1" , " NotEmptyInVehicle" ],
24+ [parseText " <img color='#8c5826' image='\A3\ui_f\data\IGUI\RscIngameUI\RscUnitInfo\role_driver_ca.paa'/><t font='PuristaBold'> Create Driver" , ([[3 ], [3 , 80 ]] select _useNumpad ), " " , - 5 , [[" expression" , " [(groupSelectedUnits player)] spawn AIO_fnc_createDriver" ]], " 1" , _inVeh ],
25+ [parseText " <img color='#FFFF00' image='\A3\ui_f\data\IGUI\Cfg\simpleTasks\types\land_ca.paa'/><t font='PuristaBold'> Land" , ([[4 ], [4 , 81 ]] select _useNumpad ), " " , - 5 , [[" expression" , " [groupSelectedUnits player] call AIO_fnc_HeliType" ]], " 1" , " NotEmptyInVehicle * CursorOnGround" ],
26+ [parseText " <img color='#2da7ff' image='\A3\ui_f\data\IGUI\Cfg\simpleTasks\types\heli_ca.paa'/><t font='PuristaBold'> Flight Height" , ([[5 ], [5 , 75 ]] select _useNumpad ), " #USER:AIO_flightHeight_subMenu" , - 5 , [[" expression" , " " ]], " 1" , " NotEmptyInVehicle" ],
2727 [" " , [], " " , - 1 , [[" expression" , " " ]], " 1" , " 0" ],
28- [parseText " <img color='#626262' image='\A3\ui_f\data\GUI\Cfg\RespawnRoles\support_ca.paa'/><t font='PuristaBold'> Resupply" , ([[6 ], [6 , 76 ]] select AIO_useNumpadKeys ), " #USER:AIO_resupply_subMenu" , - 5 , [[" expression" , " " ]], " 1" , " NotEmptyInVehicle" ],
29- [parseText " <img color='#f94a4a' image='\A3\ui_f\data\IGUI\RscIngameUI\RscUnitInfoAirRTDFull\ico_cpt_park_ON_ca.paa'/><t font='PuristaBold'> Vehicle Controls" , ([[7 ], [7 , 77 ]] select AIO_useNumpadKeys ), " #USER:AIO_vehicleCtrl_subMenu" , - 5 , [[" expression" , " " ]], " 1" , " NotEmptyInVehicle" ],
30- [parseText " <img image='\A3\ui_f\data\IGUI\Cfg\VehicleToggles\LandingGearIconOn_ca.paa'/><t font='PuristaBold'> Taxi Aircraft" , ([[8 ], [8 , 71 ]] select AIO_useNumpadKeys ), " #USER:AIO_Taxi_subMenu" , - 5 , [[" expression" , " " ]], " 1" , " NotEmptyInVehicle" ],
28+ [parseText " <img color='#626262' image='\A3\ui_f\data\GUI\Cfg\RespawnRoles\support_ca.paa'/><t font='PuristaBold'> Resupply" , ([[6 ], [6 , 76 ]] select _useNumpad ), " #USER:AIO_resupply_subMenu" , - 5 , [[" expression" , " " ]], " 1" , " NotEmptyInVehicle" ],
29+ [parseText " <img color='#f94a4a' image='\A3\ui_f\data\IGUI\RscIngameUI\RscUnitInfoAirRTDFull\ico_cpt_park_ON_ca.paa'/><t font='PuristaBold'> Vehicle Controls" , ([[7 ], [7 , 77 ]] select _useNumpad ), " #USER:AIO_vehicleCtrl_subMenu" , - 5 , [[" expression" , " " ]], " 1" , " NotEmptyInVehicle" ],
30+ [parseText " <img image='\A3\ui_f\data\IGUI\Cfg\VehicleToggles\LandingGearIconOn_ca.paa'/><t font='PuristaBold'> Taxi Aircraft" , ([[8 ], [8 , 71 ]] select _useNumpad ), " #USER:AIO_Taxi_subMenu" , - 5 , [[" expression" , " " ]], " 1" , " NotEmptyInVehicle" ],
3131 [" " , [], " " , - 1 , [[" expression" , " " ]], " 1" , " 0" ],
32- [parseText " <img image='\A3\ui_f\data\IGUI\Cfg\Actions\eject_ca.paa'/><t font='PuristaBold'> EJECT (parachute if Air)" , ([[9 ], [9 , 72 ]] select AIO_useNumpadKeys ), " " , - 5 , [[" expression" , " [(groupSelectedUnits player)] call AIO_fnc_eject" ]], " 1" , " NotEmptyInVehicle" ]
32+ [parseText " <img image='\A3\ui_f\data\IGUI\Cfg\Actions\eject_ca.paa'/><t font='PuristaBold'> EJECT (parachute if Air)" , ([[9 ], [9 , 72 ]] select _useNumpad ), " " , - 5 , [[" expression" , " [(groupSelectedUnits player)] call AIO_fnc_eject" ]], " 1" , " NotEmptyInVehicle" ]
3333];
3434
3535// -----------------------------------------------------------------------------------------------------------------------------
3636
37- if (player ! = hcLeader group player ) then {player hcSetGroup [group player ]};
38-
39- if (player == hcLeader group player ) then {
40- AIO_MENU_GroupCommunication =
41- [
42- [" All-In-One Command Menu" ,true ],
43- [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" ],
44- [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 AIO_useNumpadKeys), " #USER:AIO_infantry_subMenu" , - 5 , [[" expression" , " " ]], " 1" , " 1" ],
45- [parseText " <img color='#ffff00' image='\A3\ui_f\data\IGUI\Cfg\simpleTasks\types\navigate_ca.paa'/><t font='PuristaBold'> WayPoints" , ([[3 ], [3 , 80 ]] select AIO_useNumpadKeys), " " , - 5 , [[" expression" , " call AIO_fnc_startWaypointUI" ]], " 1" , " 1" ],
46- [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 AIO_useNumpadKeys), " #USER:AIO_vehicle_subMenu" , - 5 , [[" expression" , " " ]], " 1" , " 1" ],
47- [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 AIO_useNumpadKeys), " #USER:AIO_weaponAcessories_subMenu" , - 5 , [[" expression" , " " ]], " 1" , " 1" ],
48- [" " , [], " " , - 1 , [[" expression" , " " ]], " 1" , " 0" ],
49- [parseText " <img color='#ffd6df' image='\A3\ui_f\data\IGUI\Cfg\Actions\take_ca.paa'/><t font='PuristaBold'> Actions" , ([[6 ], [6 , 76 ]] select AIO_useNumpadKeys), " #USER:AIO_action_subMenu" , - 5 , [[" expression" , " " ]], " 1" , " 1" ],
50- [" " , [], " " , - 1 , [[" expression" , " " ]], " 1" , " 0" ],
51- [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 AIO_useNumpadKeys), " " , - 5 , [[" expression" , " [(groupSelectedUnits player)] spawn AIO_fnc_unstickUnit " ]], " 1" , " 1" ],
52- [" " , [], " " , - 1 , [[" expression" , " " ]], " 1" , " 0" ],
53- [parseText " <img image='\A3\ui_f\data\IGUI\Cfg\Actions\Obsolete\ui_action_teamswitch_ca.paa'/><t font='PuristaBold'> Make Units Playable" , ([[8 ], [8 , 71 ]] select AIO_useNumpadKeys), " " , - 5 , [[" expression" , " {addSwitchableUnit _x} foreach (units group player)-[player]" ]], " 1" , " 1" ],
54- [parseText " <img image='\A3\ui_f\data\IGUI\Cfg\simpleTasks\types\documents_ca.paa'/><t font='PuristaBold'> Cheats" , ([[9 ], [9 , 72 ]] select AIO_useNumpadKeys), " " , - 5 , [[" expression" , " [groupSelectedUnits player] spawn AIO_fnc_createCheatsMenu" ]], " 1" , " 1" ],
55- [parseText " <img color='#5c3fd9' image='AIO_AIMENU\pictures\zeus.paa'/><t font='PuristaBold'> Add/Refresh Zeus" , ([[10 ], [10 , 73 ]] select AIO_useNumpadKeys), " " , - 5 , [[" expression" , " [0] call AIO_fnc_zeus" ]], AIO_Zeus_Enabled_STR, " 1" ]
56- ];
57- } else {
58- AIO_MENU_GroupCommunication =
59- [
60- [" All-In-One Command Menu" ,true ],
61- [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" ]], " " , " 1" ],
62- [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 AIO_useNumpadKeys), " #USER:AIO_infantry_subMenu" , - 5 , [[" expression" , " " ]], " 1" , " 1" ],
63- [parseText " <img color='#ffff00' image='\A3\ui_f\data\IGUI\Cfg\simpleTasks\types\navigate_ca.paa'/><t font='PuristaBold'> WayPoints" , ([[3 ], [3 , 80 ]] select AIO_useNumpadKeys), " " , - 5 , [[" expression" , " call AIO_fnc_startWaypointUI" ]], " 1" , " 1" ],
64- [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 AIO_useNumpadKeys), " #USER:AIO_vehicle_subMenu" , - 5 , [[" expression" , " " ]], " 1" , " 1" ],
65- [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 AIO_useNumpadKeys), " #USER:AIO_weaponAcessories_subMenu" , - 5 , [[" expression" , " " ]], " 1" , " 1" ],
66- [" " , [], " " , - 1 , [[" expression" , " " ]], " 1" , " 0" ],
67- [parseText " <img color='#ffd6df' image='\A3\ui_f\data\IGUI\Cfg\Actions\take_ca.paa'/><t font='PuristaBold'> Actions" , ([[6 ], [6 , 76 ]] select AIO_useNumpadKeys), " #USER:AIO_action_subMenu" , - 5 , [[" expression" , " " ]], " 1" , " 1" ],
68- [" " , [], " " , - 1 , [[" expression" , " " ]], " 1" , " 0" ],
69- [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 AIO_useNumpadKeys), " " , - 5 , [[" expression" , " [(groupSelectedUnits player)] spawn AIO_fnc_unstickUnit " ]], " 1" , " 1" ],
70- [" " , [], " " , - 1 , [[" expression" , " " ]], " 1" , " 0" ],
71- [parseText " <img image='\A3\ui_f\data\IGUI\Cfg\CrewAimIndicator\commander_ca.paa'/><t font='PuristaBold'> HC Menu" , ([[8 ], [8 , 71 ]] select AIO_useNumpadKeys), " " , - 5 , [[" expression" , " [] spawn AIO_fnc_Menu_HC" ]], " 1" , " 1" ],
72- [parseText " <img image='\A3\ui_f\data\IGUI\Cfg\simpleTasks\types\documents_ca.paa'/><t font='PuristaBold'> Cheats" , ([[9 ], [9 , 72 ]] select AIO_useNumpadKeys), " " , - 5 , [[" expression" , " [groupSelectedUnits player] spawn AIO_fnc_createCheatsMenu" ]], " 1" , " 1" ],
73- [parseText " <img color='#5c3fd9' image='AIO_AIMENU\pictures\zeus.paa'/><t font='PuristaBold'> Add/Refresh Zeus" , ([[10 ], [10 , 73 ]] select AIO_useNumpadKeys), " " , - 5 , [[" expression" , " [0] call AIO_fnc_zeus" ]], AIO_Zeus_Enabled_STR, " 1" ]
74- ];
37+ _group = group player ;
38+ if (player ! = hcLeader _group ) then {
39+ (hcLeader _group ) hcRemoveGroup _group ;
40+ player hcSetGroup [_group ];
7541};
42+
43+
44+ AIO_MENU_GroupCommunication =
45+ [
46+ [" All-In-One Command Menu" ,true ],
47+ [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" ],
48+ [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" ],
49+ [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" ],
50+ [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" ],
51+ [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" ],
52+ [" " , [], " " , - 1 , [[" expression" , " " ]], " 1" , " 0" ],
53+ [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" ],
54+ [" " , [], " " , - 1 , [[" expression" , " " ]], " 1" , " 0" ],
55+ [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" ],
56+ [" " , [], " " , - 1 , [[" expression" , " " ]], " 1" , " 0" ],
57+ [parseText " <img image='AIO_AIMENU\pictures\advance1.paa'/><t font='PuristaBold'> Commanding Menus" , ([[8 ], [8 , 71 ]] select _useNumpad ), " #USER:AIO_command_subMenus" , - 5 , [[" expression" , " " ]], " 1" , " 1" ],
58+ [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" ]], " 1" , " 1" ],
59+ [parseText " <img color='#5c3fd9' image='AIO_AIMENU\pictures\zeus.paa'/><t font='PuristaBold'> Add/Refresh Zeus" , ([[10 ], [10 , 73 ]] select _useNumpad ), " " , - 5 , [[" expression" , " [0] call AIO_fnc_zeus" ]], AIO_Zeus_Enabled_STR, " 1" ]
60+ ];
61+
7662// -----------------------------------------------------------------------------------------------------------------------------------
7763
7864if (AIO_driver_mode_enabled) then {
0 commit comments