mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
6ab8b129fa
Conflicts: addons/common/XEH_postInit.sqf
37 lines
1.1 KiB
Plaintext
37 lines
1.1 KiB
Plaintext
["ACE3 Equipment", QGVAR(ATragMXDialogKey), localize LSTRING(ATragMXDialogKey),
|
|
{
|
|
// Conditions: canInteract
|
|
if !([ACE_player, objNull, ["notOnMap", "isNotInside"]] call EFUNC(common,canInteractWith)) exitWith {false};
|
|
if (GVAR(active)) exitWith {
|
|
closeDialog 0;
|
|
false
|
|
};
|
|
// Statement
|
|
[] call FUNC(create_dialog);
|
|
false
|
|
},
|
|
{false},
|
|
[0, [false, false, false]], false, 0] call CBA_fnc_addKeybind; // (empty default key)
|
|
|
|
|
|
//Add deviceKey entry:
|
|
private ["_conditonCode", "_toggleCode", "_closeCode"];
|
|
_conditonCode = {
|
|
[] call FUNC(can_show);
|
|
};
|
|
_toggleCode = {
|
|
// Conditions: canInteract
|
|
if !([ACE_player, objNull, ["notOnMap", "isNotInside"]] call EFUNC(common,canInteractWith)) exitWith {};
|
|
if (GVAR(active)) exitWith {
|
|
closeDialog 0;
|
|
};
|
|
// Statement
|
|
[] call FUNC(create_dialog);
|
|
};
|
|
_closeCode = {
|
|
if (GVAR(active)) exitWith {
|
|
closeDialog 0;
|
|
};
|
|
};
|
|
[(localize LSTRING(Name)), QUOTE(PATHTOF(UI\ATRAG_Icon.paa)), _conditonCode, _toggleCode, _closeCode] call EFUNC(common,deviceKeyRegisterNew);
|