ACE3/addons/vehicle_damage/initSettings.inc.sqf
johnb432 1cca2db964
General - Cleaned up cbaSettings_settingChanged (#10050)
Adapted `cbaSettings_settingChanged`
2024-05-31 13:20:21 -07:00

28 lines
951 B
Plaintext

[
QGVAR(enabled), "CHECKBOX",
[ELSTRING(common,Enabled), LSTRING(setting_description)],
LSTRING(category_displayName),
false, // default value
true, // isGlobal
{[QGVAR(enabled), _this] call EFUNC(common,cbaSettings_settingChanged)},
true // Needs mission restart
] call CBA_settings_fnc_init;
[
QGVAR(removeAmmoDuringCookoff), "CHECKBOX",
[LSTRING(removeAmmoAfterCookoff_setting_enable), LSTRING(removeAmmoAfterCookoff_setting_description)],
LSTRING(category_displayName),
true, // default value
true // isGlobal
] call CBA_settings_fnc_init;
[
QGVAR(enableCarDamage), "CHECKBOX",
[LSTRING(carDamage_setting_enable), LSTRING(carDamage_setting_description)],
LSTRING(category_displayName),
false, // default value
true, // isGlobal
{[QGVAR(enableCarDamage), _this] call EFUNC(common,cbaSettings_settingChanged)},
true // Needs mission restart
] call CBA_settings_fnc_init;