fix challengewheel #11

Merged
Kuenaimaku merged 1 commits from feature/TASK-6-Special-Diff-Boxes into master 2022-03-25 06:08:20 +01:00
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
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)
gfx.TextAlign(gfx.TEXT_ALIGN_CENTER | gfx.TEXT_ALIGN_MIDDLE)