aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/AbiphoneWarning.java
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal002@users.noreply.github.com>2023-03-04 03:03:33 +0100
committerGitHub <noreply@github.com>2023-03-04 13:03:33 +1100
commit5a79ff410eb64e906c555751b32bef87cc7caee9 (patch)
treef2c2e40a7cca305959b04d2dfba99ebc3e822949 /src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/AbiphoneWarning.java
parent5dd063fbba6bde64806a7620541dc2d9bdf42871 (diff)
downloadnotenoughupdates-5a79ff410eb64e906c555751b32bef87cc7caee9.tar.gz
notenoughupdates-5a79ff410eb64e906c555751b32bef87cc7caee9.tar.bz2
notenoughupdates-5a79ff410eb64e906c555751b32bef87cc7caee9.zip
I hate FontRenderer. (#612)
Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
Diffstat (limited to 'src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/AbiphoneWarning.java')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/AbiphoneWarning.java31
1 files changed, 8 insertions, 23 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/AbiphoneWarning.java b/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/AbiphoneWarning.java
index 2c28bcd1..69b0a1b6 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/AbiphoneWarning.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/AbiphoneWarning.java
@@ -120,29 +120,24 @@ public class AbiphoneWarning extends GuiElement {
int neuLength = Minecraft.getMinecraft().fontRendererObj.getStringWidth("\u00a7lNEU");
Minecraft.getMinecraft().fontRendererObj.drawString(
"\u00a7lNEU",
- width / 2 + 90 - neuLength - 3,
- height / 2 - 45 + 4,
- 0xff000000
+ width / 2 + 90 - neuLength - 3, height / 2 - 45 + 4, 0xff000000
);
- TextRenderUtils.drawStringCenteredScaledMaxWidth("Are you SURE?", Minecraft.getMinecraft().fontRendererObj,
+ TextRenderUtils.drawStringCenteredScaledMaxWidth(
+ "Are you SURE?",
width / 2, height / 2 - 45 + 10, false, 170, 0xffff4040
);
String sellLine = "\u00a77[ \u00a7r" + contactName + "\u00a77 ]";
- TextRenderUtils.drawStringCenteredScaledMaxWidth(sellLine, Minecraft.getMinecraft().fontRendererObj,
+ TextRenderUtils.drawStringCenteredScaledMaxWidth(
+ sellLine,
width / 2, height / 2 - 45 + 25, false, 170, 0xffffffff
);
TextRenderUtils.drawStringCenteredScaledMaxWidth(
"Continue removing this contact?",
- Minecraft.getMinecraft().fontRendererObj,
- width / 2,
- height / 2 - 45 + 50,
- false,
- 170,
- 0xffa0a0a0
+ width / 2, height / 2 - 45 + 50, false, 170, 0xffa0a0a0
);
RenderUtils.drawFloatingRectDark(width / 2 - 43, height / 2 + 23, 40, 16, false);
@@ -150,21 +145,11 @@ public class AbiphoneWarning 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
);
GlStateManager.popMatrix();