new cursor override: use next object's colors (close #43)

This commit is contained in:
yugecin 2016-11-20 22:10:17 +01:00
parent 3cbc02c253
commit 63144426d1
3 changed files with 16 additions and 0 deletions

View File

@ -859,6 +859,9 @@ public class Game extends BasicGameState {
if ((g.isCircle() || g.isSlider()) && g.getTime() <= trackPosition) {
Cursor.lastObjColor = g.getColor();
Cursor.lastMirroredObjColor = g.getMirroredColor();
} else {
Cursor.nextObjColor = g.getColor();
Cursor.nextMirroredObjColor = g.getMirroredColor();
}
// timing points
@ -1478,6 +1481,8 @@ public class Game extends BasicGameState {
Cursor.lastObjColor = Color.white;
Cursor.lastMirroredObjColor = Color.white;
Cursor.nextObjColor = Color.white;
Cursor.nextMirroredObjColor = Color.white;
// re-hide cursor
if (GameMod.AUTO.isActive() || isReplay)

View File

@ -71,6 +71,8 @@ public class Cursor {
public static Color lastObjColor = Color.white;
public static Color lastMirroredObjColor = Color.white;
public static Color nextObjColor = Color.white;
public static Color nextMirroredObjColor = Color.white;
private boolean isMirrored;

View File

@ -62,6 +62,15 @@ public enum CursorColorOverrides {
}
return Cursor.lastObjColor;
}
},
NEXTOBJ ("Use next object's colors", 13) {
@Override
public Color getColor(boolean mirrored) {
if (mirrored) {
return Cursor.nextMirroredObjColor;
}
return Cursor.nextObjColor;
}
};
public int nr;