From e514a4502b842335116d0d8c3a31944a53bdbc44 Mon Sep 17 00:00:00 2001 From: Stephen Seo Date: Fri, 28 Sep 2018 19:21:49 +0900 Subject: [PATCH] Add bg to text in BattleGui --- .../com/seodisparate/TurnBasedMinecraft/client/BattleGui.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/com/seodisparate/TurnBasedMinecraft/client/BattleGui.java b/src/main/java/com/seodisparate/TurnBasedMinecraft/client/BattleGui.java index fab91ab..e42b8e3 100644 --- a/src/main/java/com/seodisparate/TurnBasedMinecraft/client/BattleGui.java +++ b/src/main/java/com/seodisparate/TurnBasedMinecraft/client/BattleGui.java @@ -260,8 +260,10 @@ public class BattleGui extends GuiScreen } timeRemainingString += Integer.toString(timeRemainingInt); int stringWidth = Minecraft.getMinecraft().fontRenderer.getStringWidth(timeRemainingString); + drawRect(width/2 - stringWidth/2, 5, width/2 + stringWidth/2, 15, 0x70000000); Minecraft.getMinecraft().fontRenderer.drawString(timeRemainingString, width/2 - stringWidth/2, 5, 0xFFFFFFFF); stringWidth = Minecraft.getMinecraft().fontRenderer.getStringWidth(info); + drawRect(width/2 - stringWidth/2, 20, width/2 + stringWidth/2, 30, 0x70000000); Minecraft.getMinecraft().fontRenderer.drawString(info, width/2 - stringWidth/2, 20, 0xFFFFFFFF); }