aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/Danker/gui/DankerGui.java
diff options
context:
space:
mode:
authorbowser0000 <bowser0000@gmail.com>2020-11-25 22:55:50 -0500
committerbowser0000 <bowser0000@gmail.com>2020-11-25 22:55:50 -0500
commit8b78e680240a20d1b44c03f6bbcbb42b36a02827 (patch)
tree95b4ed1261812327d45b67788fbb246eeb3baae5 /src/main/java/me/Danker/gui/DankerGui.java
parent4d0fb63db61deba0e0f1ce569c91e8b876abfa64 (diff)
downloadSkyblockMod-8b78e680240a20d1b44c03f6bbcbb42b36a02827.tar.gz
SkyblockMod-8b78e680240a20d1b44c03f6bbcbb42b36a02827.tar.bz2
SkyblockMod-8b78e680240a20d1b44c03f6bbcbb42b36a02827.zip
Add low health alerts
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 205dc8b..f086e25 100644
--- a/src/main/java/me/Danker/gui/DankerGui.java
+++ b/src/main/java/me/Danker/gui/DankerGui.java
@@ -49,6 +49,7 @@ public class DankerGui extends GuiScreen {
private GuiButton midasStaffMessages;
private GuiButton healMessages;
private GuiButton cakeTimer;
+ private GuiButton lowHealthNotify;
private GuiButton lividSolver;
public DankerGui(int page) {
@@ -104,6 +105,7 @@ public class DankerGui extends GuiScreen {
lividSolver = new GuiButton(0, width / 2 - 100, (int) (height * 0.2), "Find Correct Livid: " + Utils.getColouredBoolean(ToggleCommand.lividSolverToggled));
golemAlerts = new GuiButton(0, width / 2 - 100, (int) (height * 0.3), "Alert When Golem Spawns: " + Utils.getColouredBoolean(ToggleCommand.golemAlertToggled));
rngesusAlert = new GuiButton(0, width / 2 - 100, (int) (height * 0.4), "RNGesus Alerts: " + Utils.getColouredBoolean(ToggleCommand.rngesusAlerts));
+ lowHealthNotify = new GuiButton(0, width / 2 - 100, (int) (height * 0.5), "Low Health Notifications: " + Utils.getColouredBoolean(ToggleCommand.lowHealthNotifyToggled));
if (page == 1) {
this.buttonList.add(changeDisplay);
@@ -139,6 +141,7 @@ public class DankerGui extends GuiScreen {
this.buttonList.add(lividSolver);
this.buttonList.add(golemAlerts);
this.buttonList.add(rngesusAlert);
+ this.buttonList.add(lowHealthNotify);
this.buttonList.add(backPage);
}
@@ -268,6 +271,10 @@ public class DankerGui extends GuiScreen {
ToggleCommand.healMessages = !ToggleCommand.healMessages;
ConfigHandler.writeBooleanConfig("toggles", "HealMessages", ToggleCommand.healMessages);
healMessages.displayString = "Heal Messages: " + Utils.getColouredBoolean(ToggleCommand.healMessages);
+ } else if (button == lowHealthNotify) {
+ ToggleCommand.lowHealthNotifyToggled = !ToggleCommand.lowHealthNotifyToggled;
+ ConfigHandler.writeBooleanConfig("toggles", "LowHealthNotify", ToggleCommand.lowHealthNotifyToggled);
+ lowHealthNotify.displayString = "Low Health Notifications: " + Utils.getColouredBoolean(ToggleCommand.lowHealthNotifyToggled);
}
}