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)