align names and squares, order the rainbow names again and let cursor size be 0.1x min

This commit is contained in:
yugecin 2017-03-30 01:20:17 +02:00
parent 5f334ca4cb
commit 9d9f2df5d8
3 changed files with 12 additions and 4 deletions

View File

@ -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()) { if (isReplay || GameMod.AUTO.isActive() || GameMod.AUTOPILOT.isActive()) {
displayContainer.drawCursor = false; displayContainer.drawCursor = false;
} }

View File

@ -32,8 +32,8 @@ public class ReplayPlayback {
public ReplayFrame currentFrame; public ReplayFrame currentFrame;
public ReplayFrame nextFrame; public ReplayFrame nextFrame;
private int frameIndex; private int frameIndex;
private Color color; public Color color;
private Cursor cursor; public Cursor cursor;
private int keydelay[]; private int keydelay[];
public static final int SQSIZE = 15; public static final int SQSIZE = 15;
private boolean hr; private boolean hr;
@ -111,7 +111,7 @@ public class ReplayPlayback {
ypos *= (SQSIZE + 5); ypos *= (SQSIZE + 5);
for (int i = 0; i < 4; i++) { for (int i = 0; i < 4; i++) {
if (keydelay[i] > 0) { if (keydelay[i] > 0) {
g.fillRect(SQSIZE * i, ypos, SQSIZE, SQSIZE); g.fillRect(SQSIZE * i, ypos + 5, SQSIZE, SQSIZE);
} }
keydelay[i] -= renderdelta; keydelay[i] -= renderdelta;
} }

View File

@ -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 @Override
public String getValueString () { public String getValueString () {
return String.format("%.2fx", val / 100f); return String.format("%.2fx", val / 100f);