aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/Danker/gui
diff options
context:
space:
mode:
authorbowser0000 <bowser0000@gmail.com>2021-03-28 19:22:35 -0400
committerbowser0000 <bowser0000@gmail.com>2021-03-28 19:22:35 -0400
commit032cbaea86a08b98a239257f464a00a925068fda (patch)
tree4cc9048140cd9117194ac5b164aa8388f3a349a9 /src/main/java/me/Danker/gui
parent57e5469f651610a4f07bf8e5266b789d7ca1fe34 (diff)
downloadSkyblockMod-032cbaea86a08b98a239257f464a00a925068fda.tar.gz
SkyblockMod-032cbaea86a08b98a239257f464a00a925068fda.tar.bz2
SkyblockMod-032cbaea86a08b98a239257f464a00a925068fda.zip
Add 20s countdown to golem alert
Diffstat (limited to 'src/main/java/me/Danker/gui')
-rw-r--r--src/main/java/me/Danker/gui/DankerGui.java4
-rw-r--r--src/main/java/me/Danker/gui/EditLocationsGui.java22
2 files changed, 22 insertions, 4 deletions
diff --git a/src/main/java/me/Danker/gui/DankerGui.java b/src/main/java/me/Danker/gui/DankerGui.java
index 796be2b..d8100b5 100644
--- a/src/main/java/me/Danker/gui/DankerGui.java
+++ b/src/main/java/me/Danker/gui/DankerGui.java
@@ -136,7 +136,7 @@ public class DankerGui extends GuiScreen {
petColours = new GuiButton(0, 0, 0, "Colour Pet Backgrounds: " + Utils.getColouredBoolean(ToggleCommand.petColoursToggled));
expertiseLore = new GuiButton(0, 0, 0, "Expertise Kills In Lore: " + Utils.getColouredBoolean(ToggleCommand.expertiseLoreToggled));
gparty = new GuiButton(0, 0, 0, "Guild Party Notifications: " + Utils.getColouredBoolean(ToggleCommand.gpartyToggled));
- golemAlerts = new GuiButton(0, 0, 0, "Alert When Golem Spawns: " + Utils.getColouredBoolean(ToggleCommand.golemAlertToggled));
+ golemAlerts = new GuiButton(0, 0, 0, "Golem Spawn Alert And Timer: " + Utils.getColouredBoolean(ToggleCommand.golemAlertToggled));
rngesusAlert = new GuiButton(0, 0, 0, "RNGesus Alerts: " + Utils.getColouredBoolean(ToggleCommand.rngesusAlerts));
splitFishing = new GuiButton(0, 0, 0, "Split Fishing Display: " + Utils.getColouredBoolean(ToggleCommand.splitFishing));
lowHealthNotify = new GuiButton(0, 0, 0, "Low Health Notifications: " + Utils.getColouredBoolean(ToggleCommand.lowHealthNotifyToggled));
@@ -326,7 +326,7 @@ public class DankerGui extends GuiScreen {
} else if (button == golemAlerts) {
ToggleCommand.golemAlertToggled = !ToggleCommand.golemAlertToggled;
ConfigHandler.writeBooleanConfig("toggles", "GolemAlerts", ToggleCommand.golemAlertToggled);
- golemAlerts.displayString = "Alert When Golem Spawns: " + Utils.getColouredBoolean(ToggleCommand.golemAlertToggled);
+ golemAlerts.displayString = "Golem Spawn Alert And Timer: " + Utils.getColouredBoolean(ToggleCommand.golemAlertToggled);
} else if (button == expertiseLore) {
ToggleCommand.expertiseLoreToggled = !ToggleCommand.expertiseLoreToggled;
ConfigHandler.writeBooleanConfig("toggles", "ExpertiseLore", ToggleCommand.expertiseLoreToggled);
diff --git a/src/main/java/me/Danker/gui/EditLocationsGui.java b/src/main/java/me/Danker/gui/EditLocationsGui.java
index cefe0a3..3a7c94b 100644
--- a/src/main/java/me/Danker/gui/EditLocationsGui.java
+++ b/src/main/java/me/Danker/gui/EditLocationsGui.java
@@ -28,6 +28,7 @@ public class EditLocationsGui extends GuiScreen {
private LocationButton skillTracker;
private LocationButton waterAnswer;
private LocationButton bonzoTimer;
+ private LocationButton golemTimer;
@Override
public boolean doesGuiPauseGame() {
@@ -93,8 +94,8 @@ public class EditLocationsGui extends GuiScreen {
cakeTimer = new LocationButton(0, MoveCommand.cakeTimerXY[0], MoveCommand.cakeTimerXY[1] + 5, 85 * ScaleCommand.cakeTimerScale, 18 * ScaleCommand.cakeTimerScale, ScaleCommand.cakeTimerScale, CakeTimer.CAKE_COLOUR + " 11h16m", null, null);
skillTracker = new LocationButton(0, MoveCommand.skillTrackerXY[0], MoveCommand.skillTrackerXY[1], 150 * ScaleCommand.skillTrackerScale, 28 * ScaleCommand.skillTrackerScale, ScaleCommand.skillTrackerScale, skillTrackerText, null, null);
waterAnswer = new LocationButton(0, MoveCommand.waterAnswerXY[0], MoveCommand.waterAnswerXY[1], 190 * ScaleCommand.waterAnswerScale, 54 * ScaleCommand.waterAnswerScale, ScaleCommand.waterAnswerScale, waterAnswerText, null, null);
- bonzoTimer = new LocationButton(0, MoveCommand.bonzoTimerXY[0], MoveCommand.bonzoTimerXY[1] + 5, 85 * ScaleCommand.bonzoTimerScale, 18 * ScaleCommand.bonzoTimerScale, ScaleCommand.bonzoTimerScale, BonzoMaskTimer.BONZO_COLOR + " 3m30s", null, null);
-
+ bonzoTimer = new LocationButton(0, MoveCommand.bonzoTimerXY[0], MoveCommand.bonzoTimerXY[1] + 5, 53 * ScaleCommand.bonzoTimerScale, 18 * ScaleCommand.bonzoTimerScale, ScaleCommand.bonzoTimerScale, BonzoMaskTimer.BONZO_COLOR + " 3m30s", null, null);
+ golemTimer = new LocationButton(0, MoveCommand.golemTimerXY[0], MoveCommand.golemTimerXY[1] + 5, 42 * ScaleCommand.golemTimerScale, 18 * ScaleCommand.golemTimerScale, ScaleCommand.golemTimerScale, GolemSpawningAlert.GOLEM_COLOUR + " 20s", null, null);
this.buttonList.add(coords);
this.buttonList.add(dungeonTimer);
@@ -105,6 +106,7 @@ public class EditLocationsGui extends GuiScreen {
this.buttonList.add(bonzoTimer);
this.buttonList.add(display);
this.buttonList.add(skill50);
+ this.buttonList.add(golemTimer);
}
@Override
@@ -126,6 +128,12 @@ public class EditLocationsGui extends GuiScreen {
Gui.drawModalRectWithCustomSizedTexture(MoveCommand.bonzoTimerXY[0], MoveCommand.bonzoTimerXY[1], 0, 0, 16, 16, 16, 16);
GL11.glScaled(bonzoTimerScaleReset, bonzoTimerScaleReset, bonzoTimerScaleReset);
+ double golemTimerScale = ScaleCommand.golemTimerScale;
+ double golemTimerScaleReset = Math.pow(golemTimerScale, -1);
+ GL11.glScaled(golemTimerScale, golemTimerScale, golemTimerScale);
+ mc.getTextureManager().bindTexture(GolemSpawningAlert.GOLEM_ICON);
+ Gui.drawModalRectWithCustomSizedTexture(MoveCommand.golemTimerXY[0], MoveCommand.golemTimerXY[1], 0, 0, 16, 16, 16, 16);
+ GL11.glScaled(golemTimerScaleReset, golemTimerScaleReset, golemTimerScaleReset);
super.drawScreen(mouseX, mouseY, partialTicks);
}
@@ -190,6 +198,12 @@ public class EditLocationsGui extends GuiScreen {
bonzoTimer.xPosition = MoveCommand.bonzoTimerXY[0];
bonzoTimer.yPosition = MoveCommand.bonzoTimerXY[1];
break;
+ case "golemTimer":
+ MoveCommand.golemTimerXY[0] += xMoved;
+ MoveCommand.golemTimerXY[1] += yMoved;
+ golemTimer.xPosition = MoveCommand.golemTimerXY[0];
+ golemTimer.yPosition = MoveCommand.golemTimerXY[1];
+ break;
}
this.buttonList.clear();
initGui();
@@ -220,6 +234,8 @@ public class EditLocationsGui extends GuiScreen {
moving = "waterAnswer";
} else if (button == bonzoTimer) {
moving = "bonzoTimer";
+ } else if (button == golemTimer) {
+ moving = "golemTimer";
}
}
}
@@ -246,6 +262,8 @@ public class EditLocationsGui extends GuiScreen {
ConfigHandler.writeIntConfig("locations", "waterAnswerY", MoveCommand.waterAnswerXY[1]);
ConfigHandler.writeIntConfig("locations", "bonzoTimerX", MoveCommand.bonzoTimerXY[0]);
ConfigHandler.writeIntConfig("locations", "bonzoTimerY", MoveCommand.bonzoTimerXY[1]);
+ ConfigHandler.writeIntConfig("locations", "golemTimerX", MoveCommand.golemTimerXY[0]);
+ ConfigHandler.writeIntConfig("locations", "golemTimerY", MoveCommand.golemTimerXY[1]);
}
}