aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/Danker/gui/OnlySlayerGui.java
diff options
context:
space:
mode:
authorbowser0000 <bowser0000@gmail.com>2021-03-14 22:34:12 -0400
committerbowser0000 <bowser0000@gmail.com>2021-03-14 22:34:12 -0400
commite1fd25b6841e94e0b1861528f3f05378fc23a04f (patch)
treea336ea1e2de1cd5768a3b9acccd4c1e9df2f043c /src/main/java/me/Danker/gui/OnlySlayerGui.java
parent668a2e184c270d01b259bd3f9269892a05bcc870 (diff)
downloadSkyblockMod-e1fd25b6841e94e0b1861528f3f05378fc23a04f.tar.gz
SkyblockMod-e1fd25b6841e94e0b1861528f3f05378fc23a04f.tar.bz2
SkyblockMod-e1fd25b6841e94e0b1861528f3f05378fc23a04f.zip
Add support for rev 5 and auto slayer
Diffstat (limited to 'src/main/java/me/Danker/gui/OnlySlayerGui.java')
-rw-r--r--src/main/java/me/Danker/gui/OnlySlayerGui.java25
1 files changed, 20 insertions, 5 deletions
diff --git a/src/main/java/me/Danker/gui/OnlySlayerGui.java b/src/main/java/me/Danker/gui/OnlySlayerGui.java
index 552a354..6ae1490 100644
--- a/src/main/java/me/Danker/gui/OnlySlayerGui.java
+++ b/src/main/java/me/Danker/gui/OnlySlayerGui.java
@@ -23,6 +23,7 @@ public class OnlySlayerGui extends GuiScreen {
private GuiButton two;
private GuiButton three;
private GuiButton four;
+ private GuiButton five;
@Override
public boolean doesGuiPauseGame() {
@@ -48,9 +49,14 @@ public class OnlySlayerGui extends GuiScreen {
case "III":
onlyNumberInt = 3;
break;
- default:
+ case "IV":
onlyNumberInt = 4;
break;
+ case "V":
+ onlyNumberInt = 5;
+ break;
+ default:
+ return;
}
goBack = new GuiButton(0, 2, height - 30, 100, 20, "Go Back");
@@ -58,10 +64,11 @@ public class OnlySlayerGui extends GuiScreen {
zombie = new GuiButton(0, width / 2 - 200, (int) (height * 0.4), 120, 20, "Zombie");
spider = new GuiButton(0, width / 2 - 60, (int) (height * 0.4), 120, 20, "Spider");
wolf = new GuiButton(0, width / 2 + 80, (int) (height * 0.4), 120, 20, "Wolf");
- one = new GuiButton(0, width / 2 - 190, (int) (height * 0.6), 85, 20, "I");
- two = new GuiButton(0, width / 2 - 95, (int) (height * 0.6), 85, 20, "II");
- three = new GuiButton(0, width / 2 + 10, (int) (height * 0.6), 85, 20, "III");
- four = new GuiButton(0, width / 2 + 115, (int) (height * 0.6), 85, 20, "IV");
+ one = new GuiButton(0, width / 2 - 190, (int) (height * 0.6), 60, 20, "I");
+ two = new GuiButton(0, width / 2 - 110, (int) (height * 0.6), 60, 20, "II");
+ three = new GuiButton(0, width / 2 - 30, (int) (height * 0.6), 60, 20, "III");
+ four = new GuiButton(0, width / 2 + 50, (int) (height * 0.6), 60, 20, "IV");
+ five = new GuiButton(0, width / 2 + 130, (int) (height * 0.6), 60, 20, "V");
this.buttonList.add(off);
this.buttonList.add(zombie);
@@ -71,6 +78,7 @@ public class OnlySlayerGui extends GuiScreen {
this.buttonList.add(two);
this.buttonList.add(three);
this.buttonList.add(four);
+ this.buttonList.add(five);
this.buttonList.add(goBack);
}
@@ -115,6 +123,8 @@ public class OnlySlayerGui extends GuiScreen {
onlyNumberInt = 3;
} else if (button == four) {
onlyNumberInt = 4;
+ } else if (button == five) {
+ onlyNumberInt = 5;
}
String onlyNumber;
@@ -129,6 +139,11 @@ public class OnlySlayerGui extends GuiScreen {
onlyNumber = "III";
break;
case 4:
+ onlyNumber = "IV";
+ break;
+ case 5:
+ onlyNumber = "V";
+ break;
default:
onlyNumber = "IV";
}