From b722808d70c20f4a1da70a8ba86f85f345a0abeb Mon Sep 17 00:00:00 2001 From: yugecin Date: Sun, 13 Nov 2016 01:45:06 +0100 Subject: [PATCH] add option to enable/disable sb --- src/itdelatrisu/opsu/Options.java | 15 +++++++++++++++ src/itdelatrisu/opsu/states/OptionsMenu.java | 1 + src/yugecin/opsudance/ui/SBOverlay.java | 2 +- 3 files changed, 17 insertions(+), 1 deletion(-) diff --git a/src/itdelatrisu/opsu/Options.java b/src/itdelatrisu/opsu/Options.java index 4e6308b9..d695780f 100644 --- a/src/itdelatrisu/opsu/Options.java +++ b/src/itdelatrisu/opsu/Options.java @@ -57,6 +57,7 @@ import com.sun.jna.platform.win32.WinReg; import yugecin.opsudance.*; import yugecin.opsudance.movers.factories.AutoMoverFactory; import yugecin.opsudance.spinners.Spinner; +import yugecin.opsudance.ui.SBOverlay; /** * Handles all user options. @@ -1022,6 +1023,20 @@ public class Options { } }, + DANCE_ENABLE_SB ("Enable storyboard", "EnableStoryBoard", "Dance storyboard", false) { + @Override + public void click(GameContainer container) { + super.click(container); + SBOverlay.isActive = bool; + } + + @Override + public void read(String s) { + super.read(s); + SBOverlay.isActive = bool; + } + }, + DANCE_HIDE_WATERMARK ("Hide watermark", "HideWaterMark", "Hide the githublink in the top left corner of the playfield", false) { @Override public String getValueString() { diff --git a/src/itdelatrisu/opsu/states/OptionsMenu.java b/src/itdelatrisu/opsu/states/OptionsMenu.java index 29884d57..769ec359 100644 --- a/src/itdelatrisu/opsu/states/OptionsMenu.java +++ b/src/itdelatrisu/opsu/states/OptionsMenu.java @@ -134,6 +134,7 @@ public class OptionsMenu extends BasicGameState { GameOption.DANCE_REMOVE_BG, GameOption.DANCE_HIDE_OBJECTS, GameOption.DANCE_HIDE_UI, + GameOption.DANCE_ENABLE_SB, GameOption.DANCE_HIDE_WATERMARK, }), PIPPI ("Pippi", new GameOption[] { diff --git a/src/yugecin/opsudance/ui/SBOverlay.java b/src/yugecin/opsudance/ui/SBOverlay.java index 5a0bb3eb..65dfa8e6 100644 --- a/src/yugecin/opsudance/ui/SBOverlay.java +++ b/src/yugecin/opsudance/ui/SBOverlay.java @@ -35,7 +35,7 @@ import java.util.Map; @SuppressWarnings("unchecked") public class SBOverlay { - public static boolean isActive = true; + public static boolean isActive = false; private boolean hide; private boolean menu;