aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/Danker/gui/alerts/AlertActionGui.java
diff options
context:
space:
mode:
authorbowser0000 <bowser0000@gmail.com>2022-04-16 20:22:32 -0400
committerbowser0000 <bowser0000@gmail.com>2022-04-16 20:22:32 -0400
commit7af45a9bee936d6da43e8b9ee6473a8ecbcb3d7f (patch)
tree557f30d16b028c550c7bbd9ee28e4892f161fe0a /src/main/java/me/Danker/gui/alerts/AlertActionGui.java
parent1e2036e6ca3b10595ba27691ab4ee0a87d31f052 (diff)
downloadSkyblockMod-7af45a9bee936d6da43e8b9ee6473a8ecbcb3d7f.tar.gz
SkyblockMod-7af45a9bee936d6da43e8b9ee6473a8ecbcb3d7f.tar.bz2
SkyblockMod-7af45a9bee936d6da43e8b9ee6473a8ecbcb3d7f.zip
Add location and desktop notification for alerts
Options of everywhere, in skyblock and in dungeons
Diffstat (limited to 'src/main/java/me/Danker/gui/alerts/AlertActionGui.java')
-rw-r--r--src/main/java/me/Danker/gui/alerts/AlertActionGui.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/main/java/me/Danker/gui/alerts/AlertActionGui.java b/src/main/java/me/Danker/gui/alerts/AlertActionGui.java
index 02ef186..7a73f5a 100644
--- a/src/main/java/me/Danker/gui/alerts/AlertActionGui.java
+++ b/src/main/java/me/Danker/gui/alerts/AlertActionGui.java
@@ -16,6 +16,7 @@ public class AlertActionGui extends GuiScreen {
private GuiButton goBack;
private GuiButton toggle;
+ private GuiButton toggleDesktop;
private GuiButton edit;
private GuiButton delete;
@@ -40,10 +41,12 @@ public class AlertActionGui extends GuiScreen {
goBack = new GuiButton(0, 2, height - 30, 100, 20, "Go Back");
toggle = new GuiButton(0, width / 2 - 100, (int) (height * 0.1), "Enabled: " + Utils.getColouredBoolean(alert.toggled));
- edit = new GuiButton(0, width / 2 - 100, (int) (height * 0.2), "Edit >");
+ toggleDesktop = new GuiButton(0, width / 2 - 100, (int) (height * 0.2), "Desktop Notification: " + Utils.getColouredBoolean(alert.desktop));
+ edit = new GuiButton(0, width / 2 - 100, (int) (height * 0.3), "Edit >");
delete = new GuiButton(0, width / 2 - 100, (int) (height * 0.8), EnumChatFormatting.RED + "Delete Alert");
this.buttonList.add(toggle);
+ this.buttonList.add(toggleDesktop);
this.buttonList.add(edit);
this.buttonList.add(delete);
this.buttonList.add(goBack);
@@ -70,6 +73,9 @@ public class AlertActionGui extends GuiScreen {
} else if (button == toggle) {
alert.toggle();
toggle.displayString = "Enabled: " + Utils.getColouredBoolean(alert.toggled);
+ } else if (button == toggleDesktop) {
+ alert.toggleDesktop();
+ toggleDesktop.displayString = "Desktop Notification: " + Utils.getColouredBoolean(alert.desktop);
} else if (button == edit) {
mc.displayGuiScreen(new AlertAddGui(alert, id));
} else if (button == delete) {