mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Add map module
This commit is contained in:
parent
f90f1cfc21
commit
4c1f7111b5
@ -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";
|
||||
|
BIN
addons/map/UI/IconMap_ca.paa
Normal file
BIN
addons/map/UI/IconMap_ca.paa
Normal file
Binary file not shown.
@ -7,6 +7,7 @@ PREP(blueForceTrackingModule);
|
||||
PREP(blueForceTrackingUpdate);
|
||||
PREP(determineMapLight);
|
||||
PREP(determineZoom);
|
||||
PREP(moduleMap);
|
||||
PREP(updateMapEffects);
|
||||
|
||||
ADDON = true;
|
||||
|
22
addons/map/functions/fnc_moduleMap.sqf
Normal file
22
addons/map/functions/fnc_moduleMap.sqf
Normal 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.";
|
Loading…
Reference in New Issue
Block a user