mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
ATragMX
This commit is contained in:
parent
ffce1f6386
commit
de2a89613c
@ -1,11 +1,20 @@
|
||||
["ACE3 Equipment", QGVAR(ATragMXDialogKey), localize "STR_ACE_ATragMX_ATragMXDialogKey",
|
||||
{
|
||||
//Add deviceKey entry:
|
||||
private ["_conditonCode", "_toggleCode", "_closeCode"];
|
||||
_conditonCode = {
|
||||
("ACE_ATragMX" in (uniformItems ACE_player)) || {"ACE_ATragMX" in (vestItems ACE_player)}
|
||||
};
|
||||
_toggleCode = {
|
||||
// Conditions: canInteract
|
||||
if !([ACE_player, objNull, []] call EFUNC(common,canInteractWith)) exitWith {false};
|
||||
if (GVAR(active)) exitWith {false};
|
||||
// Statement
|
||||
[] call FUNC(create_dialog);
|
||||
false
|
||||
},
|
||||
{false},
|
||||
[0, [false, false, false]], false, 0] call CBA_fnc_addKeybind; // (empty default key)
|
||||
};
|
||||
_closeCode = {
|
||||
if (dialog && {!isNull (uiNamespace getVariable ["ATragMX_Display", displayNull])}) then {
|
||||
closeDialog 0;
|
||||
};
|
||||
};
|
||||
|
||||
[(localize "STR_ACE_ATragMX_Name"), QUOTE(PATHTOF(UI\ATRAG_Icon.paa)), _conditonCode, _toggleCode, _closeCode] call EFUNC(common,deviceKeyRegisterNew);
|
||||
|
@ -471,13 +471,13 @@
|
||||
<Portuguese>A banana é uma fruta comestível, botanicamente uma baga, produzida por vários tipos de plantas herbáceas grandes do genero Musa.</Portuguese>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_Common_toggleHandheldDevice">
|
||||
<English>Toggle Device</English>
|
||||
<English>Toggle Handheld Device</English>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_Common_closeHandheldDevice">
|
||||
<English>Close Device</English>
|
||||
<English>Close Handheld Device</English>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_Common_cycleHandheldDevices">
|
||||
<English>Cycle Devices</English>
|
||||
<English>Cycle Handheld Devices</English>
|
||||
</Key>
|
||||
</Package>
|
||||
</Project>
|
@ -10,25 +10,25 @@ class CfgVehicles {
|
||||
showDisabled = 0;
|
||||
priority = 0.1;
|
||||
icon = QUOTE(PATHTOF(UI\Kestrel4500_Icon.paa));
|
||||
exceptions[] = {"notOnMap"};
|
||||
};
|
||||
class GVAR(show) {
|
||||
displayName = "$STR_ACE_Kestrel4500_ShowKestrel";
|
||||
condition = QUOTE(call FUNC(canShow) && !GVAR(Overlay));
|
||||
statement = QUOTE(call FUNC(displayKestrel));
|
||||
showDisabled = 0;
|
||||
priority = 0.2;
|
||||
icon = QUOTE(PATHTOF(UI\Kestrel4500_Icon.paa));
|
||||
exceptions[] = {"notOnMap", "isNotInside"};
|
||||
};
|
||||
class GVAR(hide) {
|
||||
displayName = "$STR_ACE_Kestrel4500_HideKestrel";
|
||||
condition = QUOTE(GVAR(Overlay));
|
||||
statement = QUOTE(call FUNC(displayKestrel));
|
||||
showDisabled = 0;
|
||||
priority = 0.3;
|
||||
icon = QUOTE(PATHTOF(UI\Kestrel4500_Icon.paa));
|
||||
exceptions[] = {"notOnMap", "isNotInside"};
|
||||
class GVAR(show) {
|
||||
displayName = "$STR_ACE_Kestrel4500_ShowKestrel";
|
||||
condition = QUOTE(call FUNC(canShow) && !GVAR(Overlay));
|
||||
statement = QUOTE(call FUNC(displayKestrel));
|
||||
showDisabled = 0;
|
||||
priority = 0.2;
|
||||
icon = QUOTE(PATHTOF(UI\Kestrel4500_Icon.paa));
|
||||
exceptions[] = {"notOnMap", "isNotInside"};
|
||||
};
|
||||
class GVAR(hide) {
|
||||
displayName = "$STR_ACE_Kestrel4500_HideKestrel";
|
||||
condition = QUOTE(GVAR(Overlay));
|
||||
statement = QUOTE(call FUNC(displayKestrel));
|
||||
showDisabled = 0;
|
||||
priority = 0.3;
|
||||
icon = QUOTE(PATHTOF(UI\Kestrel4500_Icon.paa));
|
||||
exceptions[] = {"notOnMap", "isNotInside"};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user