aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/Danker/gui
diff options
context:
space:
mode:
authorMy-Name-Is-Jeff <37018278+My-Name-Is-Jeff@users.noreply.github.com>2020-12-05 10:58:21 -0500
committerMy-Name-Is-Jeff <37018278+My-Name-Is-Jeff@users.noreply.github.com>2020-12-05 10:58:21 -0500
commitd056aa0ec706820a94e36e2c4866c15a12b9af6e (patch)
tree803821968ebff6c7f934c72262a1af3c4782974b /src/main/java/me/Danker/gui
parentb294ee1f83d85bc58bc9b9f97f94135d395ebf74 (diff)
downloadSkyblockMod-d056aa0ec706820a94e36e2c4866c15a12b9af6e.tar.gz
SkyblockMod-d056aa0ec706820a94e36e2c4866c15a12b9af6e.tar.bz2
SkyblockMod-d056aa0ec706820a94e36e2c4866c15a12b9af6e.zip
Add Superpairs helper
Diffstat (limited to 'src/main/java/me/Danker/gui')
-rw-r--r--src/main/java/me/Danker/gui/ExperimentsGui.java7
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);
}
}