This commit is contained in:
PabstMirror
2015-05-11 22:22:24 -05:00
parent ffce1f6386
commit de2a89613c
3 changed files with 35 additions and 26 deletions

View File

@ -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 // Conditions: canInteract
if !([ACE_player, objNull, []] call EFUNC(common,canInteractWith)) exitWith {false}; if !([ACE_player, objNull, []] call EFUNC(common,canInteractWith)) exitWith {false};
if (GVAR(active)) exitWith {false}; if (GVAR(active)) exitWith {false};
// Statement // Statement
[] call FUNC(create_dialog); [] call FUNC(create_dialog);
false false
}, };
{false}, _closeCode = {
[0, [false, false, false]], false, 0] call CBA_fnc_addKeybind; // (empty default key) 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);

View File

@ -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> <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>
<Key ID="STR_ACE_Common_toggleHandheldDevice"> <Key ID="STR_ACE_Common_toggleHandheldDevice">
<English>Toggle Device</English> <English>Toggle Handheld Device</English>
</Key> </Key>
<Key ID="STR_ACE_Common_closeHandheldDevice"> <Key ID="STR_ACE_Common_closeHandheldDevice">
<English>Close Device</English> <English>Close Handheld Device</English>
</Key> </Key>
<Key ID="STR_ACE_Common_cycleHandheldDevices"> <Key ID="STR_ACE_Common_cycleHandheldDevices">
<English>Cycle Devices</English> <English>Cycle Handheld Devices</English>
</Key> </Key>
</Package> </Package>
</Project> </Project>

View File

@ -10,25 +10,25 @@ class CfgVehicles {
showDisabled = 0; showDisabled = 0;
priority = 0.1; priority = 0.1;
icon = QUOTE(PATHTOF(UI\Kestrel4500_Icon.paa)); 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"}; 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"};
};
}; };
}; };
}; };