diff --git a/src/main/java/net/silentclient/client/mods/HudMod.java b/src/main/java/net/silentclient/client/mods/HudMod.java index daaeed3..24d8cfc 100644 --- a/src/main/java/net/silentclient/client/mods/HudMod.java +++ b/src/main/java/net/silentclient/client/mods/HudMod.java @@ -1,10 +1,10 @@ package net.silentclient.client.mods; -import java.awt.Color; - import net.silentclient.client.Client; -import net.silentclient.client.gui.lite.clickgui.utils.RenderUtils; import net.silentclient.client.gui.hud.ScreenPosition; +import net.silentclient.client.gui.lite.clickgui.utils.RenderUtils; + +import java.awt.*; public class HudMod extends ModDraggable { @@ -21,6 +21,11 @@ public class HudMod extends ModDraggable { @Override public void setup() { + setupWithAfterValue(); + this.addInputSetting("Text After Value", this, getDefautPostText(), true); + } + + public void setupWithAfterValue() { super.setup(); this.addBooleanSetting("Background", this, true); this.addColorSetting("Background Color", this, new Color(0, 0, 0), 127); @@ -28,7 +33,6 @@ public class HudMod extends ModDraggable { this.addBooleanSetting("Font Shadow", this, true); this.addBooleanSetting("Brackets", this, false); this.addBooleanSetting("Fancy Font", this, false); - this.addInputSetting("Text After Value", this, getDefautPostText(), true); } public String getText() { diff --git a/src/main/java/net/silentclient/client/mods/hud/ClockMod.java b/src/main/java/net/silentclient/client/mods/hud/ClockMod.java index c4b269f..1eff01b 100644 --- a/src/main/java/net/silentclient/client/mods/hud/ClockMod.java +++ b/src/main/java/net/silentclient/client/mods/hud/ClockMod.java @@ -1,13 +1,13 @@ package net.silentclient.client.mods.hud; -import java.text.DateFormat; -import java.text.SimpleDateFormat; -import java.util.Calendar; - import net.silentclient.client.Client; import net.silentclient.client.mods.HudMod; import net.silentclient.client.mods.ModCategory; +import java.text.DateFormat; +import java.text.SimpleDateFormat; +import java.util.Calendar; + public class ClockMod extends HudMod { public ClockMod() { super("Clock", ModCategory.MODS, "silentclient/icons/mods/clock.png", false); @@ -15,7 +15,7 @@ public class ClockMod extends HudMod { @Override public void setup() { - super.setup(); + super.setupWithAfterValue(); this.addBooleanSetting("24 Hour Format", this, false); } diff --git a/src/main/java/net/silentclient/client/mods/hud/PackDisplayMod.java b/src/main/java/net/silentclient/client/mods/hud/PackDisplayMod.java index 672e251..18580e7 100644 --- a/src/main/java/net/silentclient/client/mods/hud/PackDisplayMod.java +++ b/src/main/java/net/silentclient/client/mods/hud/PackDisplayMod.java @@ -1,11 +1,6 @@ package net.silentclient.client.mods.hud; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; - import com.google.common.collect.Lists; - import net.minecraft.client.Minecraft; import net.minecraft.client.renderer.GlStateManager; import net.minecraft.client.renderer.texture.DynamicTexture; @@ -18,6 +13,10 @@ import net.silentclient.client.mods.CustomFontRenderer; import net.silentclient.client.mods.HudMod; import net.silentclient.client.mods.ModCategory; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + public class PackDisplayMod extends HudMod { private ResourceLocation defaultIcon; @@ -28,7 +27,7 @@ public class PackDisplayMod extends HudMod { @Override public void setup() { - super.setup(); + super.setupWithAfterValue(); this.addBooleanSetting("Pack Icon", this, true); ArrayList options = new ArrayList<>();