aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/Danker/gui/DankerGui.java
diff options
context:
space:
mode:
authorCuzImClicks <bruno778.whiteelfie@gmail.com>2021-04-03 19:59:46 +0200
committerCuzImClicks <bruno778.whiteelfie@gmail.com>2021-04-03 19:59:46 +0200
commit09291c4f8ee992d2b1c037dfeac84ee362e6288e (patch)
treee7ae4675068672d24e012cca0d66ac07ad0f7dc8 /src/main/java/me/Danker/gui/DankerGui.java
parentdf1f83cf4ddb80969d2086cf1d7a86df9dc90653 (diff)
downloadSkyblockMod-09291c4f8ee992d2b1c037dfeac84ee362e6288e.tar.gz
SkyblockMod-09291c4f8ee992d2b1c037dfeac84ee362e6288e.tar.bz2
SkyblockMod-09291c4f8ee992d2b1c037dfeac84ee362e6288e.zip
added Completed Commission Highlighting
Diffstat (limited to 'src/main/java/me/Danker/gui/DankerGui.java')
-rw-r--r--src/main/java/me/Danker/gui/DankerGui.java12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/main/java/me/Danker/gui/DankerGui.java b/src/main/java/me/Danker/gui/DankerGui.java
index 569f4d1..22cc001 100644
--- a/src/main/java/me/Danker/gui/DankerGui.java
+++ b/src/main/java/me/Danker/gui/DankerGui.java
@@ -6,10 +6,7 @@ import me.Danker.handlers.ConfigHandler;
import me.Danker.handlers.TextRenderer;
import me.Danker.utils.Utils;
import net.minecraft.client.Minecraft;
-import net.minecraft.client.gui.GuiButton;
-import net.minecraft.client.gui.GuiScreen;
-import net.minecraft.client.gui.GuiTextField;
-import net.minecraft.client.gui.ScaledResolution;
+import net.minecraft.client.gui.*;
import net.minecraft.util.StringUtils;
import java.awt.*;
@@ -60,6 +57,7 @@ public class DankerGui extends GuiScreen {
private GuiButton autoSkillTracker;
private GuiButton highlightArachne;
private GuiButton highlightSlayer;
+ private GuiButton highlightCommissions;
// Chat Messages
private GuiButton sceptreMessages;
private GuiButton midasStaffMessages;
@@ -143,6 +141,7 @@ public class DankerGui extends GuiScreen {
melodyTooltips = new GuiButton(0, 0, 0, "Hide tooltips in Melody's Harp: " + Utils.getColouredBoolean(ToggleCommand.melodyTooltips));
highlightArachne = new GuiButton(0, 0, 0, "Highlight Arachne: " + Utils.getColouredBoolean(ToggleCommand.highlightArachne));
highlightSlayer = new GuiButton(0, 0, 0, "Highlight Slayer: " + Utils.getColouredBoolean(ToggleCommand.highlightSlayers));
+ highlightCommissions = new GuiButton(0, 0, 0, "Highlight Commissions: " + Utils.getColouredBoolean(ToggleCommand.highlightCommissions));
allButtons.add(changeDisplay);
allButtons.add(puzzleSolvers);
@@ -183,6 +182,7 @@ public class DankerGui extends GuiScreen {
allButtons.add(melodyTooltips);
allButtons.add(highlightArachne);
allButtons.add(highlightSlayer);
+ allButtons.add(highlightCommissions);
search.setText(initSearchText);
search.setVisible(true);
@@ -402,6 +402,10 @@ public class DankerGui extends GuiScreen {
ToggleCommand.highlightSlayers = !ToggleCommand.highlightSlayers;
ConfigHandler.writeBooleanConfig("toggles", "HighlightSlayers", ToggleCommand.highlightSlayers);
highlightSlayer.displayString = "Highlight Slayer: " + Utils.getColouredBoolean(ToggleCommand.highlightSlayers);
+ } else if (button == highlightCommissions) {
+ ToggleCommand.highlightCommissions = !ToggleCommand.highlightCommissions;
+ ConfigHandler.writeBooleanConfig("toggles", "HighlightCommissions", ToggleCommand.highlightCommissions);
+ highlightCommissions.displayString = "Highlight Commissions: " + Utils.getColouredBoolean(ToggleCommand.highlightCommissions);
}
}