aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorCalMWolfs <94038482+CalMWolfs@users.noreply.github.com>2024-05-31 22:28:54 +1000
committerGitHub <noreply@github.com>2024-05-31 22:28:54 +1000
commitc20969ccecc09dc74792f3348c3061a2c5a3fa1a (patch)
treeac93f89dd76f1729ab655433bca4d8c16ed3b646 /src/main/java
parent7227b4d7309b71c43aba8d4c8a2bfba0fbd9a0ba (diff)
downloadNotEnoughUpdates-c20969ccecc09dc74792f3348c3061a2c5a3fa1a.tar.gz
NotEnoughUpdates-c20969ccecc09dc74792f3348c3061a2c5a3fa1a.tar.bz2
NotEnoughUpdates-c20969ccecc09dc74792f3348c3061a2c5a3fa1a.zip
Add Hoppity rank in pv (#1191)
Co-authored-by: jani270 <69345714+jani270@users.noreply.github.com> Co-authored-by: SeRaid <77941535+SeRaid743@users.noreply.github.com> Co-authored-by: Phoebe <77941535+catgirlseraid@users.noreply.github.com> Co-authored-by: nopo <nopotheemail@gmail.com> Co-authored-by: NopoTheGamer <40329022+NopoTheGamer@users.noreply.github.com>
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/profileviewer/ExtraPage.java26
1 files changed, 15 insertions, 11 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/ExtraPage.java b/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/ExtraPage.java
index 5f3a31f1..4ceea2e9 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/ExtraPage.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/ExtraPage.java
@@ -127,17 +127,6 @@ public class ExtraPage extends GuiProfileViewerPage {
int guiTop = GuiProfileViewer.getGuiTop();
super.mouseClicked(mouseX, mouseY, mouseButton);
- // Dimensions: X: guiLeft + xStart + xOffset * 3, Y: guiTop + yStartBottom + 77, Width: 80, Height: 12
- if (mouseX >= GuiProfileViewer.getGuiLeft() + 22 + 103 * 3 &&
- mouseX <= GuiProfileViewer.getGuiLeft() + 22 + 103 * 3 + 80 &&
- mouseY >= GuiProfileViewer.getGuiTop() + 105 + 77 && mouseY <= GuiProfileViewer.getGuiTop() + 105 + 77 + 12) {
- getInstance().killDeathSearchTextField.mouseClicked(mouseX, mouseY, mouseButton);
- getInstance().playerNameTextField.otherComponentClick();
- return true;
- }
-
- getInstance().killDeathSearchTextField.otherComponentClick();
-
int i = ProfileViewerUtils.onSlotToChangePage(mouseX, mouseY, guiLeft, guiTop);
switch (i) {
case 1:
@@ -151,6 +140,21 @@ public class ExtraPage extends GuiProfileViewerPage {
break;
}
+ if (onHoppityPage) {
+ return hoppityPage.mouseClicked(mouseX, mouseY, mouseButton);
+ }
+
+ // Dimensions: X: guiLeft + xStart + xOffset * 3, Y: guiTop + yStartBottom + 77, Width: 80, Height: 12
+ if (mouseX >= GuiProfileViewer.getGuiLeft() + 22 + 103 * 3 &&
+ mouseX <= GuiProfileViewer.getGuiLeft() + 22 + 103 * 3 + 80 &&
+ mouseY >= GuiProfileViewer.getGuiTop() + 105 + 77 && mouseY <= GuiProfileViewer.getGuiTop() + 105 + 77 + 12) {
+ getInstance().killDeathSearchTextField.mouseClicked(mouseX, mouseY, mouseButton);
+ getInstance().playerNameTextField.otherComponentClick();
+ return true;
+ }
+
+ getInstance().killDeathSearchTextField.otherComponentClick();
+
return false;
}