add Armor HUD module showing worn armor durability

lists the four worn armor pieces helmet-to-boots, skipping empty slots.
with Icons on (default) each row draws the item icon with its durability
percentage beside it, vertically centered; with Icons off it draws the
item's hover name plus the percentage as plain text. the percentage is
colored by condition (green >= 60%, yellow >= 30%, red below) and shows
a dash for items without durability. width/height track the drawn rows
so the editor box matches, falling back to the constructor size when
nothing is equipped
This commit is contained in:
froslanz
2026-10-24 12:57:42 -04:00
parent accbc69521
commit 6593a3f089
2 changed files with 82 additions and 0 deletions
@@ -18,6 +18,7 @@ import cc.fros.features.modules.combat.KillAuraModule;
import cc.fros.features.modules.combat.CriticalsModule;
import cc.fros.features.modules.combat.KeyPearlModule;
import cc.fros.features.modules.hud.ArrayListHudModule;
import cc.fros.features.modules.hud.ArmorHudModule;
import cc.fros.features.modules.hud.CoordinatesHudModule;
import cc.fros.features.modules.hud.FpsHudModule;
import cc.fros.features.modules.hud.PingHudModule;
@@ -57,6 +58,7 @@ public class ModuleManager implements Jsonable, Util {
register(new RadarHudModule());
register(new WelcomerHudModule());
register(new TimeHudModule());
register(new ArmorHudModule());
register(new HudEditorModule());
register(new ClickGuiModule());
register(new NotificationsModule());