Jsputer GUI Mod
原版 Minecraft 仅允许将 GUI 缩放设置为整数:1、2、3、4。在许多显示器上,2 太小而 3 太大。此模组添加了 2.5 到列表中。在视频设置中选择它,界面会在 2 和 3 之间进行半级缩放。
截至撰写本文时,这是唯一一个支持非整数缩放的 1.21.11 GUI 缩放模组,且不会像其他选项那样降低画质。HUD 内部以整数 3 渲染,并通过线性过滤缩小至 2.5,因此在分数缩放下尽可能保持游戏像素艺术的清晰度。鼠标位置与屏幕显示对齐。
使用方法
打开视频设置(原版或 Sodium)。循环选择 GUI 缩放直到标签显示为 "2.5"。这是模组插入的新选项。其上方的所有选项会依次上移一位(旧的 "3" 移动到下一个位置,旧的 "4" 紧随其后,依此类推)。循环选择任何其他选项即可使用正常的整数缩放。
此外,在 选项 → 控制 → Jsputer GUI Mod 中有一个按键绑定,可以一键切换 2.5 和 3 的缩放比例。默认未绑定,因此你可以将其设置为任意键位。如果你还运行一个以整数缩放绘制自定义 GUI 的客户端,这个功能非常实用。
兼容性
- Minecraft 1.21.11
- Fabric Loader 0.19.2+
- Fabric API:适用于 1.21.11 的任何当前版本
- Sodium 0.8.x:完全支持。通过 Sodium 的官方 Config API,"2.5" 标签也会正确显示在 Sodium 的设置界面中。
注意事项
- 分数缩放始终会比整数缩放看起来稍软一些,因为 Minecraft 的 UI 艺术是为整数尺寸绘制的。此模组已尽可能减少这种影响,但无法改变像素艺术的数学本质。尽管如此,它的效果仍远优于其他 1.21.11 分数缩放选项。
- Feather Client 自带的自定义 GUI 覆盖层不受此模组支持。如果你使用 Feather,请绑定切换快捷键并在打开 Feather 菜单前按下它。
未来计划
我制作此模组是因为朋友 Jsputer 请求我这么做。如果此模组被广泛使用,我乐意添加更多功能,因此请在 GitHub 上提交 issue 来请求新功能。
源代码
github.com/Kreytorn/jsputer-gui-mod,采用 MIT 许可证。
Jsputer GUI Mod
Vanilla Minecraft only lets you set the GUI scale to whole numbers: 1, 2, 3, 4. On a lot of monitors, 2 is too small and 3 is too big. This mod adds 2.5 to the list. Pick it in Video Settings and the interface scales halfway between 2 and 3.
As of writing, this is the only GUI scale mod for 1.21.11 that supports non integer values without the reduced quality other options have on this version. The HUD is rendered at integer 3 internally and downscaled to 2.5 with linear filtering, so it stays as crisp as the game's pixel art reasonably allows at a fractional scale. Mouse position lines up with what's on screen.
How to use it
Open Video Settings (vanilla or Sodium). Cycle GUI Scale until the label reads "2.5". That's the new slot the mod inserts. Everything above it shifts up by one (the old "3" moves to the next position, the old "4" comes after that, and so on). Cycle to any other slot to use a normal integer scale.
There's also a keybind under Options → Controls → Jsputer GUI Mod that toggles between 2.5 and 3 on one button. It's unbound by default, so set it to whatever you want. Handy if you also run a client that draws its own custom GUI at integer scale and want to switch quickly.
Compatibility
- Minecraft 1.21.11
- Fabric Loader 0.19.2+
- Fabric API: any current version for 1.21.11
- Sodium 0.8.x: fully supported. The "2.5" label shows up correctly in Sodium's settings screen too, via Sodium's official Config API.
Heads-up
- Fractional scaling will always look slightly softer than integer scaling, because Minecraft's UI art is drawn for whole number sizes. This mod minimizes that as much as it can, but it can't turn pixel art math into something it isn't. It still looks much better than other 1.21.11 fractional scale options.
- Feather Client's own custom GUI overlays are not supported by this mod. If you use Feather, bind the toggle keybind and press it before opening Feather's menus.
Future
I made this mod because my friend Jsputer asked me to. If this gets used, I'm open to adding more, so open an issue on GitHub to request a feature.
Source
github.com/Kreytorn/jsputer-gui-mod, MIT licensed.
评论 0
登录后参与评分
还没有评论,来抢沙发吧