aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/profileviewer/GuiProfileViewer.java19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/GuiProfileViewer.java b/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/GuiProfileViewer.java
index 2dcce1fb..c4ba85db 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/GuiProfileViewer.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/GuiProfileViewer.java
@@ -557,6 +557,25 @@ public class GuiProfileViewer extends GuiScreen {
}
}
}
+ int x = guiLeft + sizeX;
+ int y = guiTop;
+ List<String> previousProfileSearches = NotEnoughUpdates.INSTANCE.config.hidden.previousProfileSearches;
+
+ if (mouseX > x && mouseX < x + 29) {
+ if (mouseY > y && mouseY < y + 28) {
+ tooltipToDisplay = new ArrayList<>();
+ tooltipToDisplay.add(Minecraft.getMinecraft().thePlayer.getName());
+ }
+ }
+
+ for (int i = 0; i < previousProfileSearches.size(); i++) {
+ if (mouseX > x && mouseX < x + 28) {
+ if (mouseY > y + 28 * (i + 1) && mouseY < y + 28 * (i + 2)) {
+ tooltipToDisplay = new ArrayList<>();
+ tooltipToDisplay.add(previousProfileSearches.get(i));
+ }
+ }
+ }
if (tooltipToDisplay != null) {
List<String> grayTooltip = new ArrayList<>(tooltipToDisplay.size());