diff --git a/scripts/result.lua b/scripts/result.lua index 762cfda..f7afb94 100644 --- a/scripts/result.lua +++ b/scripts/result.lua @@ -54,6 +54,15 @@ local difficultyLabelImages = { gfx.CreateSkinImage("diff/8 vivid.png", 0), } +local clearBadgeImages = { + gfx.CreateSkinImage("result/clears/CRASH.png", 0), + gfx.CreateSkinImage("result/clears/CRASH.png", 0), + gfx.CreateSkinImage("result/clears/COMPLETE.png", 0), + gfx.CreateSkinImage("result/clears/COMPLETE.png", 0), + gfx.CreateSkinImage("result/clears/UC.png", 0), + gfx.CreateSkinImage("result/clears/PUC.png", 0), +} + -- ANIMS local idolAnimation = gfx.LoadSkinAnimation('idol', 1/30, 0, false); @@ -195,6 +204,12 @@ local drawRightPanelContent = function() local highScoreDelta = result.score - highScoreScore + -- Draw clear badge + local badgeImage = clearBadgeImages[result.badge+1] or clearBadgeImages[1] + local tw, th = gfx.ImageSize(badgeImage); + gfx.BeginPath(); + gfx.ImageRect(rightPanelX+1140-tw, rightPanelY-10, tw*0.85, th*0.85, badgeImage, 1, 0); + -- Draw song name and artist gfx.FontSize(28) gfx.TextAlign(gfx.TEXT_ALIGN_LEFT + gfx.TEXT_ALIGN_MIDDLE) diff --git a/textures/result/clears/PERFECT.png b/textures/result/clears/PUC.png similarity index 100% rename from textures/result/clears/PERFECT.png rename to textures/result/clears/PUC.png diff --git a/textures/result/clears/ULTIMATE CHAIN.png b/textures/result/clears/UC.png similarity index 100% rename from textures/result/clears/ULTIMATE CHAIN.png rename to textures/result/clears/UC.png