diff options
author | Lulonaut <67191924+Lulonaut@users.noreply.github.com> | 2022-05-03 21:57:35 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-03 21:57:35 +0200 |
commit | 43257b6d28934b2ff9651f0a2654c46ea0a909ca (patch) | |
tree | 51feace2e433b8a09c298a43e6b123c162e82f9c | |
parent | 7243827ec602efa0d2386ab53a61472465e8555a (diff) | |
download | NotEnoughUpdates-43257b6d28934b2ff9651f0a2654c46ea0a909ca.tar.gz NotEnoughUpdates-43257b6d28934b2ff9651f0a2654c46ea0a909ca.tar.bz2 NotEnoughUpdates-43257b6d28934b2ff9651f0a2654c46ea0a909ca.zip |
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
-rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/profileviewer/BingoPage.java | 18 |
1 files changed, 1 insertions, 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"); |