+ song title to song panel

This commit is contained in:
FajsiEx 2021-10-28 17:40:15 +02:00
parent 3366417abb
commit d1694b69da
2 changed files with 10 additions and 2 deletions

View File

@ -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)

View File

@ -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 {