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;
|
||||
mirrorTo = gameObjects.length;
|
||||
|
||||
ObjectColorOverrides.reset(beatmap.getTitle());
|
||||
CursorColorOverrides.reset(beatmap.getTitle());
|
||||
|
||||
skipButton.resetHover();
|
||||
if (isReplay || GameMod.AUTO.isActive())
|
||||
playbackSpeed.getButton().resetHover();
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user