From 3b82c7797ee431e3fcaf55aa0d12a532abfc5878 Mon Sep 17 00:00:00 2001 From: yugecin Date: Sat, 14 Apr 2018 20:29:37 +0200 Subject: [PATCH] don't draw grades when the player missed --- src/yugecin/opsudance/ReplayPlayback.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/yugecin/opsudance/ReplayPlayback.java b/src/yugecin/opsudance/ReplayPlayback.java index 8952a391..90298a68 100644 --- a/src/yugecin/opsudance/ReplayPlayback.java +++ b/src/yugecin/opsudance/ReplayPlayback.java @@ -254,18 +254,17 @@ public class ReplayPlayback { hitImage = GameData.hitResults[GameData.HIT_MISS].getScaledCopy(SQSIZE + 5, SQSIZE + 5); } } - Color fadecolor = new Color(1f, 1f, 1f, color.a); int xpos = SQSIZE * (HIDEMOUSEBTNS ? 3 : 5); Fonts.SMALLBOLD.drawString(xpos + ACCMAXWIDTH - currentAccWidth - 10, ypos, currentAcc, new Color(.4f, .4f, .4f, color.a)); xpos += ACCMAXWIDTH; - if (gradeImage != null) { - gradeImage.draw(xpos, ypos, fadecolor); + if (!missed && gradeImage != null) { + gradeImage.draw(xpos, ypos); } xpos += SQSIZE + 10; Fonts.SMALLBOLD.drawString(xpos, ypos, this.player, color); xpos += playerwidth; if (!this.mods.isEmpty()) { - Fonts.SMALLBOLD.drawString(xpos, ypos, this.mods, fadecolor); + Fonts.SMALLBOLD.drawString(xpos, ypos, this.mods, new Color(1f, 1f, 1f, color.a)); xpos += modwidth; } xpos += 10;