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()) {
displayContainer.drawCursor = false;
}

View File

@ -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;
}

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