/ bars not being effected by enter transition alpha

This commit is contained in:
FajsiEx 2021-07-28 00:15:47 +02:00
parent 73bd0e8a85
commit 2285f1fd69
1 changed files with 6 additions and 4 deletions

View File

@ -65,12 +65,14 @@ end
function drawTimingBar(y, value, max, type)
gfx.BeginPath();
local barAlpha = math.floor(Easing.outQuad(transitionEnterScale)*255)
if type == 'crit' then
gfx.FillColor(253,243,24,255);
gfx.FillColor(253,243,24,barAlpha);
elseif type == 'early' then
gfx.FillColor(215,48,182,255);
gfx.FillColor(215,48,182,barAlpha);
elseif type == 'late' then
gfx.FillColor(46,211,241,255);
gfx.FillColor(46,211,241,barAlpha);
end
gfx.Rect(rightPanelX+696,rightPanelY+y,293*(value/max), 8);
@ -189,7 +191,7 @@ end
local tickTransitions = function(deltaTime)
if transitionEnterScale < 1 then
transitionEnterScale = transitionEnterScale + deltaTime / 1 -- transition should last for 1s
transitionEnterScale = transitionEnterScale + deltaTime / 10 -- transition should last for 1s
else
transitionEnterScale = 1
end