介绍
介绍由机器翻译自 CurseForge 原页面,仅供参考。
EclipseUI
一款轻量、可换主题的 Minecraft 模组配置界面库。
功能
- 支持 Fabric 和 NeoForge。
- 两种主题:Faithful(原版风格)和 Modern(扁平化设计)
- 丰富的控件:开关、滑块、下拉菜单、颜色选择器、文本框
- 开箱即用的 ModMenu 集成
安装
面向模组开发者
请按照使用指南将 EclipseUI 添加到你的模组中。
快速配置依赖:
repositories {
maven("https://jitpack.io")
}
dependencies {
// Fabric
modImplementation("com.github.coredex-source.EclipseUI:EclipseUI-fabric:v1.0.2")
// NeoForge
implementation("com.github.coredex-source.EclipseUI:EclipseUI-neoforge:v1.0.2")
}
完整的配置说明和示例,请参阅使用指南。
快速入门
EclipseUI.configScreen()
.title(Component.literal("My Mod Config"))
.parent(parent)
.theme(Theme.MODERN)
.category(cat -> cat
.name(Component.literal("General"))
.toggle(t -> t
.name(Component.literal("Enable Feature"))
.binding(() -> config.enabled, v -> config.enabled = v)
.defaultValue(true)
)
.slider(s -> s
.name(Component.literal("Range"))
.range(0, 100, 1)
.bindingInt(() -> config.range, v -> config.range = v)
.defaultValue(50)
)
)
.build();
文档
- 使用指南 – 将 EclipseUI 集成到模组中的完整指南
- GitHub 问题追踪 – 报告错误或提出功能请求
许可证
MIT 许可证
常见问题
EclipseUI 支持哪些 Minecraft 版本?
EclipseUI 支持 Minecraft Java 版 1.21.1–26.3,共 6 个版本,可用的加载器:Fabric / NeoForge。下载时注意选择和你游戏版本一致的文件。
EclipseUI 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric / NeoForge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。
Coredex 的其他作品
查看全部 →ModernFix-mVUS
by Coredex
ModernFix 的一个分支版本,增加了对小版本更新的支持。
1527万
22 天前
Modrinth · CurseForge
Animatica Refabricated
by Coredex
Animatica 的分支,实现了 OptiFine/MCPatcher 动态材质格式。
685.8万
8 天前
Modrinth · CurseForge
NoisiumForked
by Coredex
优化世界生成性能,带来更流畅的游戏体验。
545.8万
5 个月前
Modrinth · CurseForge
Detail Armor Bar Reconstructed
by Coredex
盔甲栏中显示更多盔甲详情!
466.9万
4 天前
Modrinth
评论
登录后评论和评分