aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/Danker/gui/DankerGui.java
diff options
context:
space:
mode:
authorbowser0000 <bowser0000@gmail.com>2021-05-02 20:24:51 -0400
committerbowser0000 <bowser0000@gmail.com>2021-05-02 20:24:51 -0400
commitefa2c0dd2c1500edff663a2efd0b1d1ea902ce34 (patch)
tree15858bf2d237a2a556423bb0ff69b971e6b73440 /src/main/java/me/Danker/gui/DankerGui.java
parentd79def85f593605e0ac2ff59232449b4a8446bb8 (diff)
downloadSkyblockMod-efa2c0dd2c1500edff663a2efd0b1d1ea902ce34.tar.gz
SkyblockMod-efa2c0dd2c1500edff663a2efd0b1d1ea902ce34.tar.bz2
SkyblockMod-efa2c0dd2c1500edff663a2efd0b1d1ea902ce34.zip
Add custom name colours
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 16e0640..ce795f3 100644
--- a/src/main/java/me/Danker/gui/DankerGui.java
+++ b/src/main/java/me/Danker/gui/DankerGui.java
@@ -66,6 +66,7 @@ public class DankerGui extends GuiScreen {
private GuiButton teammatesInRadius;
private GuiButton giantHP;
private GuiButton hidePetCandy;
+ private GuiButton customColouredNames;
// Chat Messages
private GuiButton sceptreMessages;
private GuiButton midasStaffMessages;
@@ -153,6 +154,7 @@ public class DankerGui extends GuiScreen {
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.");
+ customColouredNames = new FeatureButton("Custom Name Colors: " + Utils.getColouredBoolean(ToggleCommand.customColouredNames), "Replaces some player's usernames with a custom color.");
allButtons.clear();
allButtons.add(changeDisplay);
@@ -198,6 +200,7 @@ public class DankerGui extends GuiScreen {
allButtons.add(teammatesInRadius);
allButtons.add(giantHP);
allButtons.add(hidePetCandy);
+ allButtons.add(customColouredNames);
search.setText(initSearchText);
search.setVisible(true);
@@ -440,6 +443,10 @@ public class DankerGui extends GuiScreen {
ToggleCommand.hidePetCandy = !ToggleCommand.hidePetCandy;
ConfigHandler.writeBooleanConfig("toggles", "HidePetCandy", ToggleCommand.hidePetCandy);
hidePetCandy.displayString = "Hide Pet Candy: " + Utils.getColouredBoolean(ToggleCommand.hidePetCandy);
+ } else if (button == customColouredNames) {
+ ToggleCommand.customColouredNames = !ToggleCommand.customColouredNames;
+ ConfigHandler.writeBooleanConfig("toggles", "CustomColouredNames", ToggleCommand.customColouredNames);
+ customColouredNames.displayString = "Custom Name Colors: " + Utils.getColouredBoolean(ToggleCommand.customColouredNames);
}
}