Clock & Pack Display Mod Text After Value Fix

This commit is contained in:
kirillsaint 2023-09-14 17:26:04 +06:00
parent d4abfa6642
commit 0c7bd992ee
3 changed files with 18 additions and 15 deletions

View File

@ -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() {

View File

@ -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);
}

View File

@ -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<String> options = new ArrayList<>();