fix special difficulty boxes within result and gameplay screens

This commit is contained in:
Kyle Humphrey 2022-03-24 23:02:54 -05:00
parent c76e174b58
commit 0e93e60aea
2 changed files with 5 additions and 5 deletions

View File

@ -98,7 +98,8 @@ local render = function (deltaTime, bpm, laneSpeed, jacketPath, diff, level, pro
); );
-- Draw diff rectangle -- Draw diff rectangle
DiffRectangle.render(deltaTime, 31, y+140, 0.84, diff, level); local adjustedDiff = GetDisplayDifficulty(gameplay.jacketPath, diff)
DiffRectangle.render(deltaTime, 31, y+140, 0.84, adjustedDiff, level);
gfx.FontSize(30); gfx.FontSize(30);
gfx.TextAlign(gfx.TEXT_ALIGN_LEFT + gfx.TEXT_ALIGN_MIDDLE) gfx.TextAlign(gfx.TEXT_ALIGN_LEFT + gfx.TEXT_ALIGN_MIDDLE)

View File

@ -527,10 +527,9 @@ end
local drawJacketPanelContent = function(deltaTime) local drawJacketPanelContent = function(deltaTime)
gfx.BeginPath(); gfx.BeginPath();
gfx.ImageRect(jacketPanelX + 13, jacketPanelY + 28, 265, 265, gfx.ImageRect(jacketPanelX + 13, jacketPanelY + 28, 265, 265, jacketImage or defaultJacketImage, 1, 0);
jacketImage or defaultJacketImage, 1, 0); local adjustedDiff = GetDisplayDifficulty(result.jacketPath, result.difficulty)
DiffRectangle.render(deltaTime, jacketPanelX+183, jacketPanelY+2.5, 0.67, adjustedDiff, result.level);
DiffRectangle.render(deltaTime, jacketPanelX+183, jacketPanelY+2.5, 0.67, result.difficulty, result.level);
-- gfx.BeginPath(); -- gfx.BeginPath();
-- gfx.ImageRect(jacketPanelX + 183, jacketPanelY + 2.5, 140 / 1.5, 31 / 1.5, -- gfx.ImageRect(jacketPanelX + 183, jacketPanelY + 2.5, 140 / 1.5, 31 / 1.5,