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,8 +14,9 @@
_source say3D _scream; _source say3D _scream;
}] call CBA_fnc_addEventHandler; }] call CBA_fnc_addEventHandler;
if (isServer) then { if (!isServer) exitWith {};
["CBA_settingsInitialized", {
["CBA_settingsInitialized", {
TRACE_1("settingsInit",GVAR(enabled)); TRACE_1("settingsInit",GVAR(enabled));
if (!GVAR(enabled)) exitWith {}; if (!GVAR(enabled)) exitWith {};
@ -86,5 +87,4 @@ if (isServer) then {
}] call CBA_fnc_addEventHandler; }] call CBA_fnc_addEventHandler;
[LINKFUNC(fireManagerPFH), FIRE_MANAGER_PFH_DELAY, []] call CBA_fnc_addPerFrameHandler; [LINKFUNC(fireManagerPFH), FIRE_MANAGER_PFH_DELAY, []] call CBA_fnc_addPerFrameHandler;
}] call CBA_fnc_addEventHandler; }] call CBA_fnc_addEventHandler;
};

View File

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