aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/BasicPage.java
diff options
context:
space:
mode:
authorPhoebe <77941535+catgirlseraid@users.noreply.github.com>2024-05-17 22:29:33 +1200
committerGitHub <noreply@github.com>2024-05-17 12:29:33 +0200
commit26f5797bf55cbc34c5c0ae606e6560bb0a1c5661 (patch)
treeefcc69f7c95042e2ab74ddc4268927f8db2939f9 /src/main/java/io/github/moulberry/notenoughupdates/profileviewer/BasicPage.java
parent09dda65fe0f7280836dedf764945cf9af9e844ba (diff)
downloadnotenoughupdates-26f5797bf55cbc34c5c0ae606e6560bb0a1c5661.tar.gz
notenoughupdates-26f5797bf55cbc34c5c0ae606e6560bb0a1c5661.tar.bz2
notenoughupdates-26f5797bf55cbc34c5c0ae606e6560bb0a1c5661.zip
Add tooltip in pv tabs and cookie buff to pv (#1173)
Co-authored-by: SeRaid <77941535+SeRaid743@users.noreply.github.com>
Diffstat (limited to 'src/main/java/io/github/moulberry/notenoughupdates/profileviewer/BasicPage.java')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/profileviewer/BasicPage.java16
1 files changed, 8 insertions, 8 deletions
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();
}