From 2285f1fd69447404dd292f87288b4b60c7363f35 Mon Sep 17 00:00:00 2001 From: FajsiEx Date: Wed, 28 Jul 2021 00:15:47 +0200 Subject: [PATCH] / bars not being effected by enter transition alpha --- scripts/result.lua | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/scripts/result.lua b/scripts/result.lua index 0c2532c..f588c71 100644 --- a/scripts/result.lua +++ b/scripts/result.lua @@ -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