diff options
author | Sychic <47618543+Sychic@users.noreply.github.com> | 2020-12-14 22:30:35 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-14 22:30:35 -0500 |
commit | 0b5e5cda29db164d4d967a66fe0b71bde234d5c0 (patch) | |
tree | 2742107ad5601b5355217c4597ee5e86a78c0218 /src/main/java/me/Danker/gui/DankerGui.java | |
parent | ec82c3fa2aa6dd364a1810c36b3f8c1bfa947185 (diff) | |
parent | b0e3055fbe29c4af71927a13726ae4984fb2b500 (diff) | |
download | SkyblockMod-0b5e5cda29db164d4d967a66fe0b71bde234d5c0.tar.gz SkyblockMod-0b5e5cda29db164d4d967a66fe0b71bde234d5c0.tar.bz2 SkyblockMod-0b5e5cda29db164d4d967a66fe0b71bde234d5c0.zip |
Merge branch 'development' into development
Diffstat (limited to 'src/main/java/me/Danker/gui/DankerGui.java')
-rw-r--r-- | src/main/java/me/Danker/gui/DankerGui.java | 7 |
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 2a77702..6896e54 100644 --- a/src/main/java/me/Danker/gui/DankerGui.java +++ b/src/main/java/me/Danker/gui/DankerGui.java @@ -60,6 +60,7 @@ public class DankerGui extends GuiScreen { private GuiButton stopSalvageStarred; private GuiButton watcherReadyMessage; private GuiButton pickBlock; + private GuiButton notifySlayerSlain; public DankerGui(int page) { this.page = page; @@ -123,6 +124,7 @@ public class DankerGui extends GuiScreen { dungeonTimer = new GuiButton(0, width / 2 - 100, (int) (height * 0.3), "Display Dungeon Timers: " + Utils.getColouredBoolean(ToggleCommand.dungeonTimerToggled)); stopSalvageStarred = new GuiButton(0, width / 2 - 100, (int) (height * 0.4), "Stop Salvaging Starred Items: " + Utils.getColouredBoolean(ToggleCommand.stopSalvageStarredToggled)); watcherReadyMessage = new GuiButton(0, width / 2 - 100, (int) (height * 0.5), "Display Watcher Ready Message: " + Utils.getColouredBoolean(ToggleCommand.watcherReadyToggled)); + notifySlayerSlain = new GuiButton(0, width / 2 - 100, (int) (height * 0.6), "Notify when Slayer Slain: " + Utils.getColouredBoolean(ToggleCommand.notifySlayerSlainToggled)); switch (page) { case 1: this.buttonList.add(changeDisplay); @@ -173,6 +175,7 @@ public class DankerGui extends GuiScreen { this.buttonList.add(dungeonTimer); this.buttonList.add(stopSalvageStarred); this.buttonList.add(watcherReadyMessage); + this.buttonList.add(notifySlayerSlain); this.buttonList.add(backPage); break; } @@ -329,6 +332,10 @@ public class DankerGui extends GuiScreen { ToggleCommand.watcherReadyToggled = !ToggleCommand.watcherReadyToggled; ConfigHandler.writeBooleanConfig("toggles", "WatcherReadyMessage", ToggleCommand.watcherReadyToggled); watcherReadyMessage.displayString = "Display Watcher Ready Message: " + Utils.getColouredBoolean(ToggleCommand.watcherReadyToggled); + } else if (button == notifySlayerSlain) { + ToggleCommand.notifySlayerSlainToggled = !ToggleCommand.notifySlayerSlainToggled; + ConfigHandler.writeBooleanConfig("toggles", "NotifySlayerSlain", ToggleCommand.notifySlayerSlainToggled); + notifySlayerSlain.displayString = "Notify when Slayer Slain: " + Utils.getColouredBoolean(ToggleCommand.notifySlayerSlainToggled); } else if (button == pickBlock) { ToggleCommand.swapToPickBlockToggled = !ToggleCommand.swapToPickBlockToggled; ConfigHandler.writeBooleanConfig("toggles", "PickBlock", ToggleCommand.swapToPickBlockToggled); |