From 4c1f7111b5e8e8288d187a82c547c3744feb1a1b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Badano?= Date: Mon, 16 Mar 2015 20:24:53 -0300 Subject: [PATCH] Add map module --- addons/map/CfgVehicles.hpp | 39 +++++++++++++++++++++++++ addons/map/UI/IconMap_ca.paa | Bin 0 -> 5625 bytes addons/map/XEH_preInit.sqf | 1 + addons/map/functions/fnc_moduleMap.sqf | 22 ++++++++++++++ 4 files changed, 62 insertions(+) create mode 100644 addons/map/UI/IconMap_ca.paa create mode 100644 addons/map/functions/fnc_moduleMap.sqf diff --git a/addons/map/CfgVehicles.hpp b/addons/map/CfgVehicles.hpp index 6b68864728..7960fe67ee 100644 --- a/addons/map/CfgVehicles.hpp +++ b/addons/map/CfgVehicles.hpp @@ -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"; diff --git a/addons/map/UI/IconMap_ca.paa b/addons/map/UI/IconMap_ca.paa new file mode 100644 index 0000000000000000000000000000000000000000..128f08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uAizcz}Kk%vf z=Zf<#`fxsWQ-909B$hdv|7Gnz5KQC|ZiIXN7(Rb2nxfcPii@F9ycx6qq}US1=dWt% z_#x>pYcFz1Li~sD#qFVmP+okC#gvXe#qQ{nogRJ%IM}AI^84U-WcE9r{(p)4|Qh#?_&+Yh<*~^dcRp0-L zdjj+;2SrruQY;e<3s(>hkTVT=83hWw^)mXSFfG3(+7MmRK;MMp`w{=r z3cwpKi<7;IZKHCWA3MMOnWZ4duQiM3H`bT|XNCA}#x)z80Y4bv(~Ylu4=OYb`bdcvIKJ<<*w95{1@{BaVOM3X-or>3nH?HE(0`JSOWd(?>?&M#j z{yaN$6rVXS=|DfuCi5AF>KlY2`IxJny!y>T?q|2%<~LmCts?`R7xixA;rIi+vxg3i2mIfVU3vRTDkP3s^tq2%kBk zsNaM^kgM&h@!G&5RcuMKc%b2&z2l23seW{V(Ab2<$k=;G(E z=FD_h9_Z?5%X-fGHn?3$`r{7{fb*h7p)bb=rB6a6gb$e656>}2KLz=Hf#ttlz2jlZ zx8#c_4qe#(azDtI#|~dV|Kr*nfYZFJZC70l^(Q0T`lr5j`ScuR9%)&bwUI6pn*{cz z-RQySUyhV-siF416FdI?qyN}W@g|}1rrqRT=3eqy^dXMjlj7T425vmm-1O#!9q!*# p%rzZ&Z0C;m05>zQH+6lc&j-8!uc$bmTbCc1r}1az!sGa${u@mGGnxPZ literal 0 HcmV?d00001 diff --git a/addons/map/XEH_preInit.sqf b/addons/map/XEH_preInit.sqf index 9bd60c865f..7899c6a637 100644 --- a/addons/map/XEH_preInit.sqf +++ b/addons/map/XEH_preInit.sqf @@ -7,6 +7,7 @@ PREP(blueForceTrackingModule); PREP(blueForceTrackingUpdate); PREP(determineMapLight); PREP(determineZoom); +PREP(moduleMap); PREP(updateMapEffects); ADDON = true; diff --git a/addons/map/functions/fnc_moduleMap.sqf b/addons/map/functions/fnc_moduleMap.sqf new file mode 100644 index 0000000000..4fdea61420 --- /dev/null +++ b/addons/map/functions/fnc_moduleMap.sqf @@ -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.";