diff options
| author | Phoebe <77941535+catgirlseraid@users.noreply.github.com> | 2024-05-17 22:29:33 +1200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-17 12:29:33 +0200 |
| commit | 26f5797bf55cbc34c5c0ae606e6560bb0a1c5661 (patch) | |
| tree | efcc69f7c95042e2ab74ddc4268927f8db2939f9 /src/main/java/io/github/moulberry/notenoughupdates/profileviewer/ExtraPage.java | |
| parent | 09dda65fe0f7280836dedf764945cf9af9e844ba (diff) | |
| download | notenoughupdates-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/ExtraPage.java')
| -rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/profileviewer/ExtraPage.java | 21 |
1 files changed, 15 insertions, 6 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 fd6f701a..78ed2218 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/ExtraPage.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/ExtraPage.java @@ -224,7 +224,7 @@ public class ExtraPage extends GuiProfileViewerPage { int guiLeft = GuiProfileViewer.getGuiLeft(); int guiTop = GuiProfileViewer.getGuiTop(); - drawSideButtons(); + drawSideButtons(mouseX, mouseY); if (onHoppityPage) { hoppityPage.drawPage(mouseX, mouseY, partialTicks); @@ -343,6 +343,7 @@ public class ExtraPage extends GuiProfileViewerPage { )); int fairySouls = data.fairy_soul.total_collected; + boolean cookieBuff = data.profile.cookie_buff_active; int fairySoulMax = 227; if (Constants.FAIRYSOULS != null && Constants.FAIRYSOULS.has("Max Souls")) { @@ -415,6 +416,14 @@ public class ExtraPage extends GuiProfileViewerPage { guiTop + yStartBottom + yOffset * 4, 76 ); + + Utils.renderAlignedString( + EnumChatFormatting.GOLD + "Cookie Buff", + (cookieBuff) ? EnumChatFormatting.LIGHT_PURPLE + "Active" : EnumChatFormatting.RED + "Inactive", + guiLeft + xStart, + guiTop + yStartBottom + yOffset * 5, + 76 + ); } float auctions_bids = auctions.bids; @@ -652,21 +661,21 @@ public class ExtraPage extends GuiProfileViewerPage { topKills = null; } - private void drawSideButtons() { + private void drawSideButtons(int mouseX, int mouseY) { GlStateManager.enableDepth(); GlStateManager.translate(0, 0, 5); if (onHoppityPage) { - Utils.drawPvSideButton(1, pageModeIcon.get("hoppity"), true, getInstance()); + Utils.drawPvSideButton(1, pageModeIcon.get("hoppity"), true, getInstance(), mouseX, mouseY); } else { - Utils.drawPvSideButton(0, pageModeIcon.get("stats"), true, getInstance()); + Utils.drawPvSideButton(0, pageModeIcon.get("stats"), true, getInstance(), mouseX, mouseY); } GlStateManager.translate(0, 0, -3); GlStateManager.translate(0, 0, -2); if (!onHoppityPage) { - Utils.drawPvSideButton(1, pageModeIcon.get("hoppity"), false, getInstance()); + Utils.drawPvSideButton(1, pageModeIcon.get("hoppity"), false, getInstance(), mouseX, mouseY); } else { - Utils.drawPvSideButton(0, pageModeIcon.get("stats"), false, getInstance()); + Utils.drawPvSideButton(0, pageModeIcon.get("stats"), false, getInstance(), mouseX, mouseY); } GlStateManager.disableDepth(); } |
