diff --git a/scripts/result.lua b/scripts/result.lua index e91c95c..948c793 100644 --- a/scripts/result.lua +++ b/scripts/result.lua @@ -34,6 +34,15 @@ local gradeImages = { D = gfx.CreateSkinImage("score/D.png", 0), } +local gaugeTypeBadgeImages = { + gfx.CreateSkinImage("result/gauge_type_badges/effective.png", 0), + gfx.CreateSkinImage("result/gauge_type_badges/excessive.png", 0), + gfx.CreateSkinImage("result/gauge_type_badges/effective.png", 0), + gfx.CreateSkinImage("result/gauge_type_badges/effective.png", 0), + gfx.CreateSkinImage("result/gauge_type_badges/effective.png", 0), + gfx.CreateSkinImage("result/gauge_type_badges/effective.png", 0), +} + local difficultyLabelImages = { gfx.CreateSkinImage("diff/1 novice.png", 0), gfx.CreateSkinImage("diff/2 advanced.png", 0), @@ -220,7 +229,12 @@ local drawRightPanelContent = function() gfx.Text(string.format("%08d", highScoreScore), rightPanelX + 962, rightPanelY + 239); gfx.Text(deltaPrefix .. string.format("%08d", highScoreDelta), rightPanelX + 962, rightPanelY + 259); - -- Draw gauge status + + -- Draw gauge type badge + gfx.BeginPath(); + gfx.ImageRect(rightPanelX+722, rightPanelY+273, 211, 40, gaugeTypeBadgeImages[result.gauge_type + 1], 1, 0); + + -- Draw gauge % gfx.FontSize(24) gfx.Text(math.floor(result.gauge * 100) .. '%', rightPanelX + 984, rightPanelY + 295); diff --git a/textures/result/gauge_type_badges/effective.png b/textures/result/gauge_type_badges/effective.png new file mode 100644 index 0000000..7a3235b Binary files /dev/null and b/textures/result/gauge_type_badges/effective.png differ diff --git a/textures/result/gauge_type_badges/excessive.png b/textures/result/gauge_type_badges/excessive.png new file mode 100644 index 0000000..1e4f847 Binary files /dev/null and b/textures/result/gauge_type_badges/excessive.png differ