aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/Danker/gui/DankerGui.java
diff options
context:
space:
mode:
authorbowser0000 <bowser0000@gmail.com>2021-07-05 12:52:46 -0400
committerbowser0000 <bowser0000@gmail.com>2021-07-05 12:52:46 -0400
commita44dc53ce80e9914595d5b646dc5623ddd3450b1 (patch)
treeaa171433d7cc60b879c72a7c563e0bfb25a29257 /src/main/java/me/Danker/gui/DankerGui.java
parent17d42cffb8264a604e93052ee146887ae7fd32cb (diff)
downloadSkyblockMod-a44dc53ce80e9914595d5b646dc5623ddd3450b1.tar.gz
SkyblockMod-a44dc53ce80e9914595d5b646dc5623ddd3450b1.tar.bz2
SkyblockMod-a44dc53ce80e9914595d5b646dc5623ddd3450b1.zip
Add alert when reaching end of farm
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 ce795f3..3f4ebe7 100644
--- a/src/main/java/me/Danker/gui/DankerGui.java
+++ b/src/main/java/me/Danker/gui/DankerGui.java
@@ -67,6 +67,7 @@ public class DankerGui extends GuiScreen {
private GuiButton giantHP;
private GuiButton hidePetCandy;
private GuiButton customColouredNames;
+ private GuiButton endOfFarmAlert;
// Chat Messages
private GuiButton sceptreMessages;
private GuiButton midasStaffMessages;
@@ -155,6 +156,7 @@ public class DankerGui extends GuiScreen {
giantHP = new FeatureButton("Display Giant HP: " + Utils.getColouredBoolean(ToggleCommand.giantHP), "Displays health of Sadan's giants during F6 bossfight and F7 blood room.");
hidePetCandy = new FeatureButton("Hide Pet Candy: " + Utils.getColouredBoolean(ToggleCommand.hidePetCandy), "Hide pet candy in pet tooltips.");
customColouredNames = new FeatureButton("Custom Name Colors: " + Utils.getColouredBoolean(ToggleCommand.customColouredNames), "Replaces some player's usernames with a custom color.");
+ endOfFarmAlert = new FeatureButton("Alert When Reaching End of Farm: " + Utils.getColouredBoolean(ToggleCommand.endOfFarmAlert), "Alerts when you go past coords set with /dsmfarmlength.");
allButtons.clear();
allButtons.add(changeDisplay);
@@ -201,6 +203,7 @@ public class DankerGui extends GuiScreen {
allButtons.add(giantHP);
allButtons.add(hidePetCandy);
allButtons.add(customColouredNames);
+ allButtons.add(endOfFarmAlert);
search.setText(initSearchText);
search.setVisible(true);
@@ -447,6 +450,10 @@ public class DankerGui extends GuiScreen {
ToggleCommand.customColouredNames = !ToggleCommand.customColouredNames;
ConfigHandler.writeBooleanConfig("toggles", "CustomColouredNames", ToggleCommand.customColouredNames);
customColouredNames.displayString = "Custom Name Colors: " + Utils.getColouredBoolean(ToggleCommand.customColouredNames);
+ } else if (button == endOfFarmAlert) {
+ ToggleCommand.endOfFarmAlert = !ToggleCommand.endOfFarmAlert;
+ ConfigHandler.writeBooleanConfig("toggles", "EndOfFarmAlert", ToggleCommand.endOfFarmAlert);
+ endOfFarmAlert.displayString = "Alert When Reaching End of Farm: " + Utils.getColouredBoolean(ToggleCommand.endOfFarmAlert);
}
}