Option to apply last object color to cursor

This commit is contained in:
yugecin
2016-09-30 19:38:02 +02:00
parent add5e96af1
commit f6b791cf25
10 changed files with 99 additions and 10 deletions

View File

@@ -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();

View File

@@ -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,
}),