OCD fix: centered scaling for dynamic HUD critical animation.

This commit is contained in:
Raymix 2016-11-07 21:02:57 +00:00
parent 5a754420fc
commit 4cbad753af

View File

@ -119,16 +119,13 @@ _scaleUI = {
private _curScale = ctrlScale _ctrl;
if (_bool) then {
if (_curScale isEqualTo _oemScale) then {
_ctrl ctrlSetScale (_oemScale - 0.1);
_ctrl ctrlCommit 0.5;
[_ctrl, (_oemScale - 0.1), 0.5] call BIS_fnc_ctrlSetScale;
} else {
_ctrl ctrlSetScale _oemScale;
_ctrl ctrlCommit 0.5;
[_ctrl, _oemScale, 0.5] call BIS_fnc_ctrlSetScale;
};
} else {
if !(_curScale isEqualTo _oemScale) then {
_ctrl ctrlSetScale _oemScale;
_ctrl ctrlCommit 0.5;
[_ctrl, _oemScale, 0.5] call BIS_fnc_ctrlSetScale;
};
};
_bool