aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/Danker/gui
diff options
context:
space:
mode:
authorbowser0000 <bowser0000@gmail.com>2021-04-29 01:26:03 -0400
committerbowser0000 <bowser0000@gmail.com>2021-04-29 01:26:03 -0400
commit1d0cfd9f652990c396d6c58be61797c792fba8a2 (patch)
treec0a1deec6e9d1493b34e54a49ca7d0755a70bee2 /src/main/java/me/Danker/gui
parentb07e3799b34616885a90586a0fa5291a75ecbbc5 (diff)
downloadSkyblockMod-1d0cfd9f652990c396d6c58be61797c792fba8a2.tar.gz
SkyblockMod-1d0cfd9f652990c396d6c58be61797c792fba8a2.tar.bz2
SkyblockMod-1d0cfd9f652990c396d6c58be61797c792fba8a2.zip
Add hiding pet candy in pet tooltip
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 cc33514..16e0640 100644
--- a/src/main/java/me/Danker/gui/DankerGui.java
+++ b/src/main/java/me/Danker/gui/DankerGui.java
@@ -65,6 +65,7 @@ public class DankerGui extends GuiScreen {
private GuiButton highlightSkeletonMasters;
private GuiButton teammatesInRadius;
private GuiButton giantHP;
+ private GuiButton hidePetCandy;
// Chat Messages
private GuiButton sceptreMessages;
private GuiButton midasStaffMessages;
@@ -151,6 +152,7 @@ public class DankerGui extends GuiScreen {
highlightSkeletonMasters = new FeatureButton("Highlight Skeleton Masters: " + Utils.getColouredBoolean(ToggleCommand.highlightSkeletonMasters), "Highlights Skeleton Masters.");
teammatesInRadius = new FeatureButton("Display Players in 30 Block Radius: " + Utils.getColouredBoolean(ToggleCommand.teammatesInRadius), "Displays dungeon teammates in 30 block radius for tether and diversion.");
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.");
allButtons.clear();
allButtons.add(changeDisplay);
@@ -195,6 +197,7 @@ public class DankerGui extends GuiScreen {
allButtons.add(highlightSkeletonMasters);
allButtons.add(teammatesInRadius);
allButtons.add(giantHP);
+ allButtons.add(hidePetCandy);
search.setText(initSearchText);
search.setVisible(true);
@@ -433,6 +436,10 @@ public class DankerGui extends GuiScreen {
ToggleCommand.giantHP = !ToggleCommand.giantHP;
ConfigHandler.writeBooleanConfig("toggles", "GiantHP", ToggleCommand.giantHP);
giantHP.displayString = "Display Giant HP: " + Utils.getColouredBoolean(ToggleCommand.giantHP);
+ } else if (button == hidePetCandy) {
+ ToggleCommand.hidePetCandy = !ToggleCommand.hidePetCandy;
+ ConfigHandler.writeBooleanConfig("toggles", "HidePetCandy", ToggleCommand.hidePetCandy);
+ hidePetCandy.displayString = "Hide Pet Candy: " + Utils.getColouredBoolean(ToggleCommand.hidePetCandy);
}
}