/ bars not being effected by enter transition alpha
This commit is contained in:
parent
73bd0e8a85
commit
2285f1fd69
|
@ -65,12 +65,14 @@ end
|
||||||
function drawTimingBar(y, value, max, type)
|
function drawTimingBar(y, value, max, type)
|
||||||
gfx.BeginPath();
|
gfx.BeginPath();
|
||||||
|
|
||||||
|
local barAlpha = math.floor(Easing.outQuad(transitionEnterScale)*255)
|
||||||
|
|
||||||
if type == 'crit' then
|
if type == 'crit' then
|
||||||
gfx.FillColor(253,243,24,255);
|
gfx.FillColor(253,243,24,barAlpha);
|
||||||
elseif type == 'early' then
|
elseif type == 'early' then
|
||||||
gfx.FillColor(215,48,182,255);
|
gfx.FillColor(215,48,182,barAlpha);
|
||||||
elseif type == 'late' then
|
elseif type == 'late' then
|
||||||
gfx.FillColor(46,211,241,255);
|
gfx.FillColor(46,211,241,barAlpha);
|
||||||
end
|
end
|
||||||
|
|
||||||
gfx.Rect(rightPanelX+696,rightPanelY+y,293*(value/max), 8);
|
gfx.Rect(rightPanelX+696,rightPanelY+y,293*(value/max), 8);
|
||||||
|
@ -189,7 +191,7 @@ end
|
||||||
local tickTransitions = function(deltaTime)
|
local tickTransitions = function(deltaTime)
|
||||||
|
|
||||||
if transitionEnterScale < 1 then
|
if transitionEnterScale < 1 then
|
||||||
transitionEnterScale = transitionEnterScale + deltaTime / 1 -- transition should last for 1s
|
transitionEnterScale = transitionEnterScale + deltaTime / 10 -- transition should last for 1s
|
||||||
else
|
else
|
||||||
transitionEnterScale = 1
|
transitionEnterScale = 1
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue