* make the song and artist text animation on songwheel closer to the original

This commit is contained in:
FajsiEx 2021-08-06 20:06:35 +02:00
parent ef4fd55b62
commit c8ec5935fd
1 changed files with 5 additions and 5 deletions

View File

@ -368,7 +368,7 @@ function drawData() -- Draws the song data on the left panel
-- Draw artist -- Draw artist
gfx.GlobalAlpha(transitionAfterscrollTextSongArtist); gfx.GlobalAlpha(transitionAfterscrollTextSongArtist);
gfx.Text(song.artist, 30+(1-transitionAfterscrollTextSongArtist)*20, 997); gfx.Text(song.artist, 30+(1-transitionAfterscrollTextSongArtist)*30, 997);
gfx.GlobalAlpha(1); gfx.GlobalAlpha(1);
@ -463,14 +463,14 @@ function tickTransitions(deltaTime)
end end
-- Song title alpha and pos -- Song title alpha and pos
if transitionAfterscrollScale < 0.02 then if transitionAfterscrollScale < 0.025 then
transitionAfterscrollTextSongTitle = Easing.outQuad(math.min(1, (transitionAfterscrollScale) / 0.02)); transitionAfterscrollTextSongTitle = Easing.outQuad(math.min(1, (transitionAfterscrollScale) / 0.025));
else else
transitionAfterscrollTextSongTitle = 1 transitionAfterscrollTextSongTitle = 1
end end
-- Song artist alpha and pos -- Song artist alpha and pos
if transitionAfterscrollScale < 0.03 then if transitionAfterscrollScale < 0.025 then
transitionAfterscrollTextSongArtist = Easing.outQuad(math.min(1, (transitionAfterscrollScale) / 0.03)); transitionAfterscrollTextSongArtist = Easing.outQuad(math.min(1, (transitionAfterscrollScale) / 0.025));
else else
transitionAfterscrollTextSongArtist = 1 transitionAfterscrollTextSongArtist = 1
end end