mirror of
https://github.com/EpochModTeam/Epoch.git
synced 2024-08-30 18:22:13 +00:00
Changed: Replaced _scaleUI with heartbeat animations for "topRight" dynamicHUD when critical
This commit is contained in:
parent
9e66f8e03a
commit
77f3ca71ff
@ -92,8 +92,7 @@ EPOCH_currentTargetMode = _currentTargetMode;
|
||||
_forceFatigue = "forceFatigue" in _criticalAttributes;
|
||||
_forceBloodRise = "forceBloodRise" in _criticalAttributes;
|
||||
};
|
||||
|
||||
[_curCtrl,_critical] call _scaleUI;
|
||||
[_curCtrl,0.55] call epoch_2DCtrlHeartbeat;
|
||||
// todo make this reversable or even limited to a color range.
|
||||
_color = [_playerLimitMin,_playerLimitMax,_currentVarVal,1] call EPOCH_colorRange;
|
||||
_curCtrl ctrlSetTextColor _color;
|
||||
|
@ -123,23 +123,6 @@ _fadeUI = {
|
||||
};
|
||||
_bool
|
||||
};
|
||||
_scaleUI = {
|
||||
params ["_ctrl","_bool"];
|
||||
private _oemScale = _ctrl getVariable ["ctrl_scale", 1];
|
||||
private _curScale = ctrlScale _ctrl;
|
||||
if (_bool) then {
|
||||
if (_curScale isEqualTo _oemScale) then {
|
||||
[_ctrl, (_oemScale - 0.1), 0.5] call BIS_fnc_ctrlSetScale;
|
||||
} else {
|
||||
[_ctrl, _oemScale, 0.5] call BIS_fnc_ctrlSetScale;
|
||||
};
|
||||
} else {
|
||||
if !(_curScale isEqualTo _oemScale) then {
|
||||
[_ctrl, _oemScale, 0.5] call BIS_fnc_ctrlSetScale;
|
||||
};
|
||||
};
|
||||
_bool
|
||||
};
|
||||
|
||||
_cursorTarget = objNull;
|
||||
|
||||
|
@ -196,7 +196,7 @@ class CfgClientFunctions
|
||||
{
|
||||
file = "epoch_code\gui\scripts\animations";
|
||||
class 2DCtrlShake {};
|
||||
class 2DCtrlHearbeat {};
|
||||
class 2DCtrlHeartbeat {};
|
||||
};
|
||||
class config
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user