initial push (#8099)

This commit is contained in:
TyroneMF 2021-02-18 18:58:26 +00:00 committed by GitHub
parent e8693c8db9
commit f85632cbbd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
37 changed files with 170 additions and 170 deletions

View File

@ -13,7 +13,7 @@
[QGVAR(enabled), _this] call EFUNC(common,cbaSettings_settingChanged) [QGVAR(enabled), _this] call EFUNC(common,cbaSettings_settingChanged)
}, },
true // Needs mission restart true // Needs mission restart
] call CBA_Settings_fnc_init; ] call CBA_fnc_addSetting;
[ [
QGVAR(enableStaminaBar), QGVAR(enableStaminaBar),
@ -28,7 +28,7 @@
_staminaBarContainer ctrlCommit 0; _staminaBarContainer ctrlCommit 0;
}; };
} }
] call CBA_Settings_fnc_init; ] call CBA_fnc_addSetting;
[ [
QGVAR(fadeStaminaBar), QGVAR(fadeStaminaBar),
@ -43,7 +43,7 @@
_staminaBarContainer ctrlCommit 0; _staminaBarContainer ctrlCommit 0;
}; };
} }
] call CBA_Settings_fnc_init; ] call CBA_fnc_addSetting;
[ [
QGVAR(performanceFactor), QGVAR(performanceFactor),
@ -52,7 +52,7 @@
LSTRING(DisplayName), LSTRING(DisplayName),
[0, 5, 1, 1], [0, 5, 1, 1],
true true
] call CBA_Settings_fnc_init; ] call CBA_fnc_addSetting;
[ [
QGVAR(recoveryFactor), QGVAR(recoveryFactor),
@ -61,7 +61,7 @@
LSTRING(DisplayName), LSTRING(DisplayName),
[0, 5, 1, 1], [0, 5, 1, 1],
true true
] call CBA_Settings_fnc_init; ] call CBA_fnc_addSetting;
[ [
QGVAR(loadFactor), QGVAR(loadFactor),
@ -70,7 +70,7 @@
LSTRING(DisplayName), LSTRING(DisplayName),
[0, 5, 1, 1], [0, 5, 1, 1],
true true
] call CBA_Settings_fnc_init; ] call CBA_fnc_addSetting;
[ [
QGVAR(terrainGradientFactor), QGVAR(terrainGradientFactor),
@ -79,7 +79,7 @@
LSTRING(DisplayName), LSTRING(DisplayName),
[0, 5, 1, 1], [0, 5, 1, 1],
true true
] call CBA_Settings_fnc_init; ] call CBA_fnc_addSetting;
[ [
QGVAR(swayFactor), QGVAR(swayFactor),
@ -88,4 +88,4 @@
LSTRING(DisplayName), LSTRING(DisplayName),
[0, 5, 1, 1], [0, 5, 1, 1],
true true
] call CBA_Settings_fnc_init; ] call CBA_fnc_addSetting;

View File

@ -8,15 +8,15 @@ PREP_RECOMPILE_START;
PREP_RECOMPILE_END; PREP_RECOMPILE_END;
// Arsenal // Arsenal
[QGVAR(camInverted), "CHECKBOX", localize LSTRING(invertCameraSetting), localize LSTRING(settingCategory), false] call CBA_Settings_fnc_init; [QGVAR(camInverted), "CHECKBOX", localize LSTRING(invertCameraSetting), localize LSTRING(settingCategory), false] call CBA_fnc_addSetting;
[QGVAR(enableModIcons), "CHECKBOX", [LSTRING(modIconsSetting), LSTRING(modIconsTooltip)], localize LSTRING(settingCategory), true] call CBA_Settings_fnc_init; [QGVAR(enableModIcons), "CHECKBOX", [LSTRING(modIconsSetting), LSTRING(modIconsTooltip)], localize LSTRING(settingCategory), true] call CBA_fnc_addSetting;
[QGVAR(fontHeight), "SLIDER", [LSTRING(fontHeightSetting), LSTRING(fontHeightTooltip)], localize LSTRING(settingCategory), [1, 10, 4.5, 1]] call CBA_Settings_fnc_init; [QGVAR(fontHeight), "SLIDER", [LSTRING(fontHeightSetting), LSTRING(fontHeightTooltip)], localize LSTRING(settingCategory), [1, 10, 4.5, 1]] call CBA_fnc_addSetting;
[QGVAR(enableIdentityTabs), "CHECKBOX", localize LSTRING(enableIdentityTabsSettings), localize LSTRING(settingCategory), true, true] call CBA_Settings_fnc_init; [QGVAR(enableIdentityTabs), "CHECKBOX", localize LSTRING(enableIdentityTabsSettings), localize LSTRING(settingCategory), true, true] call CBA_fnc_addSetting;
// Arsenal loadouts // Arsenal loadouts
[QGVAR(allowDefaultLoadouts), "CHECKBOX", [LSTRING(allowDefaultLoadoutsSetting), LSTRING(defaultLoadoutsTooltip)], localize LSTRING(settingCategory), true, true] call CBA_Settings_fnc_init; [QGVAR(allowDefaultLoadouts), "CHECKBOX", [LSTRING(allowDefaultLoadoutsSetting), LSTRING(defaultLoadoutsTooltip)], localize LSTRING(settingCategory), true, true] call CBA_fnc_addSetting;
[QGVAR(allowSharedLoadouts), "CHECKBOX", localize LSTRING(allowSharingSetting), localize LSTRING(settingCategory), true, true] call CBA_Settings_fnc_init; [QGVAR(allowSharedLoadouts), "CHECKBOX", localize LSTRING(allowSharingSetting), localize LSTRING(settingCategory), true, true] call CBA_fnc_addSetting;
[QGVAR(EnableRPTLog), "CHECKBOX", [LSTRING(printToRPTSetting), LSTRING(printToRPTTooltip)], localize LSTRING(settingCategory), false, false] call CBA_Settings_fnc_init; [QGVAR(EnableRPTLog), "CHECKBOX", [LSTRING(printToRPTSetting), LSTRING(printToRPTTooltip)], localize LSTRING(settingCategory), false, false] call CBA_fnc_addSetting;
[QGVAR(statsToggle), { [QGVAR(statsToggle), {
params ["_display", "_showStats"]; params ["_display", "_showStats"];

View File

@ -10,7 +10,7 @@ private _categoryName = [format ["ACE %1", localize "str_a3_cfgmarkers_nato_art"
true, // isGlobal true, // isGlobal
{[QGVAR(advancedCorrections), _this] call EFUNC(common,cbaSettings_settingChanged)}, {[QGVAR(advancedCorrections), _this] call EFUNC(common,cbaSettings_settingChanged)},
true // Needs mission restart true // Needs mission restart
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;
[ [
QGVAR(disableArtilleryComputer), "CHECKBOX", QGVAR(disableArtilleryComputer), "CHECKBOX",
@ -20,4 +20,4 @@ private _categoryName = [format ["ACE %1", localize "str_a3_cfgmarkers_nato_art"
true, // isGlobal true, // isGlobal
{[QGVAR(disableArtilleryComputer), _this] call EFUNC(common,cbaSettings_settingChanged)}, {[QGVAR(disableArtilleryComputer), _this] call EFUNC(common,cbaSettings_settingChanged)},
false // Needs mission restart false // Needs mission restart
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;

View File

@ -5,7 +5,7 @@
true, true,
true, true,
{[QGVAR(enable), _this] call EFUNC(common,cbaSettings_settingChanged)} {[QGVAR(enable), _this] call EFUNC(common,cbaSettings_settingChanged)}
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;
[ [
QGVAR(loadTimeCoefficient), "SLIDER", QGVAR(loadTimeCoefficient), "SLIDER",
@ -14,7 +14,7 @@
[0, 10, 5, 1], [0, 10, 5, 1],
true, true,
{[QGVAR(loadTimeCoefficient), _this, true] call EFUNC(common,cbaSettings_settingChanged)} {[QGVAR(loadTimeCoefficient), _this, true] call EFUNC(common,cbaSettings_settingChanged)}
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;
[ [
QGVAR(paradropTimeCoefficent), "SLIDER", QGVAR(paradropTimeCoefficent), "SLIDER",
@ -23,4 +23,4 @@
[0, 10, 2.5, 1], [0, 10, 2.5, 1],
true, true,
{[QGVAR(paradropTimeCoefficent), _this, true] call EFUNC(common,cbaSettings_settingChanged)} {[QGVAR(paradropTimeCoefficent), _this, true] call EFUNC(common,cbaSettings_settingChanged)}
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;

View File

@ -123,7 +123,7 @@ private _settings = configProperties [configFile >> "ACE_Settings", "(isClass _x
_output pushBack format [" {[""%1"", _this] call ace_common_fnc_cbaSettings_settingChanged},", _varName]; _output pushBack format [" {[""%1"", _this] call ace_common_fnc_cbaSettings_settingChanged},", _varName];
}; };
_output pushBack format [" %1 // Needs mission restart", _warnIfChangedMidMission]; _output pushBack format [" %1 // Needs mission restart", _warnIfChangedMidMission];
_output pushBack "] call CBA_settings_fnc_init;"; _output pushBack "] call CBA_fnc_addSetting;";
} forEach _settings; } forEach _settings;
copyToClipboard (_output joinString endl); copyToClipboard (_output joinString endl);

View File

@ -98,7 +98,7 @@ private _code = compile format ['["%1", _this] call FUNC(cbaSettings_settingChan
TRACE_2("setting",_cbaSettingType,_cbaValueInfo); TRACE_2("setting",_cbaSettingType,_cbaValueInfo);
TRACE_4("",_isForced,_cbaIsGlobal,_category,_cbaValueInfo); TRACE_4("",_isForced,_cbaIsGlobal,_category,_cbaValueInfo);
private _return = [_varName, _cbaSettingType, [_localizedName, _localizedDescription], _category, _cbaValueInfo, _cbaIsGlobal, _code, _warnIfChangedMidMission] call CBA_settings_fnc_init; private _return = [_varName, _cbaSettingType, [_localizedName, _localizedDescription], _category, _cbaValueInfo, _cbaIsGlobal, _code, _warnIfChangedMidMission] call CBA_fnc_addSetting;
TRACE_1("returned",_return); TRACE_1("returned",_return);
if ((isNil "_return") || {_return != 0}) then {ERROR_1("Setting [%1] - CBA Error",_varName);}; if ((isNil "_return") || {_return != 0}) then {ERROR_1("Setting [%1] - CBA Error",_varName);};
_return _return

View File

@ -6,7 +6,7 @@
false, false,
false, false,
LINKFUNC(switchPersistentLaser) LINKFUNC(switchPersistentLaser)
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;
[ [
QGVAR(allowFadeMusic), QGVAR(allowFadeMusic),
@ -15,4 +15,4 @@
localize LSTRING(ACEKeybindCategoryCommon), localize LSTRING(ACEKeybindCategoryCommon),
true, true,
true true
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;

View File

@ -8,7 +8,7 @@
true, // isGlobal true, // isGlobal
{[QGVAR(enable), _this] call EFUNC(common,cbaSettings_settingChanged)}, {[QGVAR(enable), _this] call EFUNC(common,cbaSettings_settingChanged)},
true // Needs mission restart true // Needs mission restart
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;
[ [
QGVAR(enableAmmobox), "CHECKBOX", QGVAR(enableAmmobox), "CHECKBOX",
@ -18,7 +18,7 @@
true, // isGlobal true, // isGlobal
{[QGVAR(enableAmmobox), _this] call EFUNC(common,cbaSettings_settingChanged)}, {[QGVAR(enableAmmobox), _this] call EFUNC(common,cbaSettings_settingChanged)},
true // Needs mission restart true // Needs mission restart
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;
[ [
QGVAR(enableAmmoCookoff), "CHECKBOX", QGVAR(enableAmmoCookoff), "CHECKBOX",
@ -28,7 +28,7 @@
true, // isGlobal true, // isGlobal
{[QGVAR(enableAmmoCookoff), _this] call EFUNC(common,cbaSettings_settingChanged)}, {[QGVAR(enableAmmoCookoff), _this] call EFUNC(common,cbaSettings_settingChanged)},
true // Needs mission restart true // Needs mission restart
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;
[ [
QGVAR(ammoCookoffDuration), "SLIDER", QGVAR(ammoCookoffDuration), "SLIDER",
@ -38,7 +38,7 @@
true, // isGlobal true, // isGlobal
{[QGVAR(ammoCookoffDuration), _this] call EFUNC(common,cbaSettings_settingChanged)}, {[QGVAR(ammoCookoffDuration), _this] call EFUNC(common,cbaSettings_settingChanged)},
true // Needs mission restart true // Needs mission restart
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;
[ [
QGVAR(probabilityCoef), "SLIDER", QGVAR(probabilityCoef), "SLIDER",
@ -48,4 +48,4 @@
true, // isGlobal true, // isGlobal
{[QGVAR(probabilityCoef), _this] call EFUNC(common,cbaSettings_settingChanged)}, {[QGVAR(probabilityCoef), _this] call EFUNC(common,cbaSettings_settingChanged)},
true // Needs mission restart true // Needs mission restart
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;

View File

@ -10,7 +10,7 @@ private _categoryArray = [format ["ACE %1", localize LSTRING(DisplayName)]];
true, // isGlobal true, // isGlobal
{[QGVAR(defaultAssemblyMode), _this] call EFUNC(common,cbaSettings_settingChanged)}, {[QGVAR(defaultAssemblyMode), _this] call EFUNC(common,cbaSettings_settingChanged)},
true // Needs mission restart true // Needs mission restart
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;
[ [
QGVAR(handleExtraMagazines), "CHECKBOX", QGVAR(handleExtraMagazines), "CHECKBOX",
@ -20,7 +20,7 @@ private _categoryArray = [format ["ACE %1", localize LSTRING(DisplayName)]];
true, // isGlobal true, // isGlobal
{[QGVAR(handleExtraMagazines), _this] call EFUNC(common,cbaSettings_settingChanged)}, {[QGVAR(handleExtraMagazines), _this] call EFUNC(common,cbaSettings_settingChanged)},
true // Needs mission restart true // Needs mission restart
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;
[ [
QGVAR(ammoHandling), "LIST", QGVAR(ammoHandling), "LIST",
@ -30,7 +30,7 @@ private _categoryArray = [format ["ACE %1", localize LSTRING(DisplayName)]];
true, // isGlobal true, // isGlobal
{[QGVAR(ammoHandling), _this] call EFUNC(common,cbaSettings_settingChanged)}, {[QGVAR(ammoHandling), _this] call EFUNC(common,cbaSettings_settingChanged)},
true // Needs mission restart true // Needs mission restart
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;
[ [
QGVAR(progressBarTimeCoefficent), "SLIDER", QGVAR(progressBarTimeCoefficent), "SLIDER",
@ -40,7 +40,7 @@ private _categoryArray = [format ["ACE %1", localize LSTRING(DisplayName)]];
true, // isGlobal true, // isGlobal
{[QGVAR(progressBarTimeCoefficent), _this] call EFUNC(common,cbaSettings_settingChanged)}, {[QGVAR(progressBarTimeCoefficent), _this] call EFUNC(common,cbaSettings_settingChanged)},
false // Needs mission restart false // Needs mission restart
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;
[ [
QGVAR(dragAfterDeploy), "CHECKBOX", QGVAR(dragAfterDeploy), "CHECKBOX",
@ -50,4 +50,4 @@ private _categoryArray = [format ["ACE %1", localize LSTRING(DisplayName)]];
false, // isGlobal false, // isGlobal
{[QGVAR(dragAfterDeploy), _this] call EFUNC(common,cbaSettings_settingChanged)}, {[QGVAR(dragAfterDeploy), _this] call EFUNC(common,cbaSettings_settingChanged)},
false // Needs mission restart false // Needs mission restart
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;

View File

@ -10,4 +10,4 @@ private _category = ["ACE Uncategorized", LLSTRING(setting_categoryMenu_displayN
true, // isGlobal true, // isGlobal
{[QGVAR(requireRopeItems), _this] call EFUNC(common,cbaSettings_settingChanged)}, {[QGVAR(requireRopeItems), _this] call EFUNC(common,cbaSettings_settingChanged)},
false // needRestart false // needRestart
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;

View File

@ -6,7 +6,7 @@
[1, 0, 0], [1, 0, 0],
false, false,
{GVAR(selectorColorHex) = _this call BIS_fnc_colorRGBtoHTML} // Stored in Hex to avoid constant conversion {GVAR(selectorColorHex) = _this call BIS_fnc_colorRGBtoHTML} // Stored in Hex to avoid constant conversion
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;
[ [
QGVAR(consolidateSingleChild), QGVAR(consolidateSingleChild),
@ -23,7 +23,7 @@
[format ["ACE %1", LLSTRING(Category_InteractionMenu)], LLSTRING(Category_InteractionMenu)], [format ["ACE %1", LLSTRING(Category_InteractionMenu)], LLSTRING(Category_InteractionMenu)],
false, false,
false false
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;
[ [
QGVAR(cursorKeepCentered), QGVAR(cursorKeepCentered),
@ -32,7 +32,7 @@
[format ["ACE %1", LLSTRING(Category_InteractionMenu)], LLSTRING(Category_InteractionMenu)], [format ["ACE %1", LLSTRING(Category_InteractionMenu)], LLSTRING(Category_InteractionMenu)],
false, false,
false false
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;
[ [
QGVAR(useListMenu), QGVAR(useListMenu),
@ -41,7 +41,7 @@
[format ["ACE %1", LLSTRING(Category_InteractionMenu)], LLSTRING(Category_InteractionMenu)], [format ["ACE %1", LLSTRING(Category_InteractionMenu)], LLSTRING(Category_InteractionMenu)],
false, false,
false false
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;
[ [
QGVAR(menuBackground), QGVAR(menuBackground),
@ -50,7 +50,7 @@
[format ["ACE %1", LLSTRING(Category_InteractionMenu)], LLSTRING(Category_InteractionMenu)], [format ["ACE %1", LLSTRING(Category_InteractionMenu)], LLSTRING(Category_InteractionMenu)],
[[0, 1, 2], ["STR_A3_OPTIONS_DISABLED", LLSTRING(backgroundBlur), LLSTRING(backgroundBlack)], 0], [[0, 1, 2], ["STR_A3_OPTIONS_DISABLED", LLSTRING(backgroundBlur), LLSTRING(backgroundBlack)], 0],
false false
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;
[ [
QGVAR(alwaysUseCursorSelfInteraction), QGVAR(alwaysUseCursorSelfInteraction),
@ -59,7 +59,7 @@
[format ["ACE %1", LLSTRING(Category_InteractionMenu)], LELSTRING(Interaction,InteractionMenuSelf)], [format ["ACE %1", LLSTRING(Category_InteractionMenu)], LELSTRING(Interaction,InteractionMenuSelf)],
true, true,
false false
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;
[ [
QGVAR(cursorKeepCenteredSelfInteraction), QGVAR(cursorKeepCenteredSelfInteraction),
@ -68,7 +68,7 @@
[format ["ACE %1", LLSTRING(Category_InteractionMenu)], LELSTRING(Interaction,InteractionMenuSelf)], [format ["ACE %1", LLSTRING(Category_InteractionMenu)], LELSTRING(Interaction,InteractionMenuSelf)],
false, false,
false false
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;
[ [
QGVAR(useListMenuSelf), QGVAR(useListMenuSelf),
@ -77,7 +77,7 @@
[format ["ACE %1", LLSTRING(Category_InteractionMenu)], LELSTRING(Interaction,InteractionMenuSelf)], [format ["ACE %1", LLSTRING(Category_InteractionMenu)], LELSTRING(Interaction,InteractionMenuSelf)],
false, false,
false false
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;
[ [
QGVAR(menuBackgroundSelf), QGVAR(menuBackgroundSelf),
@ -86,4 +86,4 @@
[format ["ACE %1", LLSTRING(Category_InteractionMenu)], LELSTRING(Interaction,InteractionMenuSelf)], [format ["ACE %1", LLSTRING(Category_InteractionMenu)], LELSTRING(Interaction,InteractionMenuSelf)],
[[0, 1, 2], ["STR_A3_OPTIONS_DISABLED", LLSTRING(backgroundBlur), LLSTRING(backgroundBlack)], 0], [[0, 1, 2], ["STR_A3_OPTIONS_DISABLED", LLSTRING(backgroundBlur), LLSTRING(backgroundBlack)], 0],
false false
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;

View File

@ -23,7 +23,7 @@ private _categoryName = format ["ACE %1", localize ELSTRING(map,Module_DisplayNa
], ],
1 1
] ]
] call cba_settings_fnc_init; ] call CBA_fnc_addSetting;
[ [
QGVAR(timestampEnabled), "CHECKBOX", QGVAR(timestampEnabled), "CHECKBOX",

View File

@ -7,7 +7,7 @@
true, true,
{}, {},
true true
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;
[ [
QGVAR(fractures), QGVAR(fractures),
@ -18,7 +18,7 @@
true, true,
{}, {},
true true
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;
[ [
QGVAR(fractureChance), QGVAR(fractureChance),
@ -27,7 +27,7 @@
LSTRING(Category), LSTRING(Category),
[0, 1, 0.8, 2, true], [0, 1, 0.8, 2, true],
true true
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;
[ [
QGVAR(spontaneousWakeUpChance), QGVAR(spontaneousWakeUpChance),
@ -36,7 +36,7 @@
LSTRING(Category), LSTRING(Category),
[0, 1, 0.05, 2, true], [0, 1, 0.05, 2, true],
true true
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;
[ [
QGVAR(spontaneousWakeUpEpinephrineBoost), QGVAR(spontaneousWakeUpEpinephrineBoost),
@ -45,4 +45,4 @@
LSTRING(Category), LSTRING(Category),
[1, 30, 1, 1], [1, 30, 1, 1],
true true
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;

View File

@ -14,4 +14,4 @@ private _categoryArray = [ELSTRING(medical,Category), "STR_TEAM_SWITCH_AI"];
true, // isGlobal true, // isGlobal
{[QGVAR(enabledFor), _this] call EFUNC(common,cbaSettings_settingChanged)}, {[QGVAR(enabledFor), _this] call EFUNC(common,cbaSettings_settingChanged)},
true // Needs mission restart true // Needs mission restart
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;

View File

@ -6,7 +6,7 @@
[[BLOOD_DISABLED, BLOOD_ONLY_PLAYERS, BLOOD_ENABLED], [ELSTRING(Common,Disabled), LSTRING(OnlyPlayers), ELSTRING(Common,Enabled)], 2], [[BLOOD_DISABLED, BLOOD_ONLY_PLAYERS, BLOOD_ENABLED], [ELSTRING(Common,Disabled), LSTRING(OnlyPlayers), ELSTRING(Common,Enabled)], 2],
true, true,
LINKFUNC(init) LINKFUNC(init)
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;
[ [
QGVAR(maxBloodObjects), QGVAR(maxBloodObjects),
@ -15,7 +15,7 @@
[ELSTRING(medical,Category), LSTRING(SubCategory)], [ELSTRING(medical,Category), LSTRING(SubCategory)],
[[50, 100, 200, 300, 400, 500, 1000, 2000, 3000, 4000, 5000], [/* settings function will auto create names */], 5], [[50, 100, 200, 300, 400, 500, 1000, 2000, 3000, 4000, 5000], [/* settings function will auto create names */], 5],
true true
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;
[ [
QGVAR(bloodLifetime), QGVAR(bloodLifetime),
@ -24,4 +24,4 @@
[ELSTRING(medical,Category), LSTRING(SubCategory)], [ELSTRING(medical,Category), LSTRING(SubCategory)],
[1, 3600, 900], [1, 3600, 900],
true true
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;

View File

@ -5,7 +5,7 @@
[ELSTRING(medical,Category)], [ELSTRING(medical,Category)],
[[0, 1, 2], [LSTRING(fatalDamageSource_vitalShotsOnly), LSTRING(fatalDamageSource_trauma), LSTRING(fatalDamageSource_both)], 0], [[0, 1, 2], [LSTRING(fatalDamageSource_vitalShotsOnly), LSTRING(fatalDamageSource_trauma), LSTRING(fatalDamageSource_both)], 0],
true true
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;
[ [
QEGVAR(medical,playerDamageThreshold), QEGVAR(medical,playerDamageThreshold),
@ -14,7 +14,7 @@
ELSTRING(medical,Category), ELSTRING(medical,Category),
[0, 25, 1, 2], [0, 25, 1, 2],
true true
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;
[ [
QEGVAR(medical,AIDamageThreshold), QEGVAR(medical,AIDamageThreshold),
@ -23,7 +23,7 @@
ELSTRING(medical,Category), ELSTRING(medical,Category),
[0, 25, 1, 2], [0, 25, 1, 2],
true true
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;
[ [
QEGVAR(medical,painUnconsciousChance), QEGVAR(medical,painUnconsciousChance),
@ -32,4 +32,4 @@
ELSTRING(medical,Category), ELSTRING(medical,Category),
[0, 1, 0.1, 2, true], [0, 1, 0.1, 2, true],
true true
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;

View File

@ -5,7 +5,7 @@
[ELSTRING(medical,Category), LSTRING(SubCategory)], [ELSTRING(medical,Category), LSTRING(SubCategory)],
[[0, 1, 2], [LSTRING(Selections3D), LSTRING(Radial), ELSTRING(common,Disabled)], 0], [[0, 1, 2], [LSTRING(Selections3D), LSTRING(Radial), ELSTRING(common,Disabled)], 0],
false false
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;
[ [
QGVAR(enableSelfActions), QGVAR(enableSelfActions),
@ -14,7 +14,7 @@
[ELSTRING(medical,Category), LSTRING(SubCategory)], [ELSTRING(medical,Category), LSTRING(SubCategory)],
true, true,
false false
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;
[ [
QGVAR(enableMedicalMenu), QGVAR(enableMedicalMenu),
@ -23,7 +23,7 @@
[ELSTRING(medical,Category), LSTRING(SubCategory)], [ELSTRING(medical,Category), LSTRING(SubCategory)],
[[0, 1, 2], [ELSTRING(common,Disabled), ELSTRING(common,Enabled), ELSTRING(common,VehiclesOnly)], 1], [[0, 1, 2], [ELSTRING(common,Disabled), ELSTRING(common,Enabled), ELSTRING(common,VehiclesOnly)], 1],
false false
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;
[ [
QGVAR(openAfterTreatment), QGVAR(openAfterTreatment),
@ -32,7 +32,7 @@
[ELSTRING(medical,Category), LSTRING(SubCategory)], [ELSTRING(medical,Category), LSTRING(SubCategory)],
true, true,
false false
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;
[ [
QGVAR(maxDistance), QGVAR(maxDistance),
@ -41,7 +41,7 @@
[ELSTRING(medical,Category), LSTRING(SubCategory)], [ELSTRING(medical,Category), LSTRING(SubCategory)],
[0, 10, 3, 1], [0, 10, 3, 1],
true true
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;
[ [
QGVAR(interactionMenuShowTriage), QGVAR(interactionMenuShowTriage),
@ -50,4 +50,4 @@
[ELSTRING(medical,Category), LSTRING(SubCategory)], [ELSTRING(medical,Category), LSTRING(SubCategory)],
[[0, 1, 2], [ELSTRING(common,Disabled), ELSTRING(Medical_Treatment,Anyone), ELSTRING(Medical_Treatment,Medics)], 1], [[0, 1, 2], [ELSTRING(common,Disabled), ELSTRING(Medical_Treatment,Anyone), ELSTRING(Medical_Treatment,Medics)], 1],
false false
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;

View File

@ -9,7 +9,7 @@
0 0
], ],
true true
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;
[ [
QGVAR(fatalInjuriesAI), QGVAR(fatalInjuriesAI),
@ -22,7 +22,7 @@
0 0
], ],
true true
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;
[ [
QGVAR(AIUnconsciousness), QGVAR(AIUnconsciousness),
@ -31,7 +31,7 @@
[ELSTRING(medical,Category), LSTRING(SubCategory)], [ELSTRING(medical,Category), LSTRING(SubCategory)],
true, true,
true true
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;
[ [
QGVAR(cardiacArrestTime), QGVAR(cardiacArrestTime),
@ -40,7 +40,7 @@
[ELSTRING(medical,Category), LSTRING(SubCategory)], [ELSTRING(medical,Category), LSTRING(SubCategory)],
[1, 3600, 300], [1, 3600, 300],
true true
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;
[ [
QGVAR(cardiacArrestBleedoutEnabled), QGVAR(cardiacArrestBleedoutEnabled),
@ -49,4 +49,4 @@
[ELSTRING(medical,Category), LSTRING(SubCategory)], [ELSTRING(medical,Category), LSTRING(SubCategory)],
true, true,
true true
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;

View File

@ -5,7 +5,7 @@
[ELSTRING(medical,Category), LSTRING(SubCategory)], [ELSTRING(medical,Category), LSTRING(SubCategory)],
[0, 25, 1, 1], [0, 25, 1, 1],
true true
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;
[ [
QEGVAR(medical,painCoefficient), QEGVAR(medical,painCoefficient),
@ -14,7 +14,7 @@
[ELSTRING(medical,Category), LSTRING(SubCategory)], [ELSTRING(medical,Category), LSTRING(SubCategory)],
[0, 25, 1, 1], [0, 25, 1, 1],
true true
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;
[ [
QEGVAR(medical,ivFlowRate), QEGVAR(medical,ivFlowRate),
@ -23,4 +23,4 @@
[ELSTRING(medical,Category), LSTRING(SubCategory)], [ELSTRING(medical,Category), LSTRING(SubCategory)],
[0, 25, 1, 1], [0, 25, 1, 1],
true true
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;

View File

@ -5,7 +5,7 @@
[ELSTRING(medical,Category), LSTRING(SubCategory_Treatment)], [ELSTRING(medical,Category), LSTRING(SubCategory_Treatment)],
true, true,
true true
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;
[ [
QGVAR(advancedMedication), QGVAR(advancedMedication),
@ -14,7 +14,7 @@
[ELSTRING(medical,Category), LSTRING(SubCategory_Treatment)], [ELSTRING(medical,Category), LSTRING(SubCategory_Treatment)],
true, true,
true true
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;
[ [
QGVAR(advancedBandages), QGVAR(advancedBandages),
@ -23,7 +23,7 @@
[ELSTRING(medical,Category), LSTRING(SubCategory_Treatment)], [ELSTRING(medical,Category), LSTRING(SubCategory_Treatment)],
[[0, 1, 2], [ELSTRING(common,Disabled), ELSTRING(common,Enabled), LSTRING(AdvancedBandages_EnabledCanReopen)], 1], [[0, 1, 2], [ELSTRING(common,Disabled), ELSTRING(common,Enabled), LSTRING(AdvancedBandages_EnabledCanReopen)], 1],
true true
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;
[ [
QGVAR(woundReopenChance), QGVAR(woundReopenChance),
@ -32,7 +32,7 @@
[ELSTRING(medical,Category), LSTRING(SubCategory_Treatment)], [ELSTRING(medical,Category), LSTRING(SubCategory_Treatment)],
[0, 5, 1, 2], [0, 5, 1, 2],
true true
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;
[ [
QGVAR(clearTraumaAfterBandage), QGVAR(clearTraumaAfterBandage),
@ -41,7 +41,7 @@
[ELSTRING(medical,Category), LSTRING(SubCategory_Treatment)], [ELSTRING(medical,Category), LSTRING(SubCategory_Treatment)],
false, false,
true true
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;
// todo: should this setting differentiate between medical vehicles and facilities? // todo: should this setting differentiate between medical vehicles and facilities?
[ [
@ -51,7 +51,7 @@
[ELSTRING(medical,Category), LSTRING(SubCategory_Treatment)], [ELSTRING(medical,Category), LSTRING(SubCategory_Treatment)],
false, false,
true true
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;
[ [
QGVAR(allowSharedEquipment), QGVAR(allowSharedEquipment),
@ -60,7 +60,7 @@
[ELSTRING(medical,Category), LSTRING(SubCategory_Treatment)], [ELSTRING(medical,Category), LSTRING(SubCategory_Treatment)],
[[0, 1, 2], [LSTRING(AllowSharedEquipment_PriorityPatient), LSTRING(AllowSharedEquipment_PriorityMedic), ELSTRING(common,No)], 0], [[0, 1, 2], [LSTRING(AllowSharedEquipment_PriorityPatient), LSTRING(AllowSharedEquipment_PriorityMedic), ELSTRING(common,No)], 0],
true true
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;
[ [
QGVAR(convertItems), QGVAR(convertItems),
@ -69,7 +69,7 @@
[ELSTRING(medical,Category), LSTRING(SubCategory_Treatment)], [ELSTRING(medical,Category), LSTRING(SubCategory_Treatment)],
[[0, 1, 2], [ELSTRING(common,Enabled), LSTRING(ConvertItems_RemoveOnly), ELSTRING(common,Disabled)], 0], [[0, 1, 2], [ELSTRING(common,Enabled), LSTRING(ConvertItems_RemoveOnly), ELSTRING(common,Disabled)], 0],
true true
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;
[ [
QGVAR(treatmentTimeAutoinjector), QGVAR(treatmentTimeAutoinjector),
@ -78,7 +78,7 @@
[ELSTRING(medical,Category), LSTRING(SubCategory_Treatment)], [ELSTRING(medical,Category), LSTRING(SubCategory_Treatment)],
[0.1, 60, 5, 1], [0.1, 60, 5, 1],
true true
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;
[ [
QGVAR(treatmentTimeTourniquet), QGVAR(treatmentTimeTourniquet),
@ -87,7 +87,7 @@
[ELSTRING(medical,Category), LSTRING(SubCategory_Treatment)], [ELSTRING(medical,Category), LSTRING(SubCategory_Treatment)],
[0.1, 60, 7, 1], [0.1, 60, 7, 1],
true true
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;
[ [
QGVAR(treatmentTimeSplint), QGVAR(treatmentTimeSplint),
@ -96,7 +96,7 @@
[ELSTRING(medical,Category), LSTRING(SubCategory_Treatment)], [ELSTRING(medical,Category), LSTRING(SubCategory_Treatment)],
[0.1, 60, 7, 1], [0.1, 60, 7, 1],
true true
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;
[ [
QGVAR(treatmentTimeBodyBag), QGVAR(treatmentTimeBodyBag),
@ -105,7 +105,7 @@
[ELSTRING(medical,Category), LSTRING(SubCategory_Treatment)], [ELSTRING(medical,Category), LSTRING(SubCategory_Treatment)],
[0.1, 60, 15, 1], [0.1, 60, 15, 1],
true true
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;
[ [
QGVAR(medicEpinephrine), QGVAR(medicEpinephrine),
@ -114,7 +114,7 @@
[ELSTRING(medical,Category), LSTRING(SubCategory_Treatment)], [ELSTRING(medical,Category), LSTRING(SubCategory_Treatment)],
[[0, 1, 2], [LSTRING(Anyone), LSTRING(Medics), LSTRING(Doctors)], 0], [[0, 1, 2], [LSTRING(Anyone), LSTRING(Medics), LSTRING(Doctors)], 0],
true true
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;
[ [
QGVAR(locationEpinephrine), QGVAR(locationEpinephrine),
@ -123,7 +123,7 @@
[ELSTRING(medical,Category), LSTRING(SubCategory_Treatment)], [ELSTRING(medical,Category), LSTRING(SubCategory_Treatment)],
[[0, 1, 2, 3, 4], [ELSTRING(common,Anywhere), ELSTRING(common,Vehicle), LSTRING(MedicalFacilities), LSTRING(VehiclesAndFacilities), ELSTRING(common,Disabled)], 0], [[0, 1, 2, 3, 4], [ELSTRING(common,Anywhere), ELSTRING(common,Vehicle), LSTRING(MedicalFacilities), LSTRING(VehiclesAndFacilities), ELSTRING(common,Disabled)], 0],
true true
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;
[ [
QGVAR(medicPAK), QGVAR(medicPAK),
@ -132,7 +132,7 @@
[ELSTRING(medical,Category), LSTRING(SubCategory_Treatment)], [ELSTRING(medical,Category), LSTRING(SubCategory_Treatment)],
[[0, 1, 2], [LSTRING(Anyone), LSTRING(Medics), LSTRING(Doctors)], 1], [[0, 1, 2], [LSTRING(Anyone), LSTRING(Medics), LSTRING(Doctors)], 1],
true true
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;
[ [
QGVAR(locationPAK), QGVAR(locationPAK),
@ -141,7 +141,7 @@
[ELSTRING(medical,Category), LSTRING(SubCategory_Treatment)], [ELSTRING(medical,Category), LSTRING(SubCategory_Treatment)],
[[0, 1, 2, 3, 4], [ELSTRING(common,Anywhere), ELSTRING(common,Vehicle), LSTRING(MedicalFacilities), LSTRING(VehiclesAndFacilities), ELSTRING(common,Disabled)], 3], [[0, 1, 2, 3, 4], [ELSTRING(common,Anywhere), ELSTRING(common,Vehicle), LSTRING(MedicalFacilities), LSTRING(VehiclesAndFacilities), ELSTRING(common,Disabled)], 3],
true true
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;
[ [
QGVAR(consumePAK), QGVAR(consumePAK),
@ -150,7 +150,7 @@
[ELSTRING(medical,Category), LSTRING(SubCategory_Treatment)], [ELSTRING(medical,Category), LSTRING(SubCategory_Treatment)],
[[0, 1], [ELSTRING(common,No), ELSTRING(common,Yes)], 0], [[0, 1], [ELSTRING(common,No), ELSTRING(common,Yes)], 0],
true true
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;
[ [
QGVAR(allowSelfPAK), QGVAR(allowSelfPAK),
@ -159,7 +159,7 @@
[ELSTRING(medical,Category), LSTRING(SubCategory_Treatment)], [ELSTRING(medical,Category), LSTRING(SubCategory_Treatment)],
[[0, 1], [ELSTRING(common,No), ELSTRING(common,Yes)], 0], [[0, 1], [ELSTRING(common,No), ELSTRING(common,Yes)], 0],
true true
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;
[ [
QGVAR(timeCoefficientPAK), QGVAR(timeCoefficientPAK),
@ -168,7 +168,7 @@
[ELSTRING(medical,Category), LSTRING(SubCategory_Treatment)], [ELSTRING(medical,Category), LSTRING(SubCategory_Treatment)],
[0, 5, 1, 1], [0, 5, 1, 1],
true true
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;
[ [
QGVAR(medicSurgicalKit), QGVAR(medicSurgicalKit),
@ -177,7 +177,7 @@
[ELSTRING(medical,Category), LSTRING(SubCategory_Treatment)], [ELSTRING(medical,Category), LSTRING(SubCategory_Treatment)],
[[0, 1, 2], [LSTRING(Anyone), LSTRING(Medics), LSTRING(Doctors)], 1], [[0, 1, 2], [LSTRING(Anyone), LSTRING(Medics), LSTRING(Doctors)], 1],
true true
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;
[ [
QGVAR(locationSurgicalKit), QGVAR(locationSurgicalKit),
@ -186,7 +186,7 @@
[ELSTRING(medical,Category), LSTRING(SubCategory_Treatment)], [ELSTRING(medical,Category), LSTRING(SubCategory_Treatment)],
[[0, 1, 2, 3, 4], [ELSTRING(common,Anywhere), ELSTRING(common,Vehicle), LSTRING(MedicalFacilities), LSTRING(VehiclesAndFacilities), ELSTRING(common,Disabled)], 2], [[0, 1, 2, 3, 4], [ELSTRING(common,Anywhere), ELSTRING(common,Vehicle), LSTRING(MedicalFacilities), LSTRING(VehiclesAndFacilities), ELSTRING(common,Disabled)], 2],
true true
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;
[ [
QGVAR(consumeSurgicalKit), QGVAR(consumeSurgicalKit),
@ -195,7 +195,7 @@
[ELSTRING(medical,Category), LSTRING(SubCategory_Treatment)], [ELSTRING(medical,Category), LSTRING(SubCategory_Treatment)],
[[0, 1], [ELSTRING(common,No), ELSTRING(common,Yes)], 0], [[0, 1], [ELSTRING(common,No), ELSTRING(common,Yes)], 0],
true true
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;
[ [
QGVAR(allowSelfStitch), QGVAR(allowSelfStitch),
@ -204,7 +204,7 @@
[ELSTRING(medical,Category), LSTRING(SubCategory_Treatment)], [ELSTRING(medical,Category), LSTRING(SubCategory_Treatment)],
[[0, 1], [ELSTRING(common,No), ELSTRING(common,Yes)], 0], [[0, 1], [ELSTRING(common,No), ELSTRING(common,Yes)], 0],
true true
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;
[ [
QGVAR(woundStitchTime), QGVAR(woundStitchTime),
@ -213,7 +213,7 @@
[ELSTRING(medical,Category), LSTRING(SubCategory_Treatment)], [ELSTRING(medical,Category), LSTRING(SubCategory_Treatment)],
[0.1, 60, 5, 1], [0.1, 60, 5, 1],
true true
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;
[ [
QGVAR(medicIV), QGVAR(medicIV),
@ -222,7 +222,7 @@
[ELSTRING(medical,Category), LSTRING(SubCategory_Treatment)], [ELSTRING(medical,Category), LSTRING(SubCategory_Treatment)],
[[0, 1, 2], [LSTRING(Anyone), LSTRING(Medics), LSTRING(Doctors)], 1], [[0, 1, 2], [LSTRING(Anyone), LSTRING(Medics), LSTRING(Doctors)], 1],
true true
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;
[ [
QGVAR(allowSelfIV), QGVAR(allowSelfIV),
@ -231,7 +231,7 @@
[ELSTRING(medical,Category), LSTRING(SubCategory_Treatment)], [ELSTRING(medical,Category), LSTRING(SubCategory_Treatment)],
[[0, 1], [ELSTRING(common,No), ELSTRING(common,Yes)], 1], [[0, 1], [ELSTRING(common,No), ELSTRING(common,Yes)], 1],
true true
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;
[ [
QGVAR(treatmentTimeIV), QGVAR(treatmentTimeIV),
@ -240,7 +240,7 @@
[ELSTRING(medical,Category), LSTRING(SubCategory_Treatment)], [ELSTRING(medical,Category), LSTRING(SubCategory_Treatment)],
[0.1, 60, 12, 1], [0.1, 60, 12, 1],
true true
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;
[ [
QGVAR(cprSuccessChance), QGVAR(cprSuccessChance),
@ -249,7 +249,7 @@
[ELSTRING(medical,Category), LSTRING(SubCategory_Treatment)], [ELSTRING(medical,Category), LSTRING(SubCategory_Treatment)],
[0, 1, 0.4, 2, true], [0, 1, 0.4, 2, true],
true true
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;
[ [
QGVAR(treatmentTimeCPR), QGVAR(treatmentTimeCPR),
@ -258,7 +258,7 @@
[ELSTRING(medical,Category), LSTRING(SubCategory_Treatment)], [ELSTRING(medical,Category), LSTRING(SubCategory_Treatment)],
[0.1, 60, 15, 1], [0.1, 60, 15, 1],
true true
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;
[ [
QGVAR(allowBodyBagUnconscious), QGVAR(allowBodyBagUnconscious),
@ -267,7 +267,7 @@
[ELSTRING(medical,Category), LSTRING(SubCategory_Treatment)], [ELSTRING(medical,Category), LSTRING(SubCategory_Treatment)],
false, false,
true true
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;
[ [
QGVAR(holsterRequired), QGVAR(holsterRequired),
@ -276,7 +276,7 @@
[ELSTRING(medical,Category), LSTRING(SubCategory_Treatment)], [ELSTRING(medical,Category), LSTRING(SubCategory_Treatment)],
[[0, 1, 2, 3, 4], [ELSTRING(common,Disabled), LSTRING(HolsterRequired_Lowered), LSTRING(HolsterRequired_LoweredExam), LSTRING(HolsterRequired_Holstered), LSTRING(HolsterRequired_HolsteredExam)], 0], [[0, 1, 2, 3, 4], [ELSTRING(common,Disabled), LSTRING(HolsterRequired_Lowered), LSTRING(HolsterRequired_LoweredExam), LSTRING(HolsterRequired_Holstered), LSTRING(HolsterRequired_HolsteredExam)], 0],
true true
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;
[ [
QGVAR(allowLitterCreation), QGVAR(allowLitterCreation),
@ -285,7 +285,7 @@
[ELSTRING(medical,Category), LSTRING(SubCategory_Litter)], [ELSTRING(medical,Category), LSTRING(SubCategory_Litter)],
true, true,
true true
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;
[ [
QGVAR(maxLitterObjects), QGVAR(maxLitterObjects),
@ -294,7 +294,7 @@
[ELSTRING(medical,Category), LSTRING(SubCategory_Litter)], [ELSTRING(medical,Category), LSTRING(SubCategory_Litter)],
[[50, 100, 200, 300, 400, 500, 1000, 2000, 3000, 4000, 5000], [/* settings function will auto create names */], 5], [[50, 100, 200, 300, 400, 500, 1000, 2000, 3000, 4000, 5000], [/* settings function will auto create names */], 5],
true true
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;
[ [
QGVAR(litterCleanupDelay), QGVAR(litterCleanupDelay),
@ -303,4 +303,4 @@
[ELSTRING(medical,Category), LSTRING(SubCategory_Litter)], [ELSTRING(medical,Category), LSTRING(SubCategory_Litter)],
[-1, 3600, 600, 0], [-1, 3600, 600, 0],
true true
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;

View File

@ -8,7 +8,7 @@
true, // isGlobal true, // isGlobal
{[QGVAR(mapDataAvailable), _this] call EFUNC(common,cbaSettings_settingChanged)}, {[QGVAR(mapDataAvailable), _this] call EFUNC(common,cbaSettings_settingChanged)},
true // require mission restart true // require mission restart
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;
[ [
QGVAR(waypointPrecision), "LIST", QGVAR(waypointPrecision), "LIST",
@ -18,4 +18,4 @@
true, // isGlobal true, // isGlobal
{[QGVAR(waypointPrecision), _this] call EFUNC(common,cbaSettings_settingChanged)}, {[QGVAR(waypointPrecision), _this] call EFUNC(common,cbaSettings_settingChanged)},
false // require mission restart false // require mission restart
] call cba_settings_fnc_init; ] call CBA_fnc_addSetting;

View File

@ -11,7 +11,7 @@ private _category = [format ["ACE %1", localize "str_a3_cfgmarkers_nato_art"], l
true, // isGlobal true, // isGlobal
{[QGVAR(airResistanceEnabled), _this] call EFUNC(common,cbaSettings_settingChanged)}, {[QGVAR(airResistanceEnabled), _this] call EFUNC(common,cbaSettings_settingChanged)},
true // Needs mission restart true // Needs mission restart
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;
[ [
QGVAR(allowComputerRangefinder), "CHECKBOX", QGVAR(allowComputerRangefinder), "CHECKBOX",
@ -21,7 +21,7 @@ private _category = [format ["ACE %1", localize "str_a3_cfgmarkers_nato_art"], l
true, // isGlobal true, // isGlobal
{[QGVAR(allowComputerRangefinder), _this] call EFUNC(common,cbaSettings_settingChanged)}, {[QGVAR(allowComputerRangefinder), _this] call EFUNC(common,cbaSettings_settingChanged)},
true // Needs mission restart true // Needs mission restart
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;
[ [
QGVAR(allowCompass), "CHECKBOX", QGVAR(allowCompass), "CHECKBOX",
@ -31,7 +31,7 @@ private _category = [format ["ACE %1", localize "str_a3_cfgmarkers_nato_art"], l
true, // isGlobal true, // isGlobal
{[QGVAR(allowCompass), _this] call EFUNC(common,cbaSettings_settingChanged)}, {[QGVAR(allowCompass), _this] call EFUNC(common,cbaSettings_settingChanged)},
true // Needs mission restart true // Needs mission restart
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;
[ [
QGVAR(useAmmoHandling), "CHECKBOX", QGVAR(useAmmoHandling), "CHECKBOX",
@ -41,4 +41,4 @@ private _category = [format ["ACE %1", localize "str_a3_cfgmarkers_nato_art"], l
true, // isGlobal true, // isGlobal
{[QGVAR(useAmmoHandling), _this] call EFUNC(common,cbaSettings_settingChanged)}, {[QGVAR(useAmmoHandling), _this] call EFUNC(common,cbaSettings_settingChanged)},
true // Needs mission restart true // Needs mission restart
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;

View File

@ -7,7 +7,7 @@
[0.77, 0.51, 0.08, 1], [0.77, 0.51, 0.08, 1],
false, // isGlobal false, // isGlobal
{[QGVAR(defaultNametagColor), _this] call EFUNC(common,cbaSettings_settingChanged)} {[QGVAR(defaultNametagColor), _this] call EFUNC(common,cbaSettings_settingChanged)}
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;
[ [
QGVAR(nametagColorMain), "COLOR", QGVAR(nametagColorMain), "COLOR",
@ -16,7 +16,7 @@
[1.00, 1.00, 1.00, 1], [1.00, 1.00, 1.00, 1],
false, // isGlobal false, // isGlobal
{[QGVAR(nametagColorMain), _this] call EFUNC(common,cbaSettings_settingChanged)} {[QGVAR(nametagColorMain), _this] call EFUNC(common,cbaSettings_settingChanged)}
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;
[ [
QGVAR(nametagColorRed), "COLOR", QGVAR(nametagColorRed), "COLOR",
@ -25,7 +25,7 @@
[1.00, 0.67, 0.67, 1], [1.00, 0.67, 0.67, 1],
false, // isGlobal false, // isGlobal
{[QGVAR(nametagColorRed), _this] call EFUNC(common,cbaSettings_settingChanged)} {[QGVAR(nametagColorRed), _this] call EFUNC(common,cbaSettings_settingChanged)}
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;
[ [
QGVAR(nametagColorGreen), "COLOR", QGVAR(nametagColorGreen), "COLOR",
@ -34,7 +34,7 @@
[0.67, 1.00, 0.67, 1], [0.67, 1.00, 0.67, 1],
false, // isGlobal false, // isGlobal
{[QGVAR(nametagColorGreen), _this] call EFUNC(common,cbaSettings_settingChanged)} {[QGVAR(nametagColorGreen), _this] call EFUNC(common,cbaSettings_settingChanged)}
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;
[ [
QGVAR(nametagColorBlue), "COLOR", QGVAR(nametagColorBlue), "COLOR",
@ -43,7 +43,7 @@
[0.67, 0.67, 1.00, 1], [0.67, 0.67, 1.00, 1],
false, // isGlobal false, // isGlobal
{[QGVAR(nametagColorBlue), _this] call EFUNC(common,cbaSettings_settingChanged)} {[QGVAR(nametagColorBlue), _this] call EFUNC(common,cbaSettings_settingChanged)}
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;
[ [
QGVAR(nametagColorYellow), QGVAR(nametagColorYellow),
@ -53,4 +53,4 @@
[1.00, 1.00, 0.67, 1], [1.00, 1.00, 0.67, 1],
false, // isGlobal false, // isGlobal
{[QGVAR(nametagColorYellow), _this] call EFUNC(common,cbaSettings_settingChanged)} {[QGVAR(nametagColorYellow), _this] call EFUNC(common,cbaSettings_settingChanged)}
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;

View File

@ -44,14 +44,14 @@
}; };
}; };
} }
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;
[ [
QGVAR(fogScaling), "SLIDER", QGVAR(fogScaling), "SLIDER",
[LSTRING(fogScaling_DisplayName), LSTRING(fogScaling_Description)], [LSTRING(fogScaling_DisplayName), LSTRING(fogScaling_Description)],
localize LSTRING(Category), localize LSTRING(Category),
[0,2,1,1], // [min, max, default value, trailing decimals (-1 for whole numbers only)] [0,2,1,1], // [min, max, default value, trailing decimals (-1 for whole numbers only)]
true // isGlobal true // isGlobal
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;
[ [
QGVAR(noiseScaling), "SLIDER", QGVAR(noiseScaling), "SLIDER",
@ -59,7 +59,7 @@
localize LSTRING(Category), localize LSTRING(Category),
[0,2,1,1], // [min, max, default value, trailing decimals (-1 for whole numbers only)] [0,2,1,1], // [min, max, default value, trailing decimals (-1 for whole numbers only)]
true // isGlobal true // isGlobal
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;
[ [
QGVAR(aimDownSightsBlur), "SLIDER", QGVAR(aimDownSightsBlur), "SLIDER",
@ -67,7 +67,7 @@
localize LSTRING(Category), localize LSTRING(Category),
[0,2,1,1], // [min, max, default value, trailing decimals (-1 for whole numbers only)] [0,2,1,1], // [min, max, default value, trailing decimals (-1 for whole numbers only)]
true // isGlobal true // isGlobal
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;
[ [
QGVAR(disableNVGsWithSights), "CHECKBOX", QGVAR(disableNVGsWithSights), "CHECKBOX",
@ -75,7 +75,7 @@
localize LSTRING(Category), localize LSTRING(Category),
false, // default value false, // default value
true // isGlobal true // isGlobal
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;
[ [
QGVAR(shutterEffects), "CHECKBOX", QGVAR(shutterEffects), "CHECKBOX",
@ -83,4 +83,4 @@
localize LSTRING(Category), localize LSTRING(Category),
true, // default value true, // default value
false // isGlobal false // isGlobal
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;

View File

@ -36,4 +36,4 @@ if (hasInterface) then {
[ACE_player, "isPlayer"] call EFUNC(common,unmuteUnit); [ACE_player, "isPlayer"] call EFUNC(common,unmuteUnit);
}; };
}, true // Needs mission restart }, true // Needs mission restart
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;

View File

@ -16,6 +16,6 @@ PREP_RECOMPILE_END;
true, true,
false, false,
{[QGVAR(hideAltimeter), _this, false] call EFUNC(common,cbaSettings_settingChanged)} {[QGVAR(hideAltimeter), _this, false] call EFUNC(common,cbaSettings_settingChanged)}
] call cba_settings_fnc_init; ] call CBA_fnc_addSetting;
ADDON = true; ADDON = true;

View File

@ -5,7 +5,7 @@
LSTRING(Category_Pylons), LSTRING(Category_Pylons),
[true], [true],
true true
] call CBA_Settings_fnc_init; ] call CBA_fnc_addSetting;
[ [
QGVAR(enabledForZeus), QGVAR(enabledForZeus),
@ -14,7 +14,7 @@
LSTRING(Category_Pylons), LSTRING(Category_Pylons),
[true], [true],
true true
] call CBA_Settings_fnc_init; ] call CBA_fnc_addSetting;
[ [
QGVAR(rearmNewPylons), QGVAR(rearmNewPylons),
@ -23,7 +23,7 @@
LSTRING(Category_Pylons), LSTRING(Category_Pylons),
[false], [false],
true true
] call CBA_Settings_fnc_init; ] call CBA_fnc_addSetting;
[ [
QGVAR(requireEngineer), QGVAR(requireEngineer),
@ -32,7 +32,7 @@
LSTRING(Category_Pylons), LSTRING(Category_Pylons),
[false], [false],
true true
] call CBA_Settings_fnc_init; ] call CBA_fnc_addSetting;
[ [
QGVAR(requireToolkit), QGVAR(requireToolkit),
@ -41,7 +41,7 @@
LSTRING(Category_Pylons), LSTRING(Category_Pylons),
[true], [true],
true true
] call CBA_Settings_fnc_init; ] call CBA_fnc_addSetting;
[ [
QGVAR(searchDistance), QGVAR(searchDistance),
@ -54,7 +54,7 @@
params ["_searchDistance"]; params ["_searchDistance"];
GVAR(searchDistanceSqr) = _searchDistance ^ 2; GVAR(searchDistanceSqr) = _searchDistance ^ 2;
} }
] call CBA_Settings_fnc_init; ] call CBA_fnc_addSetting;
[ [
QGVAR(timePerPylon), QGVAR(timePerPylon),
@ -63,4 +63,4 @@
LSTRING(Category_Pylons), LSTRING(Category_Pylons),
[1, 10, 5, 0], [1, 10, 5, 0],
true true
] call CBA_Settings_fnc_init; ] call CBA_fnc_addSetting;

View File

@ -5,7 +5,7 @@
format ["ACE %1", LLSTRING(Category)], format ["ACE %1", LLSTRING(Category)],
true, true,
true true
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;
[ [
QGVAR(distance), QGVAR(distance),
@ -14,7 +14,7 @@
format ["ACE %1", LLSTRING(Category)], format ["ACE %1", LLSTRING(Category)],
[0, 10, DEFAULT_DISTANCE, 0], [0, 10, DEFAULT_DISTANCE, 0],
true true
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;
[ [
QGVAR(speed), QGVAR(speed),
@ -23,7 +23,7 @@
format ["ACE %1", LLSTRING(Category)], format ["ACE %1", LLSTRING(Category)],
[0, 30, DEFAULT_SPEED, 0], [0, 30, DEFAULT_SPEED, 0],
true true
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;
[ [
QGVAR(priority), QGVAR(priority),
@ -32,7 +32,7 @@
format ["ACE %1", LLSTRING(Category)], format ["ACE %1", LLSTRING(Category)],
[[0, 1, 2, 3], ["str_getin_pos_driver", "str_getin_pos_gunn", "str_getin_pos_comm", "str_getin_pos_passenger"], DEFAULT_PRIORITY], [[0, 1, 2, 3], ["str_getin_pos_driver", "str_getin_pos_gunn", "str_getin_pos_comm", "str_getin_pos_passenger"], DEFAULT_PRIORITY],
false false
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;
[ [
QGVAR(enableMenu), QGVAR(enableMenu),
@ -49,4 +49,4 @@
], ],
3 3
] ]
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;

View File

@ -7,7 +7,7 @@
[[0,1,2],[LSTRING(RearmSettings_vehicle), LSTRING(RearmSettings_magazine), LSTRING(RearmSettings_caliber)],0], // [values, titles, defaultIndex] [[0,1,2],[LSTRING(RearmSettings_vehicle), LSTRING(RearmSettings_magazine), LSTRING(RearmSettings_caliber)],0], // [values, titles, defaultIndex]
true, // isGlobal true, // isGlobal
{[QGVAR(level), _this] call EFUNC(common,cbaSettings_settingChanged)} {[QGVAR(level), _this] call EFUNC(common,cbaSettings_settingChanged)}
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;
[ [
QGVAR(supply), "LIST", QGVAR(supply), "LIST",
@ -16,7 +16,7 @@
[[0,1,2],[LSTRING(RearmSettings_unlimited), LSTRING(RearmSettings_limited), LSTRING(RearmSettings_magazineSupply)],0], // [values, titles, defaultIndex] [[0,1,2],[LSTRING(RearmSettings_unlimited), LSTRING(RearmSettings_limited), LSTRING(RearmSettings_magazineSupply)],0], // [values, titles, defaultIndex]
true, // isGlobal true, // isGlobal
{[QGVAR(supply), _this] call EFUNC(common,cbaSettings_settingChanged)} {[QGVAR(supply), _this] call EFUNC(common,cbaSettings_settingChanged)}
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;
[ [
QGVAR(distance), "SLIDER", QGVAR(distance), "SLIDER",
@ -25,4 +25,4 @@
[10, 50, 20, 0], [10, 50, 20, 0],
true, // isGlobal true, // isGlobal
{[QGVAR(supply), _this] call EFUNC(common,cbaSettings_settingChanged)} {[QGVAR(supply), _this] call EFUNC(common,cbaSettings_settingChanged)}
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;

View File

@ -7,7 +7,7 @@
[0,25,1,1], // [min, max, default value, trailing decimals (-1 for whole numbers only)] [0,25,1,1], // [min, max, default value, trailing decimals (-1 for whole numbers only)]
true, // isGlobal true, // isGlobal
{[QGVAR(rate), _this] call EFUNC(common,cbaSettings_settingChanged)} {[QGVAR(rate), _this] call EFUNC(common,cbaSettings_settingChanged)}
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;
[ [
QGVAR(hoseLength), "SLIDER", QGVAR(hoseLength), "SLIDER",
@ -16,4 +16,4 @@
[0,50,12,1], // [min, max, default value, trailing decimals (-1 for whole numbers only)] [0,50,12,1], // [min, max, default value, trailing decimals (-1 for whole numbers only)]
true, // isGlobal true, // isGlobal
{[QGVAR(hoseLength), _this] call EFUNC(common,cbaSettings_settingChanged)} {[QGVAR(hoseLength), _this] call EFUNC(common,cbaSettings_settingChanged)}
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;

View File

@ -5,7 +5,7 @@
true, // default value true, // default value
false, // isGlobal false, // isGlobal
{[QGVAR(displayTextOnRepair), _this] call EFUNC(common,cbaSettings_settingChanged)} {[QGVAR(displayTextOnRepair), _this] call EFUNC(common,cbaSettings_settingChanged)}
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;
[ [
QGVAR(engineerSetting_repair), "LIST", QGVAR(engineerSetting_repair), "LIST",
@ -14,7 +14,7 @@
[[0,1,2],[LSTRING(engineerSetting_anyone), LSTRING(engineerSetting_EngineerOnly), LSTRING(engineerSetting_AdvancedOnly)],1], // [values, titles, defaultIndex] [[0,1,2],[LSTRING(engineerSetting_anyone), LSTRING(engineerSetting_EngineerOnly), LSTRING(engineerSetting_AdvancedOnly)],1], // [values, titles, defaultIndex]
true, // isGlobal true, // isGlobal
{[QGVAR(engineerSetting_repair), _this] call EFUNC(common,cbaSettings_settingChanged)} {[QGVAR(engineerSetting_repair), _this] call EFUNC(common,cbaSettings_settingChanged)}
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;
[ [
QGVAR(engineerSetting_wheel), "LIST", QGVAR(engineerSetting_wheel), "LIST",
@ -23,7 +23,7 @@
[[0,1,2],[LSTRING(engineerSetting_anyone), LSTRING(engineerSetting_EngineerOnly), LSTRING(engineerSetting_AdvancedOnly)],0], // [values, titles, defaultIndex] [[0,1,2],[LSTRING(engineerSetting_anyone), LSTRING(engineerSetting_EngineerOnly), LSTRING(engineerSetting_AdvancedOnly)],0], // [values, titles, defaultIndex]
true, // isGlobal true, // isGlobal
{[QGVAR(engineerSetting_wheel), _this] call EFUNC(common,cbaSettings_settingChanged)} {[QGVAR(engineerSetting_wheel), _this] call EFUNC(common,cbaSettings_settingChanged)}
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;
[ [
QGVAR(repairDamageThreshold), "SLIDER", QGVAR(repairDamageThreshold), "SLIDER",
@ -32,7 +32,7 @@
[0,1,0.6,2], // [min, max, default value, trailing decimals (-1 for whole numbers only)] [0,1,0.6,2], // [min, max, default value, trailing decimals (-1 for whole numbers only)]
true, // isGlobal true, // isGlobal
{[QGVAR(repairDamageThreshold), _this] call EFUNC(common,cbaSettings_settingChanged)} {[QGVAR(repairDamageThreshold), _this] call EFUNC(common,cbaSettings_settingChanged)}
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;
[ [
QGVAR(repairDamageThreshold_engineer), "SLIDER", QGVAR(repairDamageThreshold_engineer), "SLIDER",
@ -41,7 +41,7 @@
[0,1,0.4,2], // [min, max, default value, trailing decimals (-1 for whole numbers only)] [0,1,0.4,2], // [min, max, default value, trailing decimals (-1 for whole numbers only)]
true, // isGlobal true, // isGlobal
{[QGVAR(repairDamageThreshold_engineer), _this] call EFUNC(common,cbaSettings_settingChanged)} {[QGVAR(repairDamageThreshold_engineer), _this] call EFUNC(common,cbaSettings_settingChanged)}
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;
[ [
QGVAR(consumeItem_toolKit), "LIST", // fnc_repair expects number QGVAR(consumeItem_toolKit), "LIST", // fnc_repair expects number
@ -50,7 +50,7 @@
[[0,1],[ELSTRING(common,No), ELSTRING(common,Yes)],0], // [values, titles, defaultIndex] [[0,1],[ELSTRING(common,No), ELSTRING(common,Yes)],0], // [values, titles, defaultIndex]
true, // isGlobal true, // isGlobal
{[QGVAR(consumeItem_toolKit), _this] call EFUNC(common,cbaSettings_settingChanged)} {[QGVAR(consumeItem_toolKit), _this] call EFUNC(common,cbaSettings_settingChanged)}
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;
[ [
QGVAR(fullRepairLocation), "LIST", QGVAR(fullRepairLocation), "LIST",
@ -59,7 +59,7 @@
[[0,1,2,3,4],[LSTRING(useAnywhere), LSTRING(repairVehicleOnly), LSTRING(repairFacilityOnly), LSTRING(vehicleAndFacility), ELSTRING(common,Disabled)],2], // [values, titles, defaultIndex] [[0,1,2,3,4],[LSTRING(useAnywhere), LSTRING(repairVehicleOnly), LSTRING(repairFacilityOnly), LSTRING(vehicleAndFacility), ELSTRING(common,Disabled)],2], // [values, titles, defaultIndex]
true, // isGlobal true, // isGlobal
{[QGVAR(fullRepairLocation), _this] call EFUNC(common,cbaSettings_settingChanged)} {[QGVAR(fullRepairLocation), _this] call EFUNC(common,cbaSettings_settingChanged)}
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;
[ [
QGVAR(engineerSetting_fullRepair), "LIST", QGVAR(engineerSetting_fullRepair), "LIST",
@ -68,7 +68,7 @@
[[0,1,2],[LSTRING(engineerSetting_anyone), LSTRING(engineerSetting_EngineerOnly), LSTRING(engineerSetting_AdvancedOnly)],2], // [values, titles, defaultIndex] [[0,1,2],[LSTRING(engineerSetting_anyone), LSTRING(engineerSetting_EngineerOnly), LSTRING(engineerSetting_AdvancedOnly)],2], // [values, titles, defaultIndex]
true, // isGlobal true, // isGlobal
{[QGVAR(engineerSetting_fullRepair), _this] call EFUNC(common,cbaSettings_settingChanged)} {[QGVAR(engineerSetting_fullRepair), _this] call EFUNC(common,cbaSettings_settingChanged)}
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;
[ [
QGVAR(addSpareParts), "CHECKBOX", QGVAR(addSpareParts), "CHECKBOX",
@ -78,7 +78,7 @@
true, // isGlobal true, // isGlobal
{[QGVAR(addSpareParts), _this] call EFUNC(common,cbaSettings_settingChanged)}, {[QGVAR(addSpareParts), _this] call EFUNC(common,cbaSettings_settingChanged)},
true // Needs mission restart true // Needs mission restart
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;
[ [
QGVAR(wheelRepairRequiredItems), QGVAR(wheelRepairRequiredItems),
@ -87,7 +87,7 @@
[localize ELSTRING(OptionsMenu,CategoryLogistics), localize "str_state_repair"], [localize ELSTRING(OptionsMenu,CategoryLogistics), localize "str_state_repair"],
[[[], ["ToolKit"]], ["STR_A3_None", "STR_A3_CfgWeapons_Toolkit0"], 0], [[[], ["ToolKit"]], ["STR_A3_None", "STR_A3_CfgWeapons_Toolkit0"], 0],
true true
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;
[ [
QGVAR(miscRepairRequiredItems), QGVAR(miscRepairRequiredItems),
@ -96,7 +96,7 @@
[localize ELSTRING(OptionsMenu,CategoryLogistics), localize "str_state_repair"], [localize ELSTRING(OptionsMenu,CategoryLogistics), localize "str_state_repair"],
[[[], ["ToolKit"]], ["STR_A3_None", "STR_A3_CfgWeapons_Toolkit0"], 1], [[[], ["ToolKit"]], ["STR_A3_None", "STR_A3_CfgWeapons_Toolkit0"], 1],
true true
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;
[ [
QGVAR(fullRepairRequiredItems), QGVAR(fullRepairRequiredItems),
@ -105,7 +105,7 @@
[localize ELSTRING(OptionsMenu,CategoryLogistics), localize "str_state_repair"], [localize ELSTRING(OptionsMenu,CategoryLogistics), localize "str_state_repair"],
[[[], ["ToolKit"]], ["STR_A3_None", "STR_A3_CfgWeapons_Toolkit0"], 1], [[[], ["ToolKit"]], ["STR_A3_None", "STR_A3_CfgWeapons_Toolkit0"], 1],
true true
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;
[ [
QGVAR(autoShutOffEngineWhenStartingRepair), "CHECKBOX", QGVAR(autoShutOffEngineWhenStartingRepair), "CHECKBOX",
@ -114,4 +114,4 @@
false, // default value false, // default value
true, // isGlobal true, // isGlobal
{[QGVAR(autoShutOffEngineWhenStartingRepair), _this] call EFUNC(common,cbaSettings_settingChanged)} {[QGVAR(autoShutOffEngineWhenStartingRepair), _this] call EFUNC(common,cbaSettings_settingChanged)}
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;

View File

@ -5,7 +5,7 @@
LSTRING(Settings_DisplayName), LSTRING(Settings_DisplayName),
false, false,
true true
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;
[ [
QGVAR(restrictModes), QGVAR(restrictModes),
@ -16,7 +16,7 @@
true, true,
{}, {},
true true
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;
[ [
QGVAR(restrictVisions), QGVAR(restrictVisions),
@ -27,7 +27,7 @@
true, true,
{}, {},
true true
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;
[ [
QGVAR(maxFollowDistance), QGVAR(maxFollowDistance),
@ -36,4 +36,4 @@
LSTRING(Settings_DisplayName), LSTRING(Settings_DisplayName),
[5, 25, 5, 1], [5, 25, 5, 1],
false false
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;

View File

@ -6,4 +6,4 @@
false, // isGlobal false, // isGlobal
{[QGVAR(quickTag), _this] call EFUNC(common,cbaSettings_settingChanged)}, {[QGVAR(quickTag), _this] call EFUNC(common,cbaSettings_settingChanged)},
false // Needs mission restart false // Needs mission restart
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;

View File

@ -7,7 +7,7 @@
[-1,60,10,1], // [min, max, default value, trailing decimals (-1 for whole numbers only)] [-1,60,10,1], // [min, max, default value, trailing decimals (-1 for whole numbers only)]
true, // isGlobal true, // isGlobal
{[QGVAR(defaultLockpickStrength), _this] call EFUNC(common,cbaSettings_settingChanged)} {[QGVAR(defaultLockpickStrength), _this] call EFUNC(common,cbaSettings_settingChanged)}
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;
[ [
QGVAR(lockVehicleInventory), "CHECKBOX", QGVAR(lockVehicleInventory), "CHECKBOX",
@ -17,7 +17,7 @@
true, // isGlobal true, // isGlobal
{[QGVAR(lockVehicleInventory), _this] call EFUNC(common,cbaSettings_settingChanged)}, {[QGVAR(lockVehicleInventory), _this] call EFUNC(common,cbaSettings_settingChanged)},
true // Needs mission restart true // Needs mission restart
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;
[ [
QGVAR(vehicleStartingLockState), "LIST", QGVAR(vehicleStartingLockState), "LIST",
@ -27,4 +27,4 @@
true, // isGlobal true, // isGlobal
{[QGVAR(vehicleStartingLockState), _this] call EFUNC(common,cbaSettings_settingChanged)}, {[QGVAR(vehicleStartingLockState), _this] call EFUNC(common,cbaSettings_settingChanged)},
true // Needs mission restart true // Needs mission restart
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;

View File

@ -5,4 +5,4 @@
localize ELSTRING(common,ACEKeybindCategoryWeapons), localize ELSTRING(common,ACEKeybindCategoryWeapons),
true, // default value true, // default value
false, // isGlobal false, // isGlobal
{[QGVAR(displayText), _this] call EFUNC(common,cbaSettings_settingChanged)}] call CBA_settings_fnc_init; {[QGVAR(displayText), _this] call EFUNC(common,cbaSettings_settingChanged)}] call CBA_fnc_addSetting;

View File

@ -8,7 +8,7 @@ private _category = [format ["ACE %1", LLSTRING(Module_DisplayName)]];
true, // isGlobal true, // isGlobal
{[QGVAR(enabled), _this] call EFUNC(common,cbaSettings_settingChanged)}, {[QGVAR(enabled), _this] call EFUNC(common,cbaSettings_settingChanged)},
true // Needs mission restart true // Needs mission restart
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;
[ [
QGVAR(updateInterval), "SLIDER", QGVAR(updateInterval), "SLIDER",
@ -18,7 +18,7 @@ private _category = [format ["ACE %1", LLSTRING(Module_DisplayName)]];
true, // isGlobal true, // isGlobal
{[QGVAR(updateInterval), _this] call EFUNC(common,cbaSettings_settingChanged)}, {[QGVAR(updateInterval), _this] call EFUNC(common,cbaSettings_settingChanged)},
true // Needs mission restart true // Needs mission restart
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;
[ [
QGVAR(windSimulation), "CHECKBOX", QGVAR(windSimulation), "CHECKBOX",
@ -28,7 +28,7 @@ private _category = [format ["ACE %1", LLSTRING(Module_DisplayName)]];
true, // isGlobal true, // isGlobal
{[QGVAR(windSimulation), _this] call EFUNC(common,cbaSettings_settingChanged)}, {[QGVAR(windSimulation), _this] call EFUNC(common,cbaSettings_settingChanged)},
true // Needs mission restart true // Needs mission restart
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;
[ [
QGVAR(showCheckAirTemperature), "CHECKBOX", QGVAR(showCheckAirTemperature), "CHECKBOX",
@ -36,4 +36,4 @@ private _category = [format ["ACE %1", LLSTRING(Module_DisplayName)]];
_category, _category,
true, // default value true, // default value
false // isGlobal false // isGlobal
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;

View File

@ -19,4 +19,4 @@
0 0
], ],
true true
] call CBA_settings_fnc_init; ] call CBA_fnc_addSetting;