From 0e93e60aea10ec225b26c0345bc372e587539134 Mon Sep 17 00:00:00 2001 From: Kyle Humphrey Date: Thu, 24 Mar 2022 23:02:54 -0500 Subject: [PATCH] fix special difficulty boxes within result and gameplay screens --- scripts/gameplay/song_panel.lua | 3 ++- scripts/result.lua | 7 +++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/gameplay/song_panel.lua b/scripts/gameplay/song_panel.lua index a0dce49..827beb0 100644 --- a/scripts/gameplay/song_panel.lua +++ b/scripts/gameplay/song_panel.lua @@ -98,7 +98,8 @@ local render = function (deltaTime, bpm, laneSpeed, jacketPath, diff, level, pro ); -- 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.TextAlign(gfx.TEXT_ALIGN_LEFT + gfx.TEXT_ALIGN_MIDDLE) diff --git a/scripts/result.lua b/scripts/result.lua index 1424592..66a96bf 100644 --- a/scripts/result.lua +++ b/scripts/result.lua @@ -527,10 +527,9 @@ end local drawJacketPanelContent = function(deltaTime) gfx.BeginPath(); - gfx.ImageRect(jacketPanelX + 13, jacketPanelY + 28, 265, 265, - jacketImage or defaultJacketImage, 1, 0); - - DiffRectangle.render(deltaTime, jacketPanelX+183, jacketPanelY+2.5, 0.67, result.difficulty, result.level); + gfx.ImageRect(jacketPanelX + 13, jacketPanelY + 28, 265, 265, 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); -- gfx.BeginPath(); -- gfx.ImageRect(jacketPanelX + 183, jacketPanelY + 2.5, 140 / 1.5, 31 / 1.5,