From 29cd2e3aa2e747b88fe0653c56f72e0c00e84a9e Mon Sep 17 00:00:00 2001 From: RealFD Date: Fri, 29 Oct 2021 16:36:35 +0200 Subject: [PATCH] + minor song and chal wheel change --- scripts/songselect/chalwheel.lua | 6 +++--- scripts/songselect/songwheel.lua | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/songselect/chalwheel.lua b/scripts/songselect/chalwheel.lua index eb25ad5..9159d14 100644 --- a/scripts/songselect/chalwheel.lua +++ b/scripts/songselect/chalwheel.lua @@ -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 diff --git a/scripts/songselect/songwheel.lua b/scripts/songselect/songwheel.lua index 8fbdd45..ce75bc7 100644 --- a/scripts/songselect/songwheel.lua +++ b/scripts/songselect/songwheel.lua @@ -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)