aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/Danker/gui/DankerGui.java
diff options
context:
space:
mode:
authorflame-cat <kaldraganov05@gmail.com>2020-12-15 22:32:57 -0500
committerflame-cat <kaldraganov05@gmail.com>2020-12-15 22:32:57 -0500
commit6f3aceaf037be3e21cf7620cc92b10a07cb115c7 (patch)
tree8c434327f1e8f982d6abd0d6cb181041073d3a7c /src/main/java/me/Danker/gui/DankerGui.java
parenteb4bf8a8191add4fd50dbc0daa088ec42bf8eb6d (diff)
parentb0e3055fbe29c4af71927a13726ae4984fb2b500 (diff)
downloadSkyblockMod-6f3aceaf037be3e21cf7620cc92b10a07cb115c7.tar.gz
SkyblockMod-6f3aceaf037be3e21cf7620cc92b10a07cb115c7.tar.bz2
SkyblockMod-6f3aceaf037be3e21cf7620cc92b10a07cb115c7.zip
Merge branch 'development' of https://github.com/bowser0000/SkyblockMod into development
Diffstat (limited to 'src/main/java/me/Danker/gui/DankerGui.java')
-rw-r--r--src/main/java/me/Danker/gui/DankerGui.java9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/main/java/me/Danker/gui/DankerGui.java b/src/main/java/me/Danker/gui/DankerGui.java
index de99686..ec2c8b8 100644
--- a/src/main/java/me/Danker/gui/DankerGui.java
+++ b/src/main/java/me/Danker/gui/DankerGui.java
@@ -57,6 +57,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;
@@ -119,7 +120,8 @@ public class DankerGui extends GuiScreen {
stopSalvageStarred = new GuiButton(0, width / 2 - 100, (int) (height * 0.1), "Stop Salvaging Starred Items: " + Utils.getColouredBoolean(ToggleCommand.stopSalvageStarredToggled));
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));
+
switch (page) {
case 1:
this.buttonList.add(changeDisplay);
@@ -168,6 +170,7 @@ public class DankerGui extends GuiScreen {
this.buttonList.add(stopSalvageStarred);
this.buttonList.add(watcherReadyMessage);
this.buttonList.add(splitFishing);
+ this.buttonList.add(notifySlayerSlain);
this.buttonList.add(backPage);
break;
}
@@ -319,6 +322,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);