Option to apply last object color to cursor
This commit is contained in:
@@ -271,7 +271,7 @@ public class Game extends BasicGameState {
|
||||
|
||||
public Game(int state) {
|
||||
this.state = state;
|
||||
mirrorCursor = new Cursor();
|
||||
mirrorCursor = new Cursor(true);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -876,6 +876,11 @@ public class Game extends BasicGameState {
|
||||
break;
|
||||
}
|
||||
}
|
||||
GameObject g = gameObjects[objectIndex];
|
||||
if (g.isCircle() || g.isSlider() && g.getTime() <= trackPosition) {
|
||||
Cursor.lastObjColor = g.getColor();
|
||||
Cursor.lastMirroredObjColor = g.getMirroredColor();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -1308,6 +1313,9 @@ public class Game extends BasicGameState {
|
||||
throws SlickException {
|
||||
// container.setMouseGrabbed(false);
|
||||
|
||||
Cursor.lastObjColor = Color.white;
|
||||
Cursor.lastMirroredObjColor = Color.white;
|
||||
|
||||
// re-hide cursor
|
||||
if (GameMod.AUTO.isActive() || isReplay)
|
||||
UI.getCursor().hide();
|
||||
|
||||
@@ -115,6 +115,7 @@ public class OptionsMenu extends BasicGameState {
|
||||
GameOption.DANCE_OBJECT_COLOR_OVERRIDE,
|
||||
GameOption.DANCE_OBJECT_COLOR_OVERRIDE_MIRRORED,
|
||||
GameOption.DANCE_RGB_INC,
|
||||
GameOption.DANCE_CURSOR_USE_OBJECT_COLOR,
|
||||
GameOption.DANCE_REMOVE_BG,
|
||||
GameOption.DANCE_HIDE_UI,
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user