Skip to content

Commit dc1e8e0

Browse files
johnb432blake8090
authored andcommitted
Advanced Ballistics/Field Rations - Notify restart requirement (acemod#10161)
Add notification for settings requiring restart
1 parent daeb069 commit dc1e8e0

2 files changed

Lines changed: 9 additions & 5 deletions

File tree

addons/advanced_ballistics/initSettings.inc.sqf

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ private _category = format ["ACE %1", localize LSTRING(DisplayName)];
55
[LSTRING(enabled_DisplayName), LSTRING(enabled_Description)],
66
_category,
77
false,
8-
1
8+
1,
9+
{[QGVAR(enabled), _this] call EFUNC(common,cbaSettings_settingChanged)},
10+
true // Needs mission restart
911
] call CBA_fnc_addSetting;
1012

1113
[
@@ -45,5 +47,7 @@ private _category = format ["ACE %1", localize LSTRING(DisplayName)];
4547
[LSTRING(simulationInterval_DisplayName), LSTRING(simulationInterval_Description)],
4648
_category,
4749
[0, 0.2, 0.05, 2],
48-
1
50+
1,
51+
{[QGVAR(simulationInterval), _this] call EFUNC(common,cbaSettings_settingChanged)},
52+
true // Needs mission restart
4953
] call CBA_fnc_addSetting;

addons/field_rations/initSettings.inc.sqf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
[ELSTRING(common,Enabled), LSTRING(Enabled_Description)],
55
LSTRING(DisplayName),
66
false,
7-
true,
8-
{},
9-
true // Needs restart
7+
1,
8+
{[QXGVAR(enabled), _this] call EFUNC(common,cbaSettings_settingChanged)},
9+
true // Needs mission restart
1010
] call CBA_fnc_addSetting;
1111

1212
[

0 commit comments

Comments
 (0)