unugly some hud metas
All checks were successful
/ Build BaseBand (push) Successful in 2m39s

This commit is contained in:
Daniella / Tove 2024-10-05 10:27:46 +02:00
parent 6975f720a3
commit c0176b70d1
Signed by: TudbuT
GPG key ID: B3CF345217F202D3
3 changed files with 8 additions and 8 deletions

View file

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

View file

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

View file

@ -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