跳到正文

Leiv’s GUI Engine

作者:leiv436

Leiv's GUI Engine is a lightweight, high-performance UI framework that powers modern, seamless, and unified menus and live HUD overlays across all my mods.

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

🎨 Leiv’s GUI Engine

Leiv’s GUI Engine is the visual rendering framework and interface library of the Leiv Ecosystem Suite.

While Leiv’s API handles the logic and Leiv’s Translation API manages the text, this library powers everything you actually see on screen. It is a highly optimized, cross-loader system designed to render dynamic HUDs, interactive configuration menus, and responsive tooltips. It ensures that mods like Keybind Profiles and ItemCuller have beautiful, highly customizable, and consistent user interfaces across all mod loaders.

⚠️ PLAYER NOTE: This is a required core dependency for user interface and HUD-driven mods within the Leiv Ecosystem. It does not add standalone content to the game, but must be installed alongside any of my utility mods to display their overlays and menus correctly!

✨ Key Features

  • 🎨 Modular HUD System: Features a dynamic HUD anchor system that allows mod overlays to be easily toggled on/off and snapped to any corner of the screen (Top-Left, Bottom-Right, etc.).
  • ✨ Consistent Visual Identity: Ensures all mods within the ecosystem share the same polished, high-performance UI design.
  • 🚀 Lag-Free Rendering: Highly optimized draw calls ensure that complex on-screen overlays and menus never impact your frame rate (FPS).
  • 🧩 Interactive Tooltips: Seamlessly integrates with Leiv’s Translation API to display dynamic, data-driven tooltips instantly when hovering over settings.

🛠️ Technical Highlights (For Developers & Modpack Creators)

Leiv’s GUI Engine abstracts complex, loader-specific screen drawing routines into a developer-friendly pipeline:

  • 🖥️ HudAnchor Abstraction: A centralized positioning utility that automatically calculates dynamic X/Y coordinates based on Window/ScaledResolution sizes and user configurations.
  • ⚙️ Rule-Driven Menus: Automatically translates ValueRule<T> configuration objects from Leiv’s API into fully interactive buttons, sliders, and toggles without requiring manual UI coding.
  • 📦 Cross-Loader UI: Provides a unified rendering pipeline that completely abstracts the differences between Forge, NeoForge, and Fabric’s GUI screens.

  • 🪟 Safe Screen Injection: Safely hooks into the game’s native render thread to inject custom HUD overlays and configuration screens cleanly and compatibly.

🔗 Dependencies

This library brings the underlying logic of the ecosystem to life on your screen:

💬 Community & Support

Got questions, feedback, or need to report a bug? Join the community!

常见问题

Leiv’s GUI Engine 支持哪些 Minecraft 版本?

Leiv’s GUI Engine 支持 Minecraft Java 版 1.20.1–26.2,共 4 个版本,可用的加载器:Forge / NeoForge。下载时注意选择和你游戏版本一致的文件。

Leiv’s GUI Engine 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Forge / NeoForge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。

评论

登录后评论和评分

leiv436 的其他作品

查看全部 →