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