From 21bf2d3fccd86f7365533a78302639595571a37d Mon Sep 17 00:00:00 2001 From: FajsiEx Date: Wed, 11 Aug 2021 20:00:35 +0200 Subject: [PATCH] / laser animation going above the effected and illustrated by bgs --- scripts/songselect/songwheel.lua | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/scripts/songselect/songwheel.lua b/scripts/songselect/songwheel.lua index 5171577..02cdee3 100644 --- a/scripts/songselect/songwheel.lua +++ b/scripts/songselect/songwheel.lua @@ -198,6 +198,7 @@ function drawBackground(deltaTime) gfx.BeginPath() gfx.ImageRect(0, 0, desw, desh, backgroundImage, 1, 0) + -- If the score for song exists local song = songwheel.songs[selectedIndex]; local diff = song.difficulties[selectedDifficulty]; @@ -215,9 +216,16 @@ function drawBackground(deltaTime) gfx.ClosePath(); gfx.BeginPath(); end - + gfx.ImageRect(0, 0, desw, desh, dataPanelImage, 1, 0) + local laserAnimTickRes = gfx.TickAnimation(laserAnimation, deltaTime); + if laserAnimTickRes == 1 then + gfx.BeginPath() + gfx.ImageRect(0, 0, desw, desh, laserAnimation, 1, 0); + gfx.GlobalAlpha(1); + end + if song and diff then gfx.BeginPath() gfx.ImageRect(0, 0, desw, desh, dataGlowOverlayImage, transitionAfterscrollDataOverlayAlpha, 0) @@ -233,12 +241,6 @@ function drawBackground(deltaTime) gfx.ImageRect(95, 1195, 433, 30, illustratedBgImage, transitionAfterscrollDataOverlayAlpha, 0) end - local laserAnimTickRes = gfx.TickAnimation(laserAnimation, deltaTime); - if laserAnimTickRes == 1 then - gfx.BeginPath() - gfx.ImageRect(0, 0, desw, desh, laserAnimation, 1, 0); - gfx.GlobalAlpha(1); - end end function drawSong(song, y)