diff --git a/src/itdelatrisu/opsu/states/MainMenu.java b/src/itdelatrisu/opsu/states/MainMenu.java index 250026b0..96fc42c7 100644 --- a/src/itdelatrisu/opsu/states/MainMenu.java +++ b/src/itdelatrisu/opsu/states/MainMenu.java @@ -287,7 +287,9 @@ public class MainMenu extends BaseOpsuState { Colors.BLACK_ALPHA.a = oldAlpha; // draw star fountain - starFountain.draw(); + if (OPTION_STARFOUNTAINS.state) { + starFountain.draw(); + } // draw downloads button downloadsButton.draw(); @@ -521,7 +523,9 @@ public class MainMenu extends BaseOpsuState { for (MenuButton b : this.musicButtons) { b.hoverUpdate(delta, b.contains(mouseX, mouseY)); } - starFountain.update(delta); + if (OPTION_STARFOUNTAINS.state) { + starFountain.update(delta); + } // window focus change: increase/decrease theme song volume if (MusicController.isThemePlaying() && @@ -536,7 +540,7 @@ public class MainMenu extends BaseOpsuState { // check measure progress Float measureProgress = MusicController.getMeasureProgress(2); if (measureProgress != null) { - if (measureProgress < lastMeasureProgress) + if (OPTION_STARFOUNTAINS.state && measureProgress < lastMeasureProgress) starFountain.burst(true); lastMeasureProgress = measureProgress; } diff --git a/src/yugecin/opsudance/options/OptionGroups.java b/src/yugecin/opsudance/options/OptionGroups.java index 7883f7d3..de2ff0c2 100644 --- a/src/yugecin/opsudance/options/OptionGroups.java +++ b/src/yugecin/opsudance/options/OptionGroups.java @@ -42,6 +42,7 @@ public class OptionGroups { OPTION_TARGET_FPS, OPTION_SHOW_FPS, OPTION_USE_FPS_DELTAS, + OPTION_STARFOUNTAINS, OPTION_SCREENSHOT_FORMAT, }), new OptionTab("SLIDER OPTIONS", new Option[]{ diff --git a/src/yugecin/opsudance/options/Options.java b/src/yugecin/opsudance/options/Options.java index 9a6763f7..6a0aed32 100644 --- a/src/yugecin/opsudance/options/Options.java +++ b/src/yugecin/opsudance/options/Options.java @@ -127,6 +127,8 @@ public class Options { public static final ToggleOption OPTION_NOSINGLEINSTANCE = new ToggleOption("-", "NoSingleInstance", "-", false); + public static final ToggleOption OPTION_STARFOUNTAINS = new ToggleOption("Star fountains in main menu", "StarFountains", "Show star bursts in main menu", true); + // in-game options public static final ListOption OPTION_SCREEN_RESOLUTION = new ListOption("Screen Resolution", "ScreenResolution", "Change the size of the game.") { private final String[] resolutions = {