11#include " script_component.hpp"
22#include " \a3\ui_f\hpp\defineDIKCodes.inc"
33
4+ LOAD_SOUND(Acre_GenericClick);
5+
46private _addClassEH = {
57 [" Tank" , " init" , FUNC(initVehicleIntercom), nil , nil , true ] call CBA_fnc_addClassEventHandler ;
68 [" Car_F" , " init" , FUNC(initVehicleIntercom), nil , nil , true ] call CBA_fnc_addClassEventHandler ;
@@ -20,35 +22,44 @@ if (didJIP) then {
2022if (! hasInterface) exitWith {};
2123
2224// Keybinds - Intercom
23- [" ACRE2" , " IntercomPTTKey" , [localize LSTRING(intercomPttKey), localize LSTRING(intercomPttKey_description)], {
25+ private _category = [" ACRE2" , LLSTRING(intercom)];
26+ [_category , " IntercomPTTKey" , [LLSTRING(intercomPttKey), LLSTRING(intercomPttKey_description)], {
2427 [ACTION_INTERCOM_PTT] call FUNC(handlePttKeyPress)
2528}, {
2629 [ACTION_INTERCOM_PTT] call FUNC(handlePttKeyPressUp)
2730}] call CBA_fnc_addKeybind ;
2831
29- [" ACRE2 " , " IntercomBroadcastKey" , [localize LSTRING (intercomBroadcastKey), localize LSTRING (intercomBroadcastKey_description)], {
32+ [_category , " IntercomBroadcastKey" , [LLSTRING (intercomBroadcastKey), LLSTRING (intercomBroadcastKey_description)], {
3033 [ACTION_BROADCAST] call FUNC(handlePttKeyPress)
3134}, {
3235 [ACTION_BROADCAST] call FUNC(handlePttKeyPressUp)
3336}] call CBA_fnc_addKeybind ;
3437
35- [" ACRE2 " , " PreviousIntercom" , [localize LSTRING (previousIntercomKey), localize LSTRING (previousIntercomKey_description)], " " , {
38+ [_category , " PreviousIntercom" , [LLSTRING (previousIntercomKey), LLSTRING (previousIntercomKey_description)], " " , {
3639 [- 1 , true ] call FUNC(switchIntercomFast)
3740}, [DIK_COMMA, [true , false , false ]]] call CBA_fnc_addKeybind ;
3841
39- [" ACRE2 " , " NextIntercom" , [localize LSTRING (nextIntercomKey), localize LSTRING (nextIntercomKey_description)], " " , {
42+ [_category , " NextIntercom" , [LLSTRING (nextIntercomKey), LLSTRING (nextIntercomKey_description)], " " , {
4043 [1 , true ] call FUNC(switchIntercomFast)
4144}, [DIK_COMMA, [false , true , false ]]] call CBA_fnc_addKeybind ;
4245
43- [" ACRE2 " , " AddPreviousIntercom" , [localize LSTRING (addPreviousIntercomKey), localize LSTRING (addPreviousIntercomKey_description)], " " , {
46+ [_category , " AddPreviousIntercom" , [LLSTRING (addPreviousIntercomKey), LLSTRING (addPreviousIntercomKey_description)], " " , {
4447 [- 1 , false ] call FUNC(switchIntercomFast)
4548}, [DIK_COMMA, [true , false , true ]]] call CBA_fnc_addKeybind ;
4649
47- [" ACRE2 " , " AddNextIntercom" , [localize LSTRING (addNextIntercomKey), localize LSTRING (addNextIntercomKey_description)], " " , {
50+ [_category , " AddNextIntercom" , [LLSTRING (addNextIntercomKey), LLSTRING (addNextIntercomKey_description)], " " , {
4851 [1 , false ] call FUNC(switchIntercomFast)
4952}, [DIK_COMMA, [false , true , true ]]] call CBA_fnc_addKeybind ;
5053
51- [" ACRE2" , QGVAR(openGui), localize LSTRING(openGui), {
54+ [_category , QGVAR(previousWorkKnob), [LLSTRING(previousWorkKnobKey), LLSTRING(previousWorkKnobKey_description)], {
55+ [- 1 , true ] call FUNC(switchWorkKnobFast)
56+ }, " " , [DIK_Q, [false , true , false ]]] call CBA_fnc_addKeybind ;
57+
58+ [_category , QGVAR(nextWorkKnob), [LLSTRING(nextWorkKnobKey), LLSTRING(nextWorkKnobKey_description)], {
59+ [1 , true ] call FUNC(switchWorkKnobFast)
60+ }, " " , [DIK_E, [false , true , false ]]] call CBA_fnc_addKeybind ;
61+
62+ [_category , QGVAR(openGui), LLSTRING(openGui), {
5263 [- 1 ] call FUNC(openGui)
5364}, " " , [DIK_TAB, [true , true , false ]]] call CBA_fnc_addKeybind ;
5465
0 commit comments