make hide stamina setting make bar reappear when changed mid mission

This commit is contained in:
commy2 2018-09-10 15:15:59 +02:00 committed by GitHub
parent 8cd0b496ac
commit e592717c30
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14,11 +14,9 @@
LSTRING(DisplayName),
true,
true, {
if (!_this) then {
private _staminaBarContainer = uiNamespace getVariable [QGVAR(staminaBarContainer), controlNull];
_staminaBarContainer ctrlSetFade 1;
_staminaBarContainer ctrlCommit 0;
};
private _staminaBarContainer = uiNamespace getVariable [QGVAR(staminaBarContainer), controlNull];
_staminaBarContainer ctrlSetFade ([1,0] select _this);
_staminaBarContainer ctrlCommit 0;
}
] call CBA_Settings_fnc_init;