2016-09-04 19:33:07 +00:00
|
|
|
[
|
|
|
|
QGVAR(enabled),
|
|
|
|
"CHECKBOX",
|
|
|
|
[LSTRING(Enabled), LSTRING(Enabled_Description)],
|
2018-05-30 23:05:55 +00:00
|
|
|
LSTRING(DisplayName),
|
2016-09-04 19:33:07 +00:00
|
|
|
true,
|
2019-12-07 21:23:04 +00:00
|
|
|
true, {
|
|
|
|
if (!_this) then {
|
|
|
|
private _staminaBarContainer = uiNamespace getVariable [QGVAR(staminaBarContainer), controlNull];
|
|
|
|
_staminaBarContainer ctrlSetFade 1;
|
|
|
|
_staminaBarContainer ctrlCommit 0;
|
|
|
|
};
|
|
|
|
[QGVAR(enabled), _this] call EFUNC(common,cbaSettings_settingChanged)
|
|
|
|
},
|
2018-11-02 17:58:57 +00:00
|
|
|
true // Needs mission restart
|
2021-02-18 18:58:26 +00:00
|
|
|
] call CBA_fnc_addSetting;
|
2016-09-04 19:33:07 +00:00
|
|
|
|
|
|
|
[
|
|
|
|
QGVAR(enableStaminaBar),
|
|
|
|
"CHECKBOX",
|
|
|
|
[LSTRING(EnableStaminaBar), LSTRING(EnableStaminaBar_Description)],
|
2018-05-30 23:05:55 +00:00
|
|
|
LSTRING(DisplayName),
|
2016-09-04 19:33:07 +00:00
|
|
|
true,
|
|
|
|
true, {
|
|
|
|
if (!_this) then {
|
|
|
|
private _staminaBarContainer = uiNamespace getVariable [QGVAR(staminaBarContainer), controlNull];
|
|
|
|
_staminaBarContainer ctrlSetFade 1;
|
|
|
|
_staminaBarContainer ctrlCommit 0;
|
|
|
|
};
|
2019-12-07 21:23:04 +00:00
|
|
|
}
|
2021-02-18 18:58:26 +00:00
|
|
|
] call CBA_fnc_addSetting;
|
2019-12-07 21:23:04 +00:00
|
|
|
|
|
|
|
[
|
|
|
|
QGVAR(fadeStaminaBar),
|
|
|
|
"CHECKBOX",
|
|
|
|
[LSTRING(FadeStaminaBar), LSTRING(FadeStaminaBar_Description)],
|
|
|
|
LSTRING(DisplayName),
|
|
|
|
true,
|
|
|
|
false, {
|
|
|
|
if (!_this && GVAR(enabled) && GVAR(enableStaminaBar)) then {
|
|
|
|
private _staminaBarContainer = uiNamespace getVariable [QGVAR(staminaBarContainer), controlNull];
|
|
|
|
_staminaBarContainer ctrlSetFade 0;
|
|
|
|
_staminaBarContainer ctrlCommit 0;
|
|
|
|
};
|
2016-09-04 19:33:07 +00:00
|
|
|
}
|
2021-02-18 18:58:26 +00:00
|
|
|
] call CBA_fnc_addSetting;
|
2016-09-04 19:33:07 +00:00
|
|
|
|
|
|
|
[
|
|
|
|
QGVAR(performanceFactor),
|
|
|
|
"SLIDER",
|
|
|
|
[LSTRING(PerformanceFactor), LSTRING(PerformanceFactor_Description)],
|
2018-05-30 23:05:55 +00:00
|
|
|
LSTRING(DisplayName),
|
|
|
|
[0, 5, 1, 1],
|
2016-09-04 19:33:07 +00:00
|
|
|
true
|
2021-02-18 18:58:26 +00:00
|
|
|
] call CBA_fnc_addSetting;
|
2016-09-04 19:33:07 +00:00
|
|
|
|
|
|
|
[
|
|
|
|
QGVAR(recoveryFactor),
|
|
|
|
"SLIDER",
|
|
|
|
[LSTRING(RecoveryFactor), LSTRING(RecoveryFactor_Description)],
|
2018-05-30 23:05:55 +00:00
|
|
|
LSTRING(DisplayName),
|
|
|
|
[0, 5, 1, 1],
|
2016-09-04 19:33:07 +00:00
|
|
|
true
|
2021-02-18 18:58:26 +00:00
|
|
|
] call CBA_fnc_addSetting;
|
2016-09-04 19:33:07 +00:00
|
|
|
|
|
|
|
[
|
|
|
|
QGVAR(loadFactor),
|
|
|
|
"SLIDER",
|
|
|
|
[LSTRING(LoadFactor), LSTRING(LoadFactor_Description)],
|
2018-05-30 23:05:55 +00:00
|
|
|
LSTRING(DisplayName),
|
|
|
|
[0, 5, 1, 1],
|
2016-09-04 19:33:07 +00:00
|
|
|
true
|
2021-02-18 18:58:26 +00:00
|
|
|
] call CBA_fnc_addSetting;
|
2016-09-04 19:33:07 +00:00
|
|
|
|
|
|
|
[
|
|
|
|
QGVAR(terrainGradientFactor),
|
|
|
|
"SLIDER",
|
|
|
|
[LSTRING(TerrainGradientFactor), LSTRING(TerrainGradientFactor_Description)],
|
2018-05-30 23:05:55 +00:00
|
|
|
LSTRING(DisplayName),
|
|
|
|
[0, 5, 1, 1],
|
2016-09-04 19:33:07 +00:00
|
|
|
true
|
2021-02-18 18:58:26 +00:00
|
|
|
] call CBA_fnc_addSetting;
|