From 26f5797bf55cbc34c5c0ae606e6560bb0a1c5661 Mon Sep 17 00:00:00 2001 From: Phoebe <77941535+catgirlseraid@users.noreply.github.com> Date: Fri, 17 May 2024 22:29:33 +1200 Subject: Add tooltip in pv tabs and cookie buff to pv (#1173) Co-authored-by: SeRaid <77941535+SeRaid743@users.noreply.github.com> --- .../notenoughupdates/profileviewer/BasicPage.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/main/java/io/github/moulberry/notenoughupdates/profileviewer/BasicPage.java') diff --git a/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/BasicPage.java b/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/BasicPage.java index ea71a2b5..6c43f14b 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/BasicPage.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/BasicPage.java @@ -91,7 +91,7 @@ public class BasicPage extends GuiProfileViewerPage { "first_page", Utils.editItemStackInfo( new ItemStack(Items.paper), - EnumChatFormatting.GRAY + "Front Page", + EnumChatFormatting.GRAY + "Home", true ) ); @@ -99,7 +99,7 @@ public class BasicPage extends GuiProfileViewerPage { "second_page", Utils.editItemStackInfo( skull, - EnumChatFormatting.GRAY + "Level Page", + EnumChatFormatting.GRAY + "Level", true ) ); @@ -804,7 +804,7 @@ public class BasicPage extends GuiProfileViewerPage { ); } - drawSideButtons(); + drawSideButtons(mouseX, mouseY); if (NotEnoughUpdates.INSTANCE.config.profileViewer.displayWeight) { renderWeight(mouseX, mouseY, selectedProfile); } @@ -1061,21 +1061,21 @@ public class BasicPage extends GuiProfileViewerPage { return false; } - public void drawSideButtons() { + public void drawSideButtons(int mouseX, int mouseY) { GlStateManager.enableDepth(); GlStateManager.translate(0, 0, 5); if (onSecondPage) { - Utils.drawPvSideButton(1, pageModeIcon.get("second_page"), true, guiProfileViewer); + Utils.drawPvSideButton(1, pageModeIcon.get("second_page"), true, guiProfileViewer, mouseX, mouseY); } else { - Utils.drawPvSideButton(0, pageModeIcon.get("first_page"), true, guiProfileViewer); + Utils.drawPvSideButton(0, pageModeIcon.get("first_page"), true, guiProfileViewer, mouseX, mouseY); } GlStateManager.translate(0, 0, -3); GlStateManager.translate(0, 0, -2); if (!onSecondPage) { - Utils.drawPvSideButton(1, pageModeIcon.get("second_page"), false, guiProfileViewer); + Utils.drawPvSideButton(1, pageModeIcon.get("second_page"), false, guiProfileViewer, mouseX, mouseY); } else { - Utils.drawPvSideButton(0, pageModeIcon.get("first_page"), false, guiProfileViewer); + Utils.drawPvSideButton(0, pageModeIcon.get("first_page"), false, guiProfileViewer, mouseX, mouseY); } GlStateManager.disableDepth(); } -- cgit