-
Notifications
You must be signed in to change notification settings - Fork 0
HUD & Display
MarieLib provides framework hooks for on-screen value bar rendering. Consuming mods implement the actual HUD appearance.
Consuming mods register value keys with colors and display names. MarieLib tracks levels and exposes them to client renderers.
Each value bar shows a normalized level from 0.0 to 1.0.
Mods can attach a custom ValueRenderer to a ValueDefinition:
ValueDefinition custom = ValueDefinition.builder("energy")
.displayName("Energy")
.color(0xFF00FF00)
.customRenderer(myRenderer)
.build();ValueRenderer receives GuiGraphics, position, and current level for custom draw logic.
HUD display is controlled by the enableHud module flag in ModuleCache. Consuming mods expose this in their config screen.
Additional HUD settings (position, opacity, hide thresholds) are owned by the consuming mod. For Nourished's nutrition HUD, see the Nourished HUD & Display page.
MarieLib provides a toast manager for critical value notifications. Enabled via the enableToasts module flag.
MarieLib · Shared framework for Marie mods · Documentation for 1.0.x