From c0176b70d19685bddd54685fd5cc61ff4e018ed6 Mon Sep 17 00:00:00 2001 From: TudbuT Date: Sat, 5 Oct 2024 10:27:46 +0200 Subject: [PATCH] unugly some hud metas --- .../main/java/de/com/baseband/client/feature/Feature.java | 6 +++--- .../client/feature/modules/client/PacketCounter.java | 6 +++--- .../de/com/baseband/client/feature/modules/client/Ping.java | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Client/src/main/java/de/com/baseband/client/feature/Feature.java b/Client/src/main/java/de/com/baseband/client/feature/Feature.java index 62dd14e..786bb63 100644 --- a/Client/src/main/java/de/com/baseband/client/feature/Feature.java +++ b/Client/src/main/java/de/com/baseband/client/feature/Feature.java @@ -363,13 +363,13 @@ public abstract class Feature extends ToggleButton implements SetCommand { moduleMetaColor = Features.getFeature(HUD.class).moduleMetaColor; switch (moduleMetaColor) { case Future: - return text + (meta != null ? ChatFormatting.GRAY + " [" + ChatFormatting.WHITE + meta + ChatFormatting.GRAY + "]" : ""); + return text + (meta != null ? ChatFormatting.GRAY + " [" + ChatFormatting.WHITE + meta.replace("§r", ChatFormatting.WHITE.toString()) + ChatFormatting.GRAY + "]" : ""); case Colored: return text + (meta != null ? " [" + meta + "]" : ""); case Bracketless: - return text + (meta != null ? ChatFormatting.GRAY + " " + meta : ""); + return text + (meta != null ? ChatFormatting.GRAY + " " + meta.replace("§r", "§7") : ""); default: //Normal - return text + (meta != null ? ChatFormatting.GRAY + " [" + meta + "]" : ""); + return text + (meta != null ? ChatFormatting.GRAY + " [" + meta.replace("§r", "§7") + "§7]" : ""); } } diff --git a/Client/src/main/java/de/com/baseband/client/feature/modules/client/PacketCounter.java b/Client/src/main/java/de/com/baseband/client/feature/modules/client/PacketCounter.java index c80acbc..2f20d16 100644 --- a/Client/src/main/java/de/com/baseband/client/feature/modules/client/PacketCounter.java +++ b/Client/src/main/java/de/com/baseband/client/feature/modules/client/PacketCounter.java @@ -29,9 +29,9 @@ public class PacketCounter extends Feature { @Override public void onEveryTick() { - meta = abbreviate(totUp) + "↑/↓" + abbreviate(totDown) + "] [" + - (up.isEmpty() ? "-" : "§c" + up.size()) + "↑§7/" + - (down.isEmpty() ? "↓-" : "§c↓" + down.size()) + "§7"; + meta = abbreviate(totUp) + "↑/↓" + abbreviate(totDown) + " | " + + (up.isEmpty() ? "-" : "§c" + up.size()) + "↑§r/" + + (down.isEmpty() ? "↓-" : "§c↓" + down.size()); } private String abbreviate(long n) { diff --git a/Client/src/main/java/de/com/baseband/client/feature/modules/client/Ping.java b/Client/src/main/java/de/com/baseband/client/feature/modules/client/Ping.java index 1b2e3ca..bd7ad47 100644 --- a/Client/src/main/java/de/com/baseband/client/feature/modules/client/Ping.java +++ b/Client/src/main/java/de/com/baseband/client/feature/modules/client/Ping.java @@ -48,8 +48,8 @@ public class Ping extends Feature { @Override public void onEveryTick() { meta = milliseconds + "ms: " + - (holderSend.isEmpty() ? "-" : "§c" + holderSend.size()) + "↑§7/" + - (holderRecv.isEmpty() ? "↓-" : "§c↓" + holderRecv.size()) + "§7"; + (holderSend.isEmpty() ? "-" : "§c" + holderSend.size()) + "↑§r/" + + (holderRecv.isEmpty() ? "↓-" : "§c↓" + holderRecv.size()); } @SubscribeEvent