2015-05-28 19:59:04 +00:00
|
|
|
["ACE3 Equipment", QGVAR(ATragMXDialogKey), localize LSTRING(ATragMXDialogKey),
|
2015-04-06 13:51:59 +00:00
|
|
|
{
|
|
|
|
// Conditions: canInteract
|
2015-06-13 20:08:13 +00:00
|
|
|
if !([ACE_player, objNull, ["notOnMap", "isNotInside", "isNotSitting"]] call EFUNC(common,canInteractWith)) exitWith {false};
|
2015-05-17 09:23:31 +00:00
|
|
|
if (GVAR(active)) exitWith {
|
|
|
|
closeDialog 0;
|
|
|
|
false
|
|
|
|
};
|
2015-04-06 13:51:59 +00:00
|
|
|
// Statement
|
|
|
|
[] call FUNC(create_dialog);
|
|
|
|
false
|
|
|
|
},
|
|
|
|
{false},
|
2015-06-05 22:50:04 +00:00
|
|
|
[0, [false, false, false]], false, 0] call CBA_fnc_addKeybind; // (empty default key)
|
|
|
|
|
|
|
|
|
2015-05-12 03:22:24 +00:00
|
|
|
//Add deviceKey entry:
|
|
|
|
private ["_conditonCode", "_toggleCode", "_closeCode"];
|
|
|
|
_conditonCode = {
|
2015-06-06 00:46:19 +00:00
|
|
|
[] call FUNC(can_show);
|
2015-05-12 03:22:24 +00:00
|
|
|
};
|
|
|
|
_toggleCode = {
|
2015-04-06 13:51:59 +00:00
|
|
|
// Conditions: canInteract
|
2015-06-13 20:08:13 +00:00
|
|
|
if !([ACE_player, objNull, ["notOnMap", "isNotInside", "isNotSitting"]] call EFUNC(common,canInteractWith)) exitWith {};
|
2015-06-05 22:50:04 +00:00
|
|
|
if (GVAR(active)) exitWith {
|
|
|
|
closeDialog 0;
|
|
|
|
};
|
2015-04-06 13:51:59 +00:00
|
|
|
// Statement
|
|
|
|
[] call FUNC(create_dialog);
|
2015-05-12 03:22:24 +00:00
|
|
|
};
|
|
|
|
_closeCode = {
|
2015-06-06 00:46:19 +00:00
|
|
|
if (GVAR(active)) exitWith {
|
2015-05-12 03:22:24 +00:00
|
|
|
closeDialog 0;
|
|
|
|
};
|
|
|
|
};
|
2016-04-08 18:34:50 +00:00
|
|
|
[(localize LSTRING(Name)), QPATHTOF(UI\ATRAG_Icon.paa), _conditonCode, _toggleCode, _closeCode] call EFUNC(common,deviceKeyRegisterNew);
|