mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
464ab0cefb
Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com> Co-authored-by: PabstMirror <pabstmirror@gmail.com> Co-authored-by: jonpas <jonpas33@gmail.com>
32 lines
1.0 KiB
Plaintext
32 lines
1.0 KiB
Plaintext
["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
|
|
};
|
|
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)
|
|
|
|
["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},
|
|
[0, [false, false, false]], false, 0] call CBA_fnc_addKeybind; // (empty default key)
|