diff --git a/src/itdelatrisu/opsu/states/Game.java b/src/itdelatrisu/opsu/states/Game.java index de58bf5b..d0c987f7 100644 --- a/src/itdelatrisu/opsu/states/Game.java +++ b/src/itdelatrisu/opsu/states/Game.java @@ -1331,6 +1331,9 @@ public class Game extends BasicGameState { mirrorFrom = 0; mirrorTo = gameObjects.length; + ObjectColorOverrides.reset(beatmap.getTitle()); + CursorColorOverrides.reset(beatmap.getTitle()); + skipButton.resetHover(); if (isReplay || GameMod.AUTO.isActive()) playbackSpeed.getButton().resetHover(); diff --git a/src/yugecin/opsudance/CursorColorOverrides.java b/src/yugecin/opsudance/CursorColorOverrides.java index 2f35e3c6..641fb4cd 100644 --- a/src/yugecin/opsudance/CursorColorOverrides.java +++ b/src/yugecin/opsudance/CursorColorOverrides.java @@ -76,6 +76,10 @@ public enum CursorColorOverrides { this.nr = nr; } + public static void reset(String mapname) { + hue = mapname.hashCode() % 360; + } + @Override public String toString() { return displayText; diff --git a/src/yugecin/opsudance/ObjectColorOverrides.java b/src/yugecin/opsudance/ObjectColorOverrides.java index 80fd1a70..18fb89e9 100644 --- a/src/yugecin/opsudance/ObjectColorOverrides.java +++ b/src/yugecin/opsudance/ObjectColorOverrides.java @@ -78,6 +78,10 @@ public enum ObjectColorOverrides { this.nr = nr; } + public static void reset(String mapname) { + hue = mapname.hashCode() % 360; + } + @Override public String toString() { return displayText;