ACE3/addons/rangecard/initKeybinds.inc.sqf

32 lines
1.0 KiB
Plaintext
Raw Permalink Normal View History

2019-12-07 21:40:44 +00:00
["ACE3 Equipment", QGVAR(RangeCardDialogKey), LLSTRING(RangeCardDialogKey),
{
// Conditions: canInteract, canShow
if !([ACE_player, objNull, ["notOnMap", "isNotInside"]] call EFUNC(common,canInteractWith)) exitWith {false};
if (GVAR(RangeCardOpened)) exitWith {
closeDialog 0;
false
2019-12-07 21:40:44 +00:00
};
if !(call FUNC(canShow)) exitWith {false};
// Statement
false call FUNC(openRangeCard);
true
},
{false},
[0, [false, false, false]], false, 0] call CBA_fnc_addKeybind; // (empty default key)
2019-12-07 21:40:44 +00:00
["ACE3 Equipment", QGVAR(RangeCardCopyDialogKey), LLSTRING(RangeCardCopyDialogKey),
{
// Conditions: canInteract, canShowCopy
if !([ACE_player, objNull, ["notOnMap", "isNotInside"]] call EFUNC(common,canInteractWith)) exitWith {false};
if (GVAR(RangeCardOpened)) exitWith {
closeDialog 0;
false
};
if !(call FUNC(canShowCopy)) exitWith {false};
// Statement
true call FUNC(openRangeCard);
true
},
{false},
2019-12-07 21:40:44 +00:00
[0, [false, false, false]], false, 0] call CBA_fnc_addKeybind; // (empty default key)