Use map title to get initial rainbow colors
This commit is contained in:
parent
38d5c64a26
commit
3a507453f9
|
@ -1331,6 +1331,9 @@ public class Game extends BasicGameState {
|
||||||
mirrorFrom = 0;
|
mirrorFrom = 0;
|
||||||
mirrorTo = gameObjects.length;
|
mirrorTo = gameObjects.length;
|
||||||
|
|
||||||
|
ObjectColorOverrides.reset(beatmap.getTitle());
|
||||||
|
CursorColorOverrides.reset(beatmap.getTitle());
|
||||||
|
|
||||||
skipButton.resetHover();
|
skipButton.resetHover();
|
||||||
if (isReplay || GameMod.AUTO.isActive())
|
if (isReplay || GameMod.AUTO.isActive())
|
||||||
playbackSpeed.getButton().resetHover();
|
playbackSpeed.getButton().resetHover();
|
||||||
|
|
|
@ -76,6 +76,10 @@ public enum CursorColorOverrides {
|
||||||
this.nr = nr;
|
this.nr = nr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static void reset(String mapname) {
|
||||||
|
hue = mapname.hashCode() % 360;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return displayText;
|
return displayText;
|
||||||
|
|
|
@ -78,6 +78,10 @@ public enum ObjectColorOverrides {
|
||||||
this.nr = nr;
|
this.nr = nr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static void reset(String mapname) {
|
||||||
|
hue = mapname.hashCode() % 360;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return displayText;
|
return displayText;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user