aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/Danker/gui
diff options
context:
space:
mode:
authorbowser0000 <bowser0000@gmail.com>2022-04-30 21:39:28 -0400
committerbowser0000 <bowser0000@gmail.com>2022-04-30 21:39:28 -0400
commit5f2acec6bce0cfdd0c435982a01f7f6d7b79e8b9 (patch)
treec98cf9a90b960798cb21f2a90fed6f3fdc463476 /src/main/java/me/Danker/gui
parent7f71df3d99a2c9b318c0b9de7c4e1577af5c9294 (diff)
downloadSkyblockMod-5f2acec6bce0cfdd0c435982a01f7f6d7b79e8b9.tar.gz
SkyblockMod-5f2acec6bce0cfdd0c435982a01f7f6d7b79e8b9.tar.bz2
SkyblockMod-5f2acec6bce0cfdd0c435982a01f7f6d7b79e8b9.zip
Add thunder/jawbus spawn alerts
Diffstat (limited to 'src/main/java/me/Danker/gui')
-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 abf9ffa..9e013b7 100644
--- a/src/main/java/me/Danker/gui/DankerGui.java
+++ b/src/main/java/me/Danker/gui/DankerGui.java
@@ -90,6 +90,7 @@ public class DankerGui extends GuiScreen {
private GuiButton hideArmour;
private GuiButton autoJoinSkyblock;
private GuiButton firePillar;
+ private GuiButton fishingAlert;
// Chat Messages
private GuiButton sceptreMessages;
private GuiButton midasStaffMessages;
@@ -184,6 +185,7 @@ public class DankerGui extends GuiScreen {
hideArmour = new FeatureButton("Hide Player Armour: " + Utils.getColouredBoolean(ToggleCommand.hideArmour), "Makes player armour invisible, showing their skin.");
autoJoinSkyblock = new FeatureButton("Automatically Join Skyblock: " + Utils.getColouredBoolean(ToggleCommand.autoJoinSkyblock), "Automatically join Skyblock when you join Hypixel.\nYou have an addiction.");
firePillar = new FeatureButton("Fire Pillar Display: " + Utils.getColouredBoolean(ToggleCommand.firePillar), "Displays blaze fire pillar text on screen");
+ fishingAlert = new FeatureButton("Fishing Spawn Alerts: " + Utils.getColouredBoolean(ToggleCommand.fishingAlert), "Alerts when a Thunder or Lord Jawbus spawns nearby");
allButtons.clear();
allButtons.add(changeDisplay);
@@ -244,6 +246,7 @@ public class DankerGui extends GuiScreen {
allButtons.add(hideArmour);
allButtons.add(autoJoinSkyblock);
allButtons.add(firePillar);
+ allButtons.add(fishingAlert);
search.setText(initSearchText);
search.setVisible(true);
@@ -537,6 +540,10 @@ public class DankerGui extends GuiScreen {
ToggleCommand.firePillar = !ToggleCommand.firePillar;
ConfigHandler.writeBooleanConfig("toggles", "FirePillar", ToggleCommand.firePillar);
firePillar.displayString = "Fire Pillar Display: " + Utils.getColouredBoolean(ToggleCommand.firePillar);
+ } else if (button == fishingAlert) {
+ ToggleCommand.fishingAlert = !ToggleCommand.fishingAlert;
+ ConfigHandler.writeBooleanConfig("toggles", "FishingAlert", ToggleCommand.fishingAlert);
+ fishingAlert.displayString = "Fishing Spawn Alerts: " + Utils.getColouredBoolean(ToggleCommand.fishingAlert);
}
}