* test out drawing multiple songs

This commit is contained in:
FajsiEx 2021-07-30 16:42:01 +02:00
parent f9d34d4f7f
commit a7fef7687f
1 changed files with 8 additions and 4 deletions

View File

@ -79,7 +79,7 @@ function drawSong(song, y)
-- Draw the bg for the song plate
gfx.BeginPath()
gfx.ImageRect(songX, y, 603/1.17, 201/1.17, songPlateBg, 1, 0)
gfx.ImageRect(songX, y, 515, 172, songPlateBg, 1, 0)
-- Draw jacket
local jacketImage = getJacketImage(song);
@ -88,11 +88,11 @@ function drawSong(song, y)
-- Draw the overlay for the song plate (that bottom black bar)
gfx.BeginPath()
gfx.ImageRect(songX, y, 603/1.17, 201/1.17, songPlateBottomBarOverlayImage, 1, 0)
gfx.ImageRect(songX, y, 515, 172, songPlateBottomBarOverlayImage, 1, 0)
-- Draw the difficulty notch background
gfx.BeginPath()
gfx.ImageRect(songX, y+95, 97/1.17, 86/1.17, difficultyLabelImages[song.difficulties[selectedDifficulty].difficulty+1], 1, 0)
gfx.ImageRect(songX, y+95, 83, 74, difficultyLabelImages[song.difficulties[selectedDifficulty].difficulty+1], 1, 0)
-- Draw the difficulty level number
gfx.BeginPath()
@ -101,7 +101,11 @@ function drawSong(song, y)
end
function drawSongList()
drawSong(songwheel.songs[selectedIndex], 1200)
drawSong(songwheel.songs[selectedIndex-2], desh/2-172/2-172*2)
drawSong(songwheel.songs[selectedIndex-1], desh/2-172/2-172)
drawSong(songwheel.songs[selectedIndex], desh/2-172/2)
drawSong(songwheel.songs[selectedIndex+1], desh/2-172/2+172)
drawSong(songwheel.songs[selectedIndex+2], desh/2-172/2+172*2)
end
render = function (deltaTime)