Minor cleanup

This commit is contained in:
johnb432 2024-02-12 12:59:59 +01:00
parent b5dfe0a346
commit 70b21f6cec
2 changed files with 68 additions and 65 deletions

View File

@ -14,7 +14,8 @@
_source say3D _scream;
}] call CBA_fnc_addEventHandler;
if (isServer) then {
if (!isServer) exitWith {};
["CBA_settingsInitialized", {
TRACE_1("settingsInit",GVAR(enabled));
@ -87,4 +88,3 @@ if (isServer) then {
[LINKFUNC(fireManagerPFH), FIRE_MANAGER_PFH_DELAY, []] call CBA_fnc_addPerFrameHandler;
}] call CBA_fnc_addEventHandler;
};

View File

@ -1,5 +1,6 @@
[
QGVAR(enabled), "CHECKBOX",
QGVAR(enabled),
"CHECKBOX",
[ELSTRING(common,Enabled), LSTRING(Setting_Description)],
LSTRING(Category_DisplayName),
true,
@ -9,17 +10,18 @@
] call CBA_fnc_addSetting;
[
QGVAR(enableFlare), "CHECKBOX",
QGVAR(enableFlare),
"CHECKBOX",
[LSTRING(Setting_FlareEnable), LSTRING(Setting_FlareDescription)],
LSTRING(Category_DisplayName),
false,
1,
{[QGVAR(flareEnabled), _this] call EFUNC(common,cbaSettings_settingChanged)},
true
{[QGVAR(flareEnabled), _this] call EFUNC(common,cbaSettings_settingChanged)}
] call CBA_fnc_addSetting;
[
QGVAR(dropWeapon), "LIST",
QGVAR(dropWeapon),
"LIST",
[LSTRING(Setting_DropWeapon), LSTRING(Setting_DropWeapon_Description)],
LSTRING(Category_DisplayName),
[
@ -31,7 +33,8 @@
] call CBA_fnc_addSetting;
[
QGVAR(enableScreams), "CHECKBOX",
QGVAR(enableScreams),
"CHECKBOX",
[LSTRING(Setting_EnableScreams), LSTRING(Setting_EnableScreams_Description)],
LSTRING(Category_DisplayName),
true