aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/Danker/gui/DankerGui.java
diff options
context:
space:
mode:
authorbowser0000 <bowser0000@gmail.com>2021-12-23 01:35:10 -0500
committerbowser0000 <bowser0000@gmail.com>2021-12-23 01:35:10 -0500
commitaaba0391a06ac4546d7ec5ce684534c35d9cbc82 (patch)
tree9a067fc19577e66bc4362ab4770e6b7af088ddff /src/main/java/me/Danker/gui/DankerGui.java
parent457305a5c1894d776b7c30ecc0f4f0cd8edc1e86 (diff)
downloadSkyblockMod-aaba0391a06ac4546d7ec5ce684534c35d9cbc82.tar.gz
SkyblockMod-aaba0391a06ac4546d7ec5ce684534c35d9cbc82.tar.bz2
SkyblockMod-aaba0391a06ac4546d7ec5ce684534c35d9cbc82.zip
Add dungeon score display
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 2a081e1..15360f0 100644
--- a/src/main/java/me/Danker/gui/DankerGui.java
+++ b/src/main/java/me/Danker/gui/DankerGui.java
@@ -84,6 +84,7 @@ public class DankerGui extends GuiScreen {
private GuiButton flowerWeapons;
private GuiButton necronNotifications;
private GuiButton bonzoTimer;
+ private GuiButton dungeonScore;
// Chat Messages
private GuiButton sceptreMessages;
private GuiButton midasStaffMessages;
@@ -172,6 +173,7 @@ public class DankerGui extends GuiScreen {
gemstoneLore = new FeatureButton("Applied Gemstones in Lore: " + Utils.getColouredBoolean(ToggleCommand.gemstoneLore), "Adds applied gemstones to item tooltip.");
autoAcceptReparty = new FeatureButton("Auto Accept Reparty: " + Utils.getColouredBoolean(ToggleCommand.autoAcceptReparty), "Automatically rejoins parties when disbanded and invited.");
abilityCooldown = new FeatureButton("Ability Cooldowns: " + Utils.getColouredBoolean(ToggleCommand.abilityCooldowns), "Displays ability cooldowns.");
+ dungeonScore = new FeatureButton("Dungeon Score Display: " + Utils.getColouredBoolean(ToggleCommand.dungeonScore), "Displays an estimated dungeon score with secrets.");
allButtons.clear();
allButtons.add(changeDisplay);
@@ -226,6 +228,7 @@ public class DankerGui extends GuiScreen {
allButtons.add(gemstoneLore);
allButtons.add(autoAcceptReparty);
allButtons.add(abilityCooldown);
+ allButtons.add(dungeonScore);
search.setText(initSearchText);
search.setVisible(true);
@@ -498,6 +501,10 @@ public class DankerGui extends GuiScreen {
ToggleCommand.abilityCooldowns = !ToggleCommand.abilityCooldowns;
ConfigHandler.writeBooleanConfig("toggles", "AbilityCooldowns", ToggleCommand.abilityCooldowns);
abilityCooldown.displayString = "Ability Cooldowns: " + Utils.getColouredBoolean(ToggleCommand.abilityCooldowns);
+ } else if (button == dungeonScore) {
+ ToggleCommand.dungeonScore = !ToggleCommand.dungeonScore;
+ ConfigHandler.writeBooleanConfig("toggles", "DungeonScore", ToggleCommand.dungeonScore);
+ dungeonScore.displayString = "Dungeon Score Display: " + Utils.getColouredBoolean(ToggleCommand.dungeonScore);
}
}