Add map module

This commit is contained in:
Nicolás Badano 2015-03-16 20:24:53 -03:00
parent f90f1cfc21
commit 4c1f7111b5
4 changed files with 62 additions and 0 deletions

View File

@ -1,5 +1,44 @@
class CfgVehicles {
class Module_F;
class ACE_ModuleMap: Module_F {
author = "$STR_ACE_Common_ACETeam";
category = "ACE";
displayName = "Map";
function = QFUNC(moduleMap);
scope = 2;
isGlobal = 1;
icon = PATHTOF(UI\IconMap_ca.paa);
class Arguments {
class MapIllumination {
displayName = "Map illumination?";
description = "Calculate dynamic map illumination based on light conditions?";
typeName = "BOOL";
class values {
class Yes { name = "Yes"; value = 1; default = 1; };
class No { name = "No"; value = 0; };
};
};
class MapShake {
displayName = "Map shake?";
description = "Make map shake when walking?";
typeName = "BOOL";
class values {
class Yes { name = "Yes"; value = 1; default = 1;};
class No { name = "No"; value = 0; };
};
};
class MapLimitZoom {
displayName = "Limit map zoom?";
description = "Limit the amount of zoom available for the map?";
typeName = "BOOL";
class values {
class Yes { name = "Yes"; value = 1; };
class No { name = "No"; value = 0; default = 1;};
};
};
};
};
class ACE_ModuleBlueForceTracking: Module_F {
author = "$STR_ACE_Common_ACETeam";
category = "ACE";

Binary file not shown.

View File

@ -7,6 +7,7 @@ PREP(blueForceTrackingModule);
PREP(blueForceTrackingUpdate);
PREP(determineMapLight);
PREP(determineZoom);
PREP(moduleMap);
PREP(updateMapEffects);
ADDON = true;

View File

@ -0,0 +1,22 @@
/*
* Author: CAA-Picard
* Initializes the Map module.
*
* Arguments:
* Whatever the module provides. (I dunno.)
*
* Return Value:
* None
*/
#include "script_component.hpp"
_logic = _this select 0;
_activated = _this select 2;
if !(_activated) exitWith {};
[_logic, QGVAR(mapIllumination), "MapIllumination"] call EFUNC(common,readSettingFromModule);
[_logic, QGVAR(mapShake), "MapShake" ] call EFUNC(common,readSettingFromModule);
[_logic, QGVAR(mapLimitZoom), "MapLimitZoom" ] call EFUNC(common,readSettingFromModule);
diag_log text "[ACE]: Interaction Module Initialized.";