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:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user