mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
MicroDAGR - Allow use in vehicles
Can't show minimap display in turret view (cameraView = "gunner"), but can bring up the interactive dialog
This commit is contained in:
parent
1ee698179c
commit
6ec0859f85
@ -11,7 +11,7 @@ class CfgVehicles {
|
||||
showDisabled = 0;
|
||||
priority = 0.2;
|
||||
icon = QUOTE(PATHTOF(UI\icon_microDAGR.paa));
|
||||
exceptions[] = {"notOnMap"};
|
||||
exceptions[] = {"notOnMap", "isNotInside"};
|
||||
};
|
||||
class GVAR(configure) {
|
||||
//Opens the dialog
|
||||
@ -21,7 +21,7 @@ class CfgVehicles {
|
||||
showDisabled = 0;
|
||||
priority = 0.1;
|
||||
icon = QUOTE(PATHTOF(UI\icon_microDAGR.paa));
|
||||
exceptions[] = {"notOnMap"};
|
||||
exceptions[] = {"notOnMap", "isNotInside"};
|
||||
};
|
||||
class GVAR(close) {
|
||||
displayName = "$STR_ACE_microdagr_closeUnit";
|
||||
@ -30,7 +30,7 @@ class CfgVehicles {
|
||||
showDisabled = 0;
|
||||
priority = 0.3;
|
||||
icon = QUOTE(PATHTOF(UI\icon_microDAGR.paa));
|
||||
exceptions[] = {"notOnMap"};
|
||||
exceptions[] = {"notOnMap", "isNotInside"};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
@ -7,7 +7,7 @@ if (!hasInterface) exitWith {};
|
||||
["ACE3", QGVAR(openGPS), (localize "STR_ACE_microdagr_toggleUnit"),
|
||||
{
|
||||
// canInteractWith (can use on map)
|
||||
if !([ACE_player, objNull, ["notOnMap"]] call EFUNC(common,canInteractWith)) exitWith {false};
|
||||
if !([ACE_player, objNull, ["notOnMap", "isNotInside"]] call EFUNC(common,canInteractWith)) exitWith {false};
|
||||
// Conditions: specific
|
||||
if (!("ACE_microDAGR" in (items ace_player))) exitWith {false};
|
||||
|
||||
@ -20,7 +20,7 @@ if (!hasInterface) exitWith {};
|
||||
["ACE3", QGVAR(closeGPS), (localize "STR_ACE_microdagr_closeUnit"),
|
||||
{
|
||||
// canInteractWith (can use on map)
|
||||
if !([ACE_player, objNull, ["notOnMap"]] call EFUNC(common,canInteractWith)) exitWith {false};
|
||||
if !([ACE_player, objNull, ["notOnMap", "isNotInside"]] call EFUNC(common,canInteractWith)) exitWith {false};
|
||||
// Conditions: specific
|
||||
if (!("ACE_microDAGR" in (items ace_player))) exitWith {false};
|
||||
if (GVAR(currentShowMode) == DISPLAY_MODE_CLOSED) exitWith {false};
|
||||
|
@ -26,11 +26,11 @@ case (DISPLAY_MODE_CLOSED): {_returnValue = true}; //Can always close
|
||||
case (DISPLAY_MODE_HIDDEN): {_returnValue = true}; //Can always hide
|
||||
|
||||
case (DISPLAY_MODE_DIALOG): {
|
||||
_returnValue = ("ACE_microDAGR" in (items ACE_player)) && {[ACE_player, objNull, ["notOnMap"]] call EFUNC(common,canInteractWith)};
|
||||
_returnValue = ("ACE_microDAGR" in (items ACE_player)) && {[ACE_player, objNull, ["notOnMap", "isNotInside"]] call EFUNC(common,canInteractWith)};
|
||||
};
|
||||
case (DISPLAY_MODE_DISPLAY): {
|
||||
//Can't have minimap up while zoomed in
|
||||
_returnValue = (cameraview != "GUNNER") && {"ACE_microDAGR" in (items ACE_player)} && {[ACE_player, objNull, ["notOnMap"]] call EFUNC(common,canInteractWith)};
|
||||
_returnValue = (cameraview != "GUNNER") && {"ACE_microDAGR" in (items ACE_player)} && {[ACE_player, objNull, ["notOnMap", "isNotInside"]] call EFUNC(common,canInteractWith)};
|
||||
};
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user