aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/AuctionBINWarning.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/AuctionBINWarning.java')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/AuctionBINWarning.java49
1 files changed, 8 insertions, 41 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/AuctionBINWarning.java b/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/AuctionBINWarning.java
index 7282aad7..2b292aec 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/AuctionBINWarning.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/AuctionBINWarning.java
@@ -183,7 +183,7 @@ public class AuctionBINWarning extends GuiElement {
0xff000000
);
- TextRenderUtils.drawStringCenteredScaledMaxWidth("Are you SURE?", Minecraft.getMinecraft().fontRendererObj,
+ TextRenderUtils.drawStringCenteredScaledMaxWidth("Are you SURE?",
width / 2, height / 2 - 45 + 10, false, 170, 0xffff4040
);
@@ -203,19 +203,14 @@ public class AuctionBINWarning extends GuiElement {
String sellLine = "\u00a77[ \u00a7r" + sellingName + "\u00a77 ]";
- TextRenderUtils.drawStringCenteredScaledMaxWidth(sellLine, Minecraft.getMinecraft().fontRendererObj,
+ TextRenderUtils.drawStringCenteredScaledMaxWidth(sellLine,
width / 2, height / 2 - 45 + 25, false, 170, 0xffffffff
);
TextRenderUtils.drawStringCenteredScaledMaxWidth(
(lowestPrice > 0
? "has a lowest BIN of \u00a76" + lowestPriceStr + "\u00a7r coins"
: "\u00a7cWarning: No lowest BIN found!"),
- Minecraft.getMinecraft().fontRendererObj,
- width / 2,
- height / 2 - 45 + 34,
- false,
- 170,
- 0xffa0a0a0
+ width / 2, height / 2 - 45 + 34, false, 170, 0xffa0a0a0
);
if (sellingPrice > lowestPrice * sellStackAmount) {
@@ -229,22 +224,12 @@ public class AuctionBINWarning extends GuiElement {
TextRenderUtils.drawStringCenteredScaledMaxWidth(
"Continue selling it for",
- Minecraft.getMinecraft().fontRendererObj,
- width / 2,
- height / 2 - 45 + 50,
- false,
- 170,
- 0xffa0a0a0
+ width / 2, height / 2 - 45 + 50, false, 170, 0xffa0a0a0
);
TextRenderUtils.drawStringCenteredScaledMaxWidth(
"\u00a76" + sellingPriceStr + "\u00a7r coins?" +
(lowestPrice > 0 ? "(\u00a7" + (isALoss ? "c-" : "a+") + (buyPercentage >= 100 ? buyPercentage - 100 : buyPercentage) + "%\u00a7r)" : ""),
- Minecraft.getMinecraft().fontRendererObj,
- width / 2,
- height / 2 - 45 + 59,
- false,
- 170,
- 0xffa0a0a0
+ width / 2, height / 2 - 45 + 59, false, 170, 0xffa0a0a0
);
RenderUtils.drawFloatingRectDark(width / 2 - 43, height / 2 + 23, 40, 16, false);
@@ -252,21 +237,11 @@ public class AuctionBINWarning extends GuiElement {
TextRenderUtils.drawStringCenteredScaledMaxWidth(
EnumChatFormatting.GREEN + "[Y]es",
- Minecraft.getMinecraft().fontRendererObj,
- width / 2 - 23,
- height / 2 + 31,
- true,
- 36,
- 0xff00ff00
+ width / 2 - 23, height / 2 + 31, true, 36, 0xff00ff00
);
TextRenderUtils.drawStringCenteredScaledMaxWidth(
EnumChatFormatting.RED + "[N]o",
- Minecraft.getMinecraft().fontRendererObj,
- width / 2 + 23,
- height / 2 + 31,
- true,
- 36,
- 0xffff0000
+ width / 2 + 23, height / 2 + 31, true, 36, 0xffff0000
);
if (sellingTooltip != null) {
@@ -277,15 +252,7 @@ public class AuctionBINWarning extends GuiElement {
if (mouseX >= width / 2 - sellLineLength / 2 && mouseX <= width / 2 + sellLineLength / 2 &&
mouseY >= height / 2 - 45 + 20 && mouseY <= height / 2 - 45 + 30) {
- Utils.drawHoveringText(
- sellingTooltip,
- mouseX,
- mouseY,
- width,
- height,
- -1,
- Minecraft.getMinecraft().fontRendererObj
- );
+ Utils.drawHoveringText(sellingTooltip, mouseX, mouseY, width, height, -1);
}
}