hud: port Totem/Crystal/XP counters from Sydney

Three separate draggable HUD modules, one per Sydney element (TotemCounter,
CrystalCounter, XPCounter), each rendering the item icon with its stacked
count. Hidden while the count is zero, matching Sydney; the editor box keeps
its nominal 16x16 size so the element stays draggable.

Adds InventoryUtil.count(Item) covering storage, hotbar and offhand (an
offhand totem must count).
This commit is contained in:
froslanz
2026-10-30 11:56:03 -04:00
parent 0d86808824
commit 0f8f5d3f3d
5 changed files with 117 additions and 0 deletions
@@ -21,8 +21,11 @@ import cc.fros.features.modules.combat.KeyPearlModule;
import cc.fros.features.modules.combat.SurroundModule;
import cc.fros.features.modules.hud.ArrayListHudModule;
import cc.fros.features.modules.hud.ArmorHudModule;
import cc.fros.features.modules.hud.CrystalHudModule;
import cc.fros.features.modules.hud.ServerHudModule;
import cc.fros.features.modules.hud.TotemHudModule;
import cc.fros.features.modules.hud.TpsHudModule;
import cc.fros.features.modules.hud.XpHudModule;
import cc.fros.features.modules.hud.CoordinatesHudModule;
import cc.fros.features.modules.hud.FpsHudModule;
import cc.fros.features.modules.hud.PingHudModule;
@@ -69,6 +72,9 @@ public class ModuleManager implements Jsonable, Util {
register(new ArmorHudModule());
register(new TpsHudModule());
register(new ServerHudModule());
register(new TotemHudModule());
register(new CrystalHudModule());
register(new XpHudModule());
register(new HudEditorModule());
register(new ClickGuiModule());
register(new NotificationsModule());