diff options
author | bowser0000 <bowser0000@gmail.com> | 2020-12-05 20:02:56 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-05 20:02:56 -0500 |
commit | eb87255d5a52e512aa8a26a2f4d9257eed935a02 (patch) | |
tree | dca8d1ab4196da94d5b0d45b53f49457fcecb15a /src/main/java/me/Danker/gui | |
parent | b294ee1f83d85bc58bc9b9f97f94135d395ebf74 (diff) | |
parent | 72d6ae0777d19582136f6e5865fb830f6d712490 (diff) | |
download | SkyblockMod-eb87255d5a52e512aa8a26a2f4d9257eed935a02.tar.gz SkyblockMod-eb87255d5a52e512aa8a26a2f4d9257eed935a02.tar.bz2 SkyblockMod-eb87255d5a52e512aa8a26a2f4d9257eed935a02.zip |
Merge pull request #36 from My-Name-Is-Jeff/development
Add Superpairs helper
Diffstat (limited to 'src/main/java/me/Danker/gui')
-rw-r--r-- | src/main/java/me/Danker/gui/ExperimentsGui.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main/java/me/Danker/gui/ExperimentsGui.java b/src/main/java/me/Danker/gui/ExperimentsGui.java index 8b19820..42c9b66 100644 --- a/src/main/java/me/Danker/gui/ExperimentsGui.java +++ b/src/main/java/me/Danker/gui/ExperimentsGui.java @@ -14,6 +14,7 @@ public class ExperimentsGui extends GuiScreen { private GuiButton goBack; private GuiButton ultrasequencer; private GuiButton chronomatron; + private GuiButton superpairs; @Override public boolean doesGuiPauseGame() { @@ -31,10 +32,12 @@ public class ExperimentsGui extends GuiScreen { goBack = new GuiButton(0, 2, height - 30, 100, 20, "Go Back"); ultrasequencer = new GuiButton(0, width / 2 - 100, (int) (height * 0.1), "Ultrasequencer Solver: " + Utils.getColouredBoolean(ToggleCommand.ultrasequencerToggled)); chronomatron = new GuiButton(0, width / 2 - 100, (int) (height * 0.2), "Chronomatron Solver: " + Utils.getColouredBoolean(ToggleCommand.chronomatronToggled)); + superpairs = new GuiButton(0, width / 2 - 100, (int) (height * 0.3), "Superpairs Solver: " + Utils.getColouredBoolean(ToggleCommand.superpairsToggled)); this.buttonList.add(goBack); this.buttonList.add(ultrasequencer); this.buttonList.add(chronomatron); + this.buttonList.add(superpairs); } @Override @@ -55,6 +58,10 @@ public class ExperimentsGui extends GuiScreen { ToggleCommand.chronomatronToggled = !ToggleCommand.chronomatronToggled; ConfigHandler.writeBooleanConfig("toggles", "Chronomatron", ToggleCommand.chronomatronToggled); chronomatron.displayString = "Chronomatron Solver: " + Utils.getColouredBoolean(ToggleCommand.chronomatronToggled); + } else if (button == superpairs) { + ToggleCommand.superpairsToggled = !ToggleCommand.superpairsToggled; + ConfigHandler.writeBooleanConfig("toggles", "Superpairs", ToggleCommand.superpairsToggled); + superpairs.displayString = "Superpairs Solver: " + Utils.getColouredBoolean(ToggleCommand.superpairsToggled); } } |