Leiv's GUI Engine_NeoForge_1.21.1 (v.1.0.0)
Curse Maven Snippet
What's new
🚀 Initial Release: Leiv's GUI Engine v1.0.0 (NeoForge 1.21.1)
Welcome to the initial release of Leiv's GUI Engine for NeoForge 1.21.1! This library establishes the visual foundation for the entire Leiv Ecosystem, providing high-performance overlays, dynamic menus, and interactive tooltips.
✨ Features & Additions
- 🎉 Initial Release: Fully ported and optimized for NeoForge 1.21.1.
- 🎨 Modular HUD System: Introduced the
HudAnchorpositioning system. Mods can now easily register HUD overlays that players can freely toggle and snap to any screen corner (Top-Left, Top-Right, Bottom-Left, Bottom-Right). - ⚙️ Rule-Driven UI: Added automatic UI generation. The engine now seamlessly reads
ValueRule<T>objects from Leiv's API to build interactive buttons, sliders, and toggles dynamically. - 📝 Dynamic Tooltips: Integrated instant tooltip rendering. Hovering over any generated setting will now perfectly display localized descriptions via Leiv's Translation API.
🛠️ Technical & API Details (For Developers)
- 🖥️ Safe Screen Injection: Implemented robust rendering hooks for NeoForge to ensure custom HUDs and config screens are drawn safely on the main render thread without causing FPS drops.
- 📐 Resolution Scaling: Overlays now automatically calculate correct X/Y coordinates based on the user's GUI Scale and current window resolution.
🔗 Dependencies
To use this version, please ensure the following libraries are installed in your mods folder:
- Requires:
Leiv's Lib(v1.0.0+) - Requires:
Leiv's API(v1.0.0+) - Requires:
Leiv's Translation API(v1.0.0+)
This mod has no additional files

