Merge pull request 'fix special difficulty boxes within result and gameplay screens' (#8) from feature/TASK-6-Special-Diff-Boxes into master

Reviewed-on: #8
This commit is contained in:
Kyle Humphrey 2022-03-25 04:04:52 +00:00
commit a2446b8954
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,