fix challengewheel

This commit is contained in:
Kyle Humphrey 2022-03-25 00:07:39 -05:00
parent 26798bbd67
commit e77799c4c0
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)