ModularUI
这是 Minecraft 的终极 GUI 模组。
历史
我第一次接触到 ModularUI 的雏形是在 GTCE 1.12.2 版本中。这个概念非常出色:大幅减少了样板代码,无需 GUI 纹理图集,并且具备更多功能。然而,它也存在着诸多问题:存在大量 Bug,代码混乱不堪,且与 Inventorytweaks 等其他模组的兼容性非常困难。 随后,GTCEu 作为 GTCE 的一个分支被开发出来。UI 代码得到了一些改进,但不知为何变得更加混乱了。此时,CleanroomMC 已经决定制作一个经过重构、独立运行的 ModularUI 版本。于是我自愿承担了这项任务,并完成了它。 2022 年 5 月 22 日,首个版本在 CurseForge (CF) 上发布。与 GTCE/GTCEu 相比,这是一个巨大的进步,但我仍然不够满意。因此,在几次更新和几个月后,我开始重写模组的部分代码。然而,这次重写变得如此庞大,几乎等同于完全重写。这样做值得吗?我不知道,但现在我对结果感到满意。
特性
- 类似 Windows 的面板系统
- 小部件,如按钮、文本字段(自定义实现,非 Minecraft 原生代码)或滑块
- 布局小部件,如行、列、网格和列表
- 自定义滚动实现,带有平滑动画
- 用于数字文本字段的数学表达式解析器
- 视口实现,用于转换特定部分(如可滚动列表)
- 轻松同步任何值,使该模组可用于 TileEntities/BlockEntities 等场景
- 面板的打开和关闭动画
- 兼容 InventoryBogoSorter
ModularUI
This is the ultimate GUI mod for minecraft.
History
The first time I encountered a form of a ModularUI was in GTCE in version 1.12.2. The concept was great. Much less boiler plate code. No GUI texture sheets. And more. However there were a lot of problems. There were lots of bugs. The code was a mess and compat with other mods such as Inventorytweaks was very difficult. Then GTCEu was made as a fork of GTCE. The UI code received some improvements, but somehow it got even messier. At that point CleanroomMC already decided to make a reworked, standalone version of ModularUI. So I volunteered to do the job. And I did. On May 22nd 2022 the first version was released on CF. It was a huge improvement compared to GTCE/GTCEu, but I still was not happy enough. So a few updates and month later i started to rewrite some portions of the mod. However the rewrite became so large that it was almost a full rewrite. Was it worth it? I don't know, but now I'm happy with the result.
Features
- Panel system similar to windows
- Widgets like buttons, text fields (custom, not mc garbage) or slider
- layout widgets like rows, columns, grids and lists
- custom implementation of scrolling with smooth animations
- math expression parser for number text fields
- viewport implementation for transformation of certain parts (like a scrollable list)
- easy syncing of any value making the mod usable for things like TileEntities/BlockEntities
- open and close animations of panels
- compat with InventoryBogoSorter
下载 ModularUI
下载 ModularUI
下载 ModularUI
下载 ModularUI
下载 ModularUI
下载 ModularUI
下载 ModularUI
下载 ModularUI
下载 ModularUI
下载 ModularUI
更新内容
- 修复了由服务器维度卸载导致的 GUI 状态被清空的问题,由 @Pxx500 在 提交
完整更改日志:
更新内容
- 修复了在构造后注册的槽位中,Shift+点击不同步的问题,由 @zyf051520 在 中贡献
完整更改日志:
更新内容
- 修复了由 @zyf051520 在 中提交的,针对构建后注册的槽位进行 Shift+点击时的不同步问题
完整更新日志:
更新内容
- 在槽位点击时,将无效(大小 <= 0)的物品堆视为空物品堆 by @Algent in
完整更新日志:
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
一个用于收集生物掉落物的多区块模组。
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
查看物品与配方
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
适用于 MC 1.18+ 的 Effekseer 加载器
模组
添加区块认领和玩家组队功能,并与 Xaero's Minimap 和 World Map 集成
评论 0
登录后参与评分
还没有评论,来抢沙发吧