From 9d9f2df5d8dfea440c0d9001adf5ba9852f2a221 Mon Sep 17 00:00:00 2001 From: yugecin Date: Thu, 30 Mar 2017 01:20:17 +0200 Subject: [PATCH] align names and squares, order the rainbow names again and let cursor size be 0.1x min --- src/itdelatrisu/opsu/states/Game.java | 8 ++++++++ src/yugecin/opsudance/ReplayPlayback.java | 6 +++--- src/yugecin/opsudance/options/Options.java | 2 +- 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/src/itdelatrisu/opsu/states/Game.java b/src/itdelatrisu/opsu/states/Game.java index 95f1d244..c951e95f 100644 --- a/src/itdelatrisu/opsu/states/Game.java +++ b/src/itdelatrisu/opsu/states/Game.java @@ -1503,6 +1503,14 @@ public class Game extends ComplexOpsuState { } }); + hue = 0; + for (ReplayPlayback r : replays) { + Color c = new Color(java.awt.Color.getHSBColor((hue) / 360f, 1.0f, 1.0f).getRGB()); + r.color = c; + r.cursor = new Cursor(c); + hue += hueshift; + } + if (isReplay || GameMod.AUTO.isActive() || GameMod.AUTOPILOT.isActive()) { displayContainer.drawCursor = false; } diff --git a/src/yugecin/opsudance/ReplayPlayback.java b/src/yugecin/opsudance/ReplayPlayback.java index 4b78bf5b..58f12526 100644 --- a/src/yugecin/opsudance/ReplayPlayback.java +++ b/src/yugecin/opsudance/ReplayPlayback.java @@ -32,8 +32,8 @@ public class ReplayPlayback { public ReplayFrame currentFrame; public ReplayFrame nextFrame; private int frameIndex; - private Color color; - private Cursor cursor; + public Color color; + public Cursor cursor; private int keydelay[]; public static final int SQSIZE = 15; private boolean hr; @@ -111,7 +111,7 @@ public class ReplayPlayback { ypos *= (SQSIZE + 5); for (int i = 0; i < 4; i++) { if (keydelay[i] > 0) { - g.fillRect(SQSIZE * i, ypos, SQSIZE, SQSIZE); + g.fillRect(SQSIZE * i, ypos + 5, SQSIZE, SQSIZE); } keydelay[i] -= renderdelta; } diff --git a/src/yugecin/opsudance/options/Options.java b/src/yugecin/opsudance/options/Options.java index 32a66003..6e696d87 100644 --- a/src/yugecin/opsudance/options/Options.java +++ b/src/yugecin/opsudance/options/Options.java @@ -358,7 +358,7 @@ public class Options { } }; - public static final NumericOption OPTION_CURSOR_SIZE = new NumericOption("Size", "CursorSize", "Change the cursor scale.", 100, 50, 200) { + public static final NumericOption OPTION_CURSOR_SIZE = new NumericOption("Size", "CursorSize", "Change the cursor scale.", 100, 10, 200) { @Override public String getValueString () { return String.format("%.2fx", val / 100f);