+ minor song and chal wheel change
This commit is contained in:
parent
54357e2d02
commit
29cd2e3aa2
|
@ -140,7 +140,7 @@ check_or_create_cache = function(song, full)
|
||||||
not songCache[song.id]["percent"] or
|
not songCache[song.id]["percent"] or
|
||||||
not songCache[song.id]["percent_value"] or
|
not songCache[song.id]["percent_value"] or
|
||||||
songCache[song.id]["percent_value"] ~= song.bestScore) then
|
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
|
songCache[song.id]["percent_value"] = song.bestScore
|
||||||
end
|
end
|
||||||
if full then
|
if full then
|
||||||
|
@ -152,14 +152,14 @@ check_or_create_cache = function(song, full)
|
||||||
songCache[song.id]["jackets"] = jackets
|
songCache[song.id]["jackets"] = jackets
|
||||||
end
|
end
|
||||||
if not songCache[song.id]["desc"] then
|
if not songCache[song.id]["desc"] then
|
||||||
local desc = "Charts:\n"
|
local desc = "\n"
|
||||||
for _, chart in ipairs(song.charts) do
|
for _, chart in ipairs(song.charts) do
|
||||||
desc = desc .. " " .. chart.title .. "\n"
|
desc = desc .. " " .. chart.title .. "\n"
|
||||||
end
|
end
|
||||||
if song.missing_chart then
|
if song.missing_chart then
|
||||||
desc = desc .. " *COULD NOT FIND ALL CHARTS!*\n"
|
desc = desc .. " *COULD NOT FIND ALL CHARTS!*\n"
|
||||||
end
|
end
|
||||||
desc = desc .. "\nGoal:\n" .. song.requirement_text
|
desc = desc .. "\n\n" .. song.requirement_text
|
||||||
songCache[song.id]["desc"] = gfx.CreateLabel(desc, 20, 0)
|
songCache[song.id]["desc"] = gfx.CreateLabel(desc, 20, 0)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -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.TextAlign(gfx.TEXT_ALIGN_LEFT + gfx.TEXT_ALIGN_MIDDLE)
|
||||||
gfx.BeginPath();
|
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
|
end
|
||||||
|
|
||||||
gfx.FontSize(22)
|
gfx.FontSize(22)
|
||||||
|
|
Loading…
Reference in New Issue