Map - Allow enabling BFT setting after mission start (#7519)

* Update initSettings.sqf

* Bracjet

* Update XEH_postInitClient.sqf

* Update addons/map/initSettings.sqf

Co-Authored-By: PabstMirror <pabstmirror@gmail.com>

Co-authored-by: PabstMirror <pabstmirror@gmail.com>
This commit is contained in:
shukari 2020-02-12 20:27:58 +01:00 committed by GitHub
parent ce329de784
commit 7c296c96ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 21 additions and 20 deletions

View File

@ -24,12 +24,6 @@ call FUNC(determineZoom);
}, 0, []] call CBA_fnc_addPerFrameHandler;
};
// Start Blue Force Tracking if Enabled
if (GVAR(BFT_Enabled)) then {
GVAR(BFT_markers) = [];
[FUNC(blueForceTrackingUpdate), GVAR(BFT_Interval), []] call CBA_fnc_addPerFrameHandler;
};
//illumination settings
if (GVAR(mapIllumination)) then {
["loadout", {

View File

@ -7,7 +7,7 @@
true,
{[QGVAR(mapIllumination), _this] call EFUNC(common,cbaSettings_settingChanged)},
true // Needs mission restart
] call CBA_settings_fnc_init;
] call CBA_fnc_addSetting;
[
QGVAR(mapGlow),
@ -18,7 +18,7 @@
true,
{[QGVAR(mapGlow), _this] call EFUNC(common,cbaSettings_settingChanged)},
true // Needs mission restart
] call CBA_settings_fnc_init;
] call CBA_fnc_addSetting;
[
QGVAR(mapShake),
@ -27,7 +27,7 @@
format["ACE %1", localize LSTRING(Module_DisplayName)],
true,
true
] call CBA_settings_fnc_init;
] call CBA_fnc_addSetting;
[
QGVAR(mapLimitZoom),
@ -36,7 +36,7 @@
format["ACE %1", localize LSTRING(Module_DisplayName)],
false,
true
] call CBA_settings_fnc_init;
] call CBA_fnc_addSetting;
[
QGVAR(mapShowCursorCoordinates),
@ -45,7 +45,7 @@
format["ACE %1", localize LSTRING(Module_DisplayName)],
false,
true
] call CBA_settings_fnc_init;
] call CBA_fnc_addSetting;
[
QGVAR(DefaultChannel),
@ -56,7 +56,7 @@
true,
{[QGVAR(DefaultChannel), _this] call EFUNC(common,cbaSettings_settingChanged)},
true // Needs mission restart
] call CBA_settings_fnc_init;
] call CBA_fnc_addSetting;
// Blue Force Tracking
[
@ -66,9 +66,16 @@
[format ["ACE %1", localize LSTRING(Module_DisplayName)], localize LSTRING(BFT_Module_DisplayName)],
false,
true,
{[QGVAR(BFT_Enabled), _this] call EFUNC(common,cbaSettings_settingChanged)},
true // Needs mission restart
] call CBA_settings_fnc_init;
{
[QGVAR(BFT_Enabled), _this] call EFUNC(common,cbaSettings_settingChanged);
if (isNil QGVAR(BFT_markers)) then {
GVAR(BFT_markers) = [];
[FUNC(blueForceTrackingUpdate), GVAR(BFT_Interval), []] call CBA_fnc_addPerFrameHandler;
};
},
false
] call CBA_fnc_addSetting;
[
QGVAR(BFT_Interval),
@ -79,7 +86,7 @@
true,
{[QGVAR(BFT_Interval), _this] call EFUNC(common,cbaSettings_settingChanged)},
true // Needs mission restart
] call CBA_settings_fnc_init;
] call CBA_fnc_addSetting;
[
QGVAR(BFT_ShowPlayerNames),
@ -89,8 +96,8 @@
false,
true,
{[QGVAR(BFT_ShowPlayerNames), _this] call EFUNC(common,cbaSettings_settingChanged)},
true // Needs mission restart
] call CBA_settings_fnc_init;
false
] call CBA_fnc_addSetting;
[
QGVAR(BFT_HideAiGroups),
@ -100,5 +107,5 @@
false,
true,
{[QGVAR(BFT_HideAiGroups), _this] call EFUNC(common,cbaSettings_settingChanged)},
true // Needs mission restart
] call CBA_settings_fnc_init;
false
] call CBA_fnc_addSetting;