diff options
author | bowser0000 <bowser0000@gmail.com> | 2020-12-05 03:40:24 -0500 |
---|---|---|
committer | bowser0000 <bowser0000@gmail.com> | 2020-12-05 03:40:24 -0500 |
commit | b294ee1f83d85bc58bc9b9f97f94135d395ebf74 (patch) | |
tree | 9ce532e9dc0aa1e14bfe465d4cabd752f60c818c /src/main/java/me/Danker/gui/ExperimentsGui.java | |
parent | c1ba7f1ffab9262cbf5c13e3377e4e927329d85b (diff) | |
download | SkyblockMod-b294ee1f83d85bc58bc9b9f97f94135d395ebf74.tar.gz SkyblockMod-b294ee1f83d85bc58bc9b9f97f94135d395ebf74.tar.bz2 SkyblockMod-b294ee1f83d85bc58bc9b9f97f94135d395ebf74.zip |
Add Chronomatron solver
Diffstat (limited to 'src/main/java/me/Danker/gui/ExperimentsGui.java')
-rw-r--r-- | src/main/java/me/Danker/gui/ExperimentsGui.java | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/main/java/me/Danker/gui/ExperimentsGui.java b/src/main/java/me/Danker/gui/ExperimentsGui.java index 02beb22..8b19820 100644 --- a/src/main/java/me/Danker/gui/ExperimentsGui.java +++ b/src/main/java/me/Danker/gui/ExperimentsGui.java @@ -13,6 +13,7 @@ public class ExperimentsGui extends GuiScreen { private GuiButton goBack; private GuiButton ultrasequencer; + private GuiButton chronomatron; @Override public boolean doesGuiPauseGame() { @@ -29,9 +30,11 @@ 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)); - this.buttonList.add(ultrasequencer); this.buttonList.add(goBack); + this.buttonList.add(ultrasequencer); + this.buttonList.add(chronomatron); } @Override @@ -48,6 +51,10 @@ public class ExperimentsGui extends GuiScreen { ToggleCommand.ultrasequencerToggled = !ToggleCommand.ultrasequencerToggled; ConfigHandler.writeBooleanConfig("toggles", "UltraSequencer", ToggleCommand.ultrasequencerToggled); ultrasequencer.displayString = "Ultrasequencer Solver: " + Utils.getColouredBoolean(ToggleCommand.ultrasequencerToggled); + } else if (button == chronomatron) { + ToggleCommand.chronomatronToggled = !ToggleCommand.chronomatronToggled; + ConfigHandler.writeBooleanConfig("toggles", "Chronomatron", ToggleCommand.chronomatronToggled); + chronomatron.displayString = "Chronomatron Solver: " + Utils.getColouredBoolean(ToggleCommand.chronomatronToggled); } } |