new cursor override: use next object's colors (close #43)
This commit is contained in:
parent
3cbc02c253
commit
63144426d1
|
@ -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)
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user