+ song title to song panel
This commit is contained in:
parent
3366417abb
commit
d1694b69da
|
@ -41,7 +41,9 @@ function render(deltaTime)
|
|||
gameplay.jacketPath,
|
||||
gameplay.difficulty,
|
||||
gameplay.level,
|
||||
gameplay.progress
|
||||
gameplay.progress,
|
||||
gameplay.title,
|
||||
gameplay.artist
|
||||
);
|
||||
ScorePanel.render(deltaTime, score, maxChain)
|
||||
|
||||
|
|
|
@ -36,7 +36,7 @@ local tickTransitions = function (deltaTime)
|
|||
|
||||
end
|
||||
|
||||
local render = function (deltaTime, bpm, laneSpeed, jacketPath, diff, level, progress)
|
||||
local render = function (deltaTime, bpm, laneSpeed, jacketPath, diff, level, progress, songTitle, songArtist)
|
||||
if (not loadedJacketImage and jacketPath) then
|
||||
loadJacketImage(jacketPath)
|
||||
end
|
||||
|
@ -110,6 +110,12 @@ local render = function (deltaTime, bpm, laneSpeed, jacketPath, diff, level, pro
|
|||
1,
|
||||
0
|
||||
);
|
||||
|
||||
-- Draw song title
|
||||
|
||||
gfx.TextAlign(gfx.TEXT_ALIGN_LEFT + gfx.TEXT_ALIGN_MIDDLE)
|
||||
gfx.FontSize(22)
|
||||
gfx.Text(songTitle .. ' / ' .. songArtist, 385, 270);
|
||||
end
|
||||
|
||||
return {
|
||||
|
|
Loading…
Reference in New Issue