2015-01-15 09:51:18 +00:00
|
|
|
#define MACRO_ADDITEM(ITEM,COUNT) class _xx_##ITEM { \
|
|
|
|
name = #ITEM; \
|
|
|
|
count = COUNT; \
|
|
|
|
};
|
|
|
|
|
|
|
|
class CfgVehicles {
|
|
|
|
class Man;
|
|
|
|
class CAManBase: Man {
|
|
|
|
class ACE_SelfActions {
|
|
|
|
|
|
|
|
class ACE_MapTools {
|
|
|
|
displayName = "$STR_ACE_Map_MapTools_Menu";
|
2015-01-17 19:04:48 +00:00
|
|
|
condition = QUOTE((call FUNC(canUseMapTools) || {call FUNC(canUseMapGPS)}));
|
2015-01-15 09:51:18 +00:00
|
|
|
statement = "";
|
2015-01-17 19:04:48 +00:00
|
|
|
exceptions[] = {"ACE_Drag_isNotDragging", QEGVAR(common,notOnMap)};
|
2015-01-15 09:51:18 +00:00
|
|
|
showDisabled = 0;
|
|
|
|
priority = 100;
|
|
|
|
subMenu[] = {"ACE_MapTools", 1};
|
|
|
|
enableInside = 1;
|
|
|
|
|
|
|
|
class ACE_MapToolsHide {
|
|
|
|
displayName = "$STR_ACE_Map_MapToolsHide";
|
2015-01-17 19:04:48 +00:00
|
|
|
condition = QUOTE((call FUNC(canUseMapTools) && {GVAR(mapTool_Shown) != 0}));
|
2015-01-16 23:13:26 +00:00
|
|
|
statement = QUOTE(GVAR(mapTool_Shown) = 0; [] call FUNC(updateMapToolMarkers));
|
2015-01-17 19:04:48 +00:00
|
|
|
exceptions[] = {"ACE_Drag_isNotDragging", QEGVAR(common,notOnMap)};
|
2015-01-15 09:51:18 +00:00
|
|
|
showDisabled = 1;
|
|
|
|
priority = 5;
|
|
|
|
enableInside = 1;
|
|
|
|
};
|
|
|
|
class ACE_MapToolsShowNormal {
|
|
|
|
displayName = "$STR_ACE_Map_MapToolsShowNormal";
|
2015-01-17 19:04:48 +00:00
|
|
|
condition = QUOTE((call FUNC(canUseMapTools) && {GVAR(mapTool_Shown) != 1}));
|
2015-01-16 23:13:26 +00:00
|
|
|
statement = QUOTE(GVAR(mapTool_Shown) = 1; [] call FUNC(updateMapToolMarkers));
|
2015-01-17 19:04:48 +00:00
|
|
|
exceptions[] = {"ACE_Drag_isNotDragging", QEGVAR(common,notOnMap)};
|
2015-01-15 09:51:18 +00:00
|
|
|
showDisabled = 1;
|
|
|
|
priority = 4;
|
|
|
|
enableInside = 1;
|
|
|
|
};
|
|
|
|
class ACE_MapToolsShowSmall {
|
|
|
|
displayName = "$STR_ACE_Map_MapToolsShowSmall";
|
2015-01-17 19:04:48 +00:00
|
|
|
condition = QUOTE((call FUNC(canUseMapTools) && {GVAR(mapTool_Shown) != 2}));
|
2015-01-16 23:13:26 +00:00
|
|
|
statement = QUOTE(GVAR(mapTool_Shown) = 2; [] call FUNC(updateMapToolMarkers));
|
2015-01-17 19:04:48 +00:00
|
|
|
exceptions[] = {"ACE_Drag_isNotDragging", QEGVAR(common,notOnMap)};
|
2015-01-15 09:51:18 +00:00
|
|
|
showDisabled = 1;
|
|
|
|
priority = 3;
|
|
|
|
enableInside = 1;
|
|
|
|
};
|
|
|
|
class ACE_MapToolsAlignNorth {
|
|
|
|
displayName = "$STR_ACE_Map_MapToolsAlignNorth";
|
2015-01-17 19:04:48 +00:00
|
|
|
condition = QUOTE((call FUNC(canUseMapTools) && {GVAR(mapTool_Shown) != 0}));
|
2015-01-16 23:13:26 +00:00
|
|
|
statement = QUOTE(GVAR(mapTool_angle) = 0; [] call FUNC(updateMapToolMarkers));
|
2015-01-17 19:04:48 +00:00
|
|
|
exceptions[] = {"ACE_Drag_isNotDragging", QEGVAR(common,notOnMap)};
|
2015-01-15 09:51:18 +00:00
|
|
|
showDisabled = 1;
|
|
|
|
priority = 2;
|
|
|
|
enableInside = 1;
|
|
|
|
};
|
|
|
|
class ACE_MapToolsAlignCompass {
|
|
|
|
displayName = "$STR_ACE_Map_MapToolsAlignCompass";
|
2015-01-17 19:04:48 +00:00
|
|
|
condition = QUOTE((call FUNC(canUseMapTools) && {GVAR(mapTool_Shown) != 0} && {('ItemCompass' in assigneditems ACE_player) || {'ItemCompass' in assigneditems ACE_player}}));
|
2015-01-16 23:13:26 +00:00
|
|
|
statement = QUOTE(GVAR(mapTool_angle) = getDir ACE_player; [] call FUNC(updateMapToolMarkers));
|
2015-01-17 19:04:48 +00:00
|
|
|
exceptions[] = {"ACE_Drag_isNotDragging", QEGVAR(common,notOnMap)};
|
2015-01-15 09:51:18 +00:00
|
|
|
showDisabled = 1;
|
|
|
|
priority = 1;
|
|
|
|
enableInside = 1;
|
|
|
|
};
|
|
|
|
class ACE_MapGpsShow {
|
|
|
|
displayName = "$STR_ACE_Map_MapGpsShow";
|
2015-01-17 19:04:48 +00:00
|
|
|
condition = QUOTE((call FUNC(canUseMapGPS) && {!GVAR(mapGpsShow)}));
|
2015-01-16 23:13:26 +00:00
|
|
|
statement = QUOTE(GVAR(mapGpsShow) = true; [GVAR(mapGpsShow)] call FUNC(openMapGps));
|
2015-01-17 19:04:48 +00:00
|
|
|
exceptions[] = {"ACE_Drag_isNotDragging", QEGVAR(common,notOnMap)};
|
2015-01-15 09:51:18 +00:00
|
|
|
showDisabled = 0;
|
|
|
|
priority = 0;
|
|
|
|
enableInside = 1;
|
|
|
|
};
|
|
|
|
class ACE_MapGpsHide {
|
|
|
|
displayName = "$STR_ACE_Map_MapGpsHide";
|
2015-01-17 19:04:48 +00:00
|
|
|
condition = QUOTE((call FUNC(canUseMapGPS) && {GVAR(mapGpsShow)}));
|
2015-01-16 23:13:26 +00:00
|
|
|
statement = QUOTE(GVAR(mapGpsShow) = false; [GVAR(mapGpsShow)] call FUNC(openMapGps));
|
2015-01-17 19:04:48 +00:00
|
|
|
exceptions[] = {"ACE_Drag_isNotDragging", QEGVAR(common,notOnMap)};
|
2015-01-15 09:51:18 +00:00
|
|
|
showDisabled = 0;
|
|
|
|
priority = 0;
|
|
|
|
enableInside = 1;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
class ACE_Actions {
|
|
|
|
class ACE_CopyMap {
|
|
|
|
displayName = "$STR_ACE_Map_CopyMap";
|
2015-01-17 19:04:48 +00:00
|
|
|
condition = QUOTE(([_target] call EFUNC(common,isPlayer) && {'ItemMap' in assigneditems _player} && {'ACE_MapTools' in items _player} && {'ItemMap' in assignedItems _target}));
|
|
|
|
statement = QUOTE([ARR_2(_player,_target)] call FUNC(copyMapStart));
|
2015-01-15 09:51:18 +00:00
|
|
|
showDisabled = 0;
|
|
|
|
priority = -1;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
class NATO_Box_Base;
|
|
|
|
class EAST_Box_Base;
|
|
|
|
class IND_Box_Base;
|
|
|
|
class FIA_Box_Base_F;
|
|
|
|
|
|
|
|
class Box_NATO_Support_F: NATO_Box_Base {
|
|
|
|
class TransportItems {
|
|
|
|
MACRO_ADDITEM(ACE_MapTools,12)
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
class Box_East_Support_F: EAST_Box_Base {
|
|
|
|
class TransportItems {
|
|
|
|
MACRO_ADDITEM(ACE_MapTools,12)
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
class Box_IND_Support_F: IND_Box_Base {
|
|
|
|
class TransportItems {
|
|
|
|
MACRO_ADDITEM(ACE_MapTools,12)
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
class Box_FIA_Support_F: FIA_Box_Base_F {
|
|
|
|
class TransportItems {
|
|
|
|
MACRO_ADDITEM(ACE_MapTools,12)
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
class ACE_Box_Misc: Box_NATO_Support_F {
|
|
|
|
class TransportItems {
|
|
|
|
MACRO_ADDITEM(ACE_MapTools,12)
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
class Module_F;
|
|
|
|
class ACE_ModuleBlueForceTracking: Module_F {
|
2015-01-16 04:30:04 +00:00
|
|
|
author = "$STR_ACE_Common_ACETeam";
|
2015-01-15 09:51:18 +00:00
|
|
|
category = "ACE";
|
|
|
|
displayName = "Blue Force Tracking";
|
2015-01-16 08:13:29 +00:00
|
|
|
function = QFUNC(blueForceTrackingModule);
|
2015-01-15 09:51:18 +00:00
|
|
|
scope = 2;
|
|
|
|
isGlobal = 1;
|
2015-01-16 04:30:04 +00:00
|
|
|
icon = PATHTOF(UI\IconBFTracking_ca.paa);
|
2015-01-15 09:51:18 +00:00
|
|
|
class Arguments {
|
|
|
|
class Interval {
|
|
|
|
displayName = "Interval";
|
|
|
|
description = "How often the markers should be refreshed (in seconds)";
|
|
|
|
defaultValue = 1;
|
|
|
|
};
|
|
|
|
class HideAiGroups {
|
|
|
|
displayName = "Hide AI groups?";
|
|
|
|
description = "Hide markers for 'AI only' groups?";
|
|
|
|
typeName = "BOOL";
|
|
|
|
class values {
|
|
|
|
class Yes { name = "Yes"; value = 1; };
|
|
|
|
class No { name = "No"; value = 0; default = 1; };
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|