hud: port Potions and Direction from Sydney
- Potions: one row per active effect (icon + name + amplifier + duration), Icons toggle, Sorting mode None/Width/Alphabetical, Color mode Vanilla (effect color) or Client (theme color). Duration comes from MobEffectUtil.formatDuration at the world tick rate, infinite shown as **:** like Sydney. Keeps its last bounds while no effects are active so it stays draggable in the editor. Sydney's Enhanced palette and its VanillaPotions Keep/Move/Hide handling are not ported (the latter would need a new Gui mixin hook) - Direction: "North [-Z]" — facing name capitalized, axis label from Sydney's mapping (north -Z, east +X, south +Z, west -X)
This commit is contained in:
@@ -22,6 +22,7 @@ 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.DirectionHudModule;
|
||||
import cc.fros.features.modules.hud.DurabilityHudModule;
|
||||
import cc.fros.features.modules.hud.HealthHudModule;
|
||||
import cc.fros.features.modules.hud.ServerHudModule;
|
||||
@@ -33,6 +34,7 @@ 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;
|
||||
import cc.fros.features.modules.hud.PotionsHudModule;
|
||||
import cc.fros.features.modules.hud.RadarHudModule;
|
||||
import cc.fros.features.modules.hud.TimeHudModule;
|
||||
import cc.fros.features.modules.hud.WelcomerHudModule;
|
||||
@@ -83,6 +85,8 @@ public class ModuleManager implements Jsonable, Util {
|
||||
register(new DurabilityHudModule());
|
||||
register(new SpeedHudModule());
|
||||
register(new UptimeHudModule());
|
||||
register(new PotionsHudModule());
|
||||
register(new DirectionHudModule());
|
||||
register(new HudEditorModule());
|
||||
register(new ClickGuiModule());
|
||||
register(new NotificationsModule());
|
||||
|
||||
Reference in New Issue
Block a user