* test out drawing multiple songs
This commit is contained in:
parent
f9d34d4f7f
commit
a7fef7687f
|
@ -79,7 +79,7 @@ function drawSong(song, y)
|
||||||
|
|
||||||
-- Draw the bg for the song plate
|
-- Draw the bg for the song plate
|
||||||
gfx.BeginPath()
|
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
|
-- Draw jacket
|
||||||
local jacketImage = getJacketImage(song);
|
local jacketImage = getJacketImage(song);
|
||||||
|
@ -88,11 +88,11 @@ function drawSong(song, y)
|
||||||
|
|
||||||
-- Draw the overlay for the song plate (that bottom black bar)
|
-- Draw the overlay for the song plate (that bottom black bar)
|
||||||
gfx.BeginPath()
|
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
|
-- Draw the difficulty notch background
|
||||||
gfx.BeginPath()
|
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
|
-- Draw the difficulty level number
|
||||||
gfx.BeginPath()
|
gfx.BeginPath()
|
||||||
|
@ -101,7 +101,11 @@ function drawSong(song, y)
|
||||||
end
|
end
|
||||||
|
|
||||||
function drawSongList()
|
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
|
end
|
||||||
|
|
||||||
render = function (deltaTime)
|
render = function (deltaTime)
|
||||||
|
|
Loading…
Reference in New Issue