aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/Danker/gui/DankerGui.java
diff options
context:
space:
mode:
authorMy-Name-Is-Jeff <37018278+My-Name-Is-Jeff@users.noreply.github.com>2020-12-17 18:16:33 -0500
committerMy-Name-Is-Jeff <37018278+My-Name-Is-Jeff@users.noreply.github.com>2020-12-17 18:16:33 -0500
commit98ad455efd1cad0dffb6dfa0c0b688322ac83ede (patch)
tree889e52642251eef09a85949062b092d36125d929 /src/main/java/me/Danker/gui/DankerGui.java
parent45577a8861674f14b2740bed95456c545cbaf9b5 (diff)
downloadSkyblockMod-98ad455efd1cad0dffb6dfa0c0b688322ac83ede.tar.gz
SkyblockMod-98ad455efd1cad0dffb6dfa0c0b688322ac83ede.tar.bz2
SkyblockMod-98ad455efd1cad0dffb6dfa0c0b688322ac83ede.zip
Add Bonzo Mask Timer
Diffstat (limited to 'src/main/java/me/Danker/gui/DankerGui.java')
-rw-r--r--src/main/java/me/Danker/gui/DankerGui.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main/java/me/Danker/gui/DankerGui.java b/src/main/java/me/Danker/gui/DankerGui.java
index 86ab1aa..fa19a30 100644
--- a/src/main/java/me/Danker/gui/DankerGui.java
+++ b/src/main/java/me/Danker/gui/DankerGui.java
@@ -58,6 +58,7 @@ public class DankerGui extends GuiScreen {
private GuiButton pickBlock;
private GuiButton notifySlayerSlain;
private GuiButton necronNotifications;
+ private GuiButton bonzoTimer;
public DankerGui(int page) {
this.page = page;
@@ -121,6 +122,7 @@ public class DankerGui extends GuiScreen {
splitFishing = new GuiButton(0, width / 2 - 100, (int) (height * 0.3), "Split Fishing Display: " + Utils.getColouredBoolean(ToggleCommand.splitFishing));
notifySlayerSlain = new GuiButton(0, width / 2 - 100, (int) (height * 0.4), "Notify when Slayer Slain: " + Utils.getColouredBoolean(ToggleCommand.notifySlayerSlainToggled));
necronNotifications = new GuiButton(0, width / 2 - 100, (int) (height * 0.5), "Necron Phase Notifications: " + Utils.getColouredBoolean(ToggleCommand.necronNotificationsToggled));
+ bonzoTimer = new GuiButton(0, width / 2 - 100, (int) (height * 0.6), "Bonzo's Mask Timer: " + Utils.getColouredBoolean(ToggleCommand.bonzoTimerToggled));
switch (page) {
case 1:
@@ -172,6 +174,7 @@ public class DankerGui extends GuiScreen {
this.buttonList.add(splitFishing);
this.buttonList.add(notifySlayerSlain);
this.buttonList.add(necronNotifications);
+ this.buttonList.add(bonzoTimer);
this.buttonList.add(backPage);
break;
}
@@ -328,6 +331,10 @@ public class DankerGui extends GuiScreen {
ToggleCommand.necronNotificationsToggled = !ToggleCommand.necronNotificationsToggled;
ConfigHandler.writeBooleanConfig("toggles", "NecronNotifications", ToggleCommand.necronNotificationsToggled);
necronNotifications.displayString = "Necron Phase Notifications: " + Utils.getColouredBoolean(ToggleCommand.necronNotificationsToggled);
+ } else if (button == bonzoTimer) {
+ ToggleCommand.bonzoTimerToggled = !ToggleCommand.bonzoTimerToggled;
+ ConfigHandler.writeBooleanConfig("toggles", "BonzoTimer", ToggleCommand.bonzoTimerToggled);
+ bonzoTimer.displayString = "Bonzo's Mask Timer: " + Utils.getColouredBoolean(ToggleCommand.bonzoTimerToggled);
} else if (button == pickBlock) {
ToggleCommand.swapToPickBlockToggled = !ToggleCommand.swapToPickBlockToggled;
ConfigHandler.writeBooleanConfig("toggles", "PickBlock", ToggleCommand.swapToPickBlockToggled);