From 43257b6d28934b2ff9651f0a2654c46ea0a909ca Mon Sep 17 00:00:00 2001 From: Lulonaut <67191924+Lulonaut@users.noreply.github.com> Date: Tue, 3 May 2022 21:57:35 +0200 Subject: bingo (#124) fix tooltip overlapping on community goals remove contribution rewards from the tooltip as they are different for each goal and not in the api --- .../notenoughupdates/profileviewer/BingoPage.java | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/BingoPage.java b/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/BingoPage.java index 6108901c..444e7087 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/BingoPage.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/BingoPage.java @@ -99,6 +99,7 @@ public class BingoPage { int y = row == 0 ? initialY + yAdjustment : initialY + (24 * row) + yAdjustment; Minecraft.getMinecraft().getRenderItem().renderItemIntoGUI(itemStack, x, y); + y = communityGoal ? y - 1 : y; if (mouseX >= x && mouseX < x + 24) { if (mouseY >= y && mouseY <= y + 24) { Utils.drawHoveringText( @@ -211,23 +212,6 @@ public class BingoPage { tooltip.add(progressBar + EnumChatFormatting.YELLOW + " " + progressString + EnumChatFormatting.GOLD + "/" + EnumChatFormatting.YELLOW + nextTierString); tooltip.add(""); - tooltip.add(EnumChatFormatting.GRAY + "Contribution Rewards"); - tooltip.add( - "Top " + EnumChatFormatting.YELLOW + "1%" + EnumChatFormatting.DARK_GRAY + " - " + EnumChatFormatting.GOLD + - "15 Bingo Points"); - tooltip.add( - "Top " + EnumChatFormatting.YELLOW + "5%" + EnumChatFormatting.DARK_GRAY + " - " + EnumChatFormatting.GOLD + - "12 Bingo Points"); - tooltip.add( - "Top " + EnumChatFormatting.YELLOW + "10%" + EnumChatFormatting.DARK_GRAY + " - " + EnumChatFormatting.GOLD + - "9 Bingo Points"); - tooltip.add( - "Top " + EnumChatFormatting.YELLOW + "25%" + EnumChatFormatting.DARK_GRAY + " - " + EnumChatFormatting.GOLD + - "7 Bingo Points"); - tooltip.add( - "All Contributors" + EnumChatFormatting.DARK_GRAY + " - " + EnumChatFormatting.GOLD + "4 Bingo Points"); - - tooltip.add(""); tooltip.add(EnumChatFormatting.DARK_GRAY.toString() + EnumChatFormatting.ITALIC + "Community Goals are"); tooltip.add( EnumChatFormatting.DARK_GRAY.toString() + EnumChatFormatting.ITALIC + "collaborative - anyone with a"); -- cgit