aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/Danker/gui/DankerGui.java
diff options
context:
space:
mode:
authorbowser0000 <bowser0000@gmail.com>2020-12-26 14:39:35 -0500
committerGitHub <noreply@github.com>2020-12-26 14:39:35 -0500
commite00e8cc6b29b8c6826459c7d39e40b265640d22d (patch)
tree7584acf7da5d43c50e0ab946c6d78e8b0d9cb135 /src/main/java/me/Danker/gui/DankerGui.java
parent5a796d45211dfc9a7cc0a63a753e638dea9fc96c (diff)
parent6b5f367dae42305dc19b9849e6fdd4fe4ba1a60c (diff)
downloadSkyblockMod-e00e8cc6b29b8c6826459c7d39e40b265640d22d.tar.gz
SkyblockMod-e00e8cc6b29b8c6826459c7d39e40b265640d22d.tar.bz2
SkyblockMod-e00e8cc6b29b8c6826459c7d39e40b265640d22d.zip
Merge pull request #55 from My-Name-Is-Jeff/development
Features & Changes: Necron Notifications, Bonzo Mask Timer, OldAnimationsMod detection + more
Diffstat (limited to 'src/main/java/me/Danker/gui/DankerGui.java')
-rw-r--r--src/main/java/me/Danker/gui/DankerGui.java32
1 files changed, 29 insertions, 3 deletions
diff --git a/src/main/java/me/Danker/gui/DankerGui.java b/src/main/java/me/Danker/gui/DankerGui.java
index dbb6c11..2860997 100644
--- a/src/main/java/me/Danker/gui/DankerGui.java
+++ b/src/main/java/me/Danker/gui/DankerGui.java
@@ -58,6 +58,9 @@ public class DankerGui extends GuiScreen {
private GuiButton flowerWeapons;
private GuiButton pickBlock;
private GuiButton notifySlayerSlain;
+ private GuiButton necronNotifications;
+ private GuiButton bonzoTimer;
+ private GuiButton blockBreakingFarms;
public DankerGui(int page) {
this.page = page;
@@ -120,7 +123,11 @@ public class DankerGui extends GuiScreen {
watcherReadyMessage = new GuiButton(0, width / 2 - 100, (int) (height * 0.2), "Display Watcher Ready Message: " + Utils.getColouredBoolean(ToggleCommand.watcherReadyToggled));
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));
- flowerWeapons = new GuiButton(0, width / 2 - 100, (int) (height * 0.5), "Prevent Placing FoT/Spirit Sceptre: " + Utils.getColouredBoolean(ToggleCommand.flowerWeaponsToggled));
+ flowerWeapons = new GuiButton(0, width / 2 - 100, (int) (height * 0.5), "Prevent Placing FoT/Spirit Sceptre: " + Utils.getColouredBoolean(ToggleCommand.flowerWeaponsToggled));
+ necronNotifications = new GuiButton(0, width / 2 - 100, (int) (height * 0.6), "Necron Phase Notifications: " + Utils.getColouredBoolean(ToggleCommand.necronNotificationsToggled));
+ bonzoTimer = new GuiButton(0, width / 2 - 100, (int) (height * 0.7), "Bonzo's Mask Timer: " + Utils.getColouredBoolean(ToggleCommand.bonzoTimerToggled));
+ //Page 6
+ blockBreakingFarms = new GuiButton(0, width / 2 - 100, (int) (height * 0.1), "Prevent Breaking Farms: " + Utils.getColouredBoolean(ToggleCommand.blockBreakingFarmsToggled));
switch (page) {
case 1:
@@ -171,7 +178,14 @@ public class DankerGui extends GuiScreen {
this.buttonList.add(watcherReadyMessage);
this.buttonList.add(splitFishing);
this.buttonList.add(notifySlayerSlain);
- this.buttonList.add(flowerWeapons);
+ this.buttonList.add(flowerWeapons);
+ this.buttonList.add(necronNotifications);
+ this.buttonList.add(bonzoTimer);
+ this.buttonList.add(nextPage);
+ this.buttonList.add(backPage);
+ break;
+ case 6:
+ this.buttonList.add(blockBreakingFarms);
this.buttonList.add(backPage);
break;
}
@@ -184,7 +198,7 @@ public class DankerGui extends GuiScreen {
@Override
public void drawScreen(int mouseX, int mouseY, float partialTicks) {
this.drawDefaultBackground();
- String pageText = "Page: " + page + "/5";
+ String pageText = "Page: " + page + "/6";
int pageWidth = mc.fontRendererObj.getStringWidth(pageText);
new TextRenderer(mc, pageText, width / 2 - pageWidth / 2, 10, 1D);
super.drawScreen(mouseX, mouseY, partialTicks);
@@ -324,6 +338,18 @@ public class DankerGui extends GuiScreen {
ToggleCommand.notifySlayerSlainToggled = !ToggleCommand.notifySlayerSlainToggled;
ConfigHandler.writeBooleanConfig("toggles", "NotifySlayerSlain", ToggleCommand.notifySlayerSlainToggled);
notifySlayerSlain.displayString = "Notify when Slayer Slain: " + Utils.getColouredBoolean(ToggleCommand.notifySlayerSlainToggled);
+ } else if (button == necronNotifications) {
+ 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 == blockBreakingFarms) {
+ ToggleCommand.blockBreakingFarmsToggled = !ToggleCommand.blockBreakingFarmsToggled;
+ ConfigHandler.writeBooleanConfig("toggles", "BlockBreakingFarms", ToggleCommand.blockBreakingFarmsToggled);
+ blockBreakingFarms.displayString = "Prevent Breaking Farms: " + Utils.getColouredBoolean(ToggleCommand.blockBreakingFarmsToggled);
} else if (button == pickBlock) {
ToggleCommand.swapToPickBlockToggled = !ToggleCommand.swapToPickBlockToggled;
ConfigHandler.writeBooleanConfig("toggles", "PickBlock", ToggleCommand.swapToPickBlockToggled);