Fixed BFT ACE_Settings, Fixed Map Module Initialized diag_log

This commit is contained in:
jonpas 2015-06-21 04:19:12 +02:00
parent 8d1d0c5480
commit 10602f10c6
3 changed files with 11 additions and 7 deletions

View File

@ -1,6 +1,5 @@
#include "script_component.hpp" #include "script_component.hpp"
ADDON = false;
LOG(MSG_INIT); LOG(MSG_INIT);
// Calculate the maximum zoom allowed for this map // Calculate the maximum zoom allowed for this map
@ -19,4 +18,11 @@ call FUNC(determineZoom);
((findDisplay 12) displayCtrl 51) ctrlAddEventHandler ["Draw", {[] call FUNC(updateMapEffects);}]; ((findDisplay 12) displayCtrl 51) ctrlAddEventHandler ["Draw", {[] call FUNC(updateMapEffects);}];
}; };
ADDON = true; [
["SettingsInitialized", {
// Start Blue Force Tracking if Enabled
if (GVAR(BFT_Enabled)) then {
GVAR(BFT_markers) = [];
[FUNC(blueForceTrackingUpdate), GVAR(BFT_Interval), []] call CBA_fnc_addPerFrameHandler;
};
}] call EFUNC(common,addEventHandler);

View File

@ -24,7 +24,3 @@ GVAR(BFT_Enabled) = true;
diag_log text "[ACE]: Blue Force Tracking Module initialized."; diag_log text "[ACE]: Blue Force Tracking Module initialized.";
TRACE_2("[ACE]: Blue Force Tracking Module initialized.",GVAR(BFT_Interval), GVAR(BFT_HideAiGroups)); TRACE_2("[ACE]: Blue Force Tracking Module initialized.",GVAR(BFT_Interval), GVAR(BFT_HideAiGroups));
//start BFT:
GVAR(BFT_markers) = [];
[FUNC(blueForceTrackingUpdate), GVAR(BFT_Interval), []] call CBA_fnc_addPerFrameHandler;

View File

@ -10,6 +10,8 @@
*/ */
#include "script_component.hpp" #include "script_component.hpp"
if !(hasInterface) exitWith {};
PARAMS_3(_logic,_units,_activated); PARAMS_3(_logic,_units,_activated);
if !(_activated) exitWith {}; if !(_activated) exitWith {};
@ -19,4 +21,4 @@ if !(_activated) exitWith {};
[_logic, QGVAR(mapLimitZoom), "MapLimitZoom" ] call EFUNC(common,readSettingFromModule); [_logic, QGVAR(mapLimitZoom), "MapLimitZoom" ] call EFUNC(common,readSettingFromModule);
[_logic, QGVAR(mapShowCursorCoordinates), "MapShowCursorCoordinates"] call EFUNC(common,readSettingFromModule); [_logic, QGVAR(mapShowCursorCoordinates), "MapShowCursorCoordinates"] call EFUNC(common,readSettingFromModule);
diag_log text "[ACE]: Interaction Module Initialized."; diag_log text "[ACE]: Map Module Initialized.";