+ minor song and chal wheel change

This commit is contained in:
RealFD 2021-10-29 16:36:35 +02:00
parent 54357e2d02
commit 29cd2e3aa2
2 changed files with 4 additions and 4 deletions

View File

@ -140,7 +140,7 @@ check_or_create_cache = function(song, full)
not songCache[song.id]["percent"] or
not songCache[song.id]["percent_value"] or
songCache[song.id]["percent_value"] ~= song.bestScore) then
songCache[song.id]["percent"] = gfx.CreateLabel(string.format("%u%% Complete", math.max(0,(song.bestScore - 8000000)//10000)), 35, 0)
songCache[song.id]["percent"] = gfx.CreateLabel(string.format("%u%%", math.max(0,(song.bestScore - 8000000)//10000)), 35, 0)
songCache[song.id]["percent_value"] = song.bestScore
end
if full then
@ -152,14 +152,14 @@ check_or_create_cache = function(song, full)
songCache[song.id]["jackets"] = jackets
end
if not songCache[song.id]["desc"] then
local desc = "Charts:\n"
local desc = "\n"
for _, chart in ipairs(song.charts) do
desc = desc .. " " .. chart.title .. "\n"
end
if song.missing_chart then
desc = desc .. " *COULD NOT FIND ALL CHARTS!*\n"
end
desc = desc .. "\nGoal:\n" .. song.requirement_text
desc = desc .. "\n\n" .. song.requirement_text
songCache[song.id]["desc"] = gfx.CreateLabel(desc, 20, 0)
end
end

View File

@ -512,7 +512,7 @@ function drawData() -- Draws the song data on the left panel
gfx.TextAlign(gfx.TEXT_ALIGN_LEFT + gfx.TEXT_ALIGN_MIDDLE)
gfx.BeginPath();
gfx.Text((diff.scores[i]) and diff.scores[i].score or "-", sbBarContentRightX, scoreBoardY + sbBarHeight/2 + i*sbBarHeight);
gfx.Text((diff.scores[i]) and diff.scores[i].score or "- - - - - - - -", sbBarContentRightX, scoreBoardY + sbBarHeight/2 + i*sbBarHeight);
end
gfx.FontSize(22)