Merge pull request 'fix challengewheel' (#11) from feature/TASK-6-Special-Diff-Boxes into master

Reviewed-on: #11
This commit is contained in:
Kyle Humphrey 2022-03-25 05:08:20 +00:00
commit c3e4eff904
1 changed files with 2 additions and 1 deletions

View File

@ -404,7 +404,8 @@ draw_challenge = function(challenge, x, y, w, h, selected)
for i, chart in ipairs(challengeCache[challenge.id]["charts"]) do for i, chart in ipairs(challengeCache[challenge.id]["charts"]) do
local ypos = offsetY + paddingY * (i - 1) local ypos = offsetY + paddingY * (i - 1)
DiffRectangle.render(timer, offsetX, ypos, diffIconScale, chart.difficulty, chart.level) local adjustedDiff = GetDisplayDifficulty(chart.jacketPath, chart.diff)
DiffRectangle.render(timer, offsetX, ypos, diffIconScale, adjustedDiff, chart.level)
local _, titleHeight = gfx.LabelSize(chart.title) local _, titleHeight = gfx.LabelSize(chart.title)
gfx.TextAlign(gfx.TEXT_ALIGN_CENTER | gfx.TEXT_ALIGN_MIDDLE) gfx.TextAlign(gfx.TEXT_ALIGN_CENTER | gfx.TEXT_ALIGN_MIDDLE)