Skip to content

Commit

Permalink
Advanced Ballistics/Field Rations - Notify restart requirement (acemo…
Browse files Browse the repository at this point in the history
…d#10161)

Add notification for settings requiring restart
  • Loading branch information
johnb432 authored and blake8090 committed Aug 18, 2024
1 parent daeb069 commit dc1e8e0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
8 changes: 6 additions & 2 deletions addons/advanced_ballistics/initSettings.inc.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ private _category = format ["ACE %1", localize LSTRING(DisplayName)];
[LSTRING(enabled_DisplayName), LSTRING(enabled_Description)],
_category,
false,
1
1,
{[QGVAR(enabled), _this] call EFUNC(common,cbaSettings_settingChanged)},
true // Needs mission restart
] call CBA_fnc_addSetting;

[
Expand Down Expand Up @@ -45,5 +47,7 @@ private _category = format ["ACE %1", localize LSTRING(DisplayName)];
[LSTRING(simulationInterval_DisplayName), LSTRING(simulationInterval_Description)],
_category,
[0, 0.2, 0.05, 2],
1
1,
{[QGVAR(simulationInterval), _this] call EFUNC(common,cbaSettings_settingChanged)},
true // Needs mission restart
] call CBA_fnc_addSetting;
6 changes: 3 additions & 3 deletions addons/field_rations/initSettings.inc.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
[ELSTRING(common,Enabled), LSTRING(Enabled_Description)],
LSTRING(DisplayName),
false,
true,
{},
true // Needs restart
1,
{[QXGVAR(enabled), _this] call EFUNC(common,cbaSettings_settingChanged)},
true // Needs mission restart
] call CBA_fnc_addSetting;

[
Expand Down

0 comments on commit dc1e8e0

Please sign in to comment.