CustomHud 是一款高度可配置的、基于变量的文本 HUD。
虽然有一些模组也添加了文本 HUD 或允许你自定义 F3 调试屏幕,
但它们并未提供完全的可定制性。它们的自定义功能主要局限于颜色和某一行或某个模块是否显示。
CustomHud 允许你将数据精确放置在你想要的位置
(支持完整的颜色功能,包括十六进制颜色),使用的是
基于变量的系统。
工作原理
在配置文件中,你可以编写希望显示的文本,并在任意位置使用变量,例如
{fps}、
{version}、
{block_x}
等等。
CustomHud 还支持条件判断,使得显示的文本可以根据其他变量的值进行变化。
有关变量和条件判断的文档及更多示例,请参阅项目的 Wiki。
示例输出
示例 HUD:
使用的配置:
Minecraft {version} ({client_version})
&a{fps}&f/{max_fps} fps {{vsync, "(vsync)", ""}}
&cX&aY&bZ: &c{bx} &a{by} &b{bz}
Facing: &a{facing}&f (&a{yaw}&f, &a{pitch}&f)
Looking {{tbx, "at {tbx} {tby} {tbz}", "into the abyss"}}
Mem: &a{memory_used_percentage}%&f of {total_memory}MiB, &a{allocated_percentage}%&f allocated
{{tps, "&a{tps}&f tps (&a{ms_ticks}&f ms ticks)", ""}}
{{nether, "Overworld:", "Nether:"}}&a {nx} {nz}
Time: &a{real_time:HH:mm}
功能特性
- 基于变量的 HUD 配置
- 支持条件文本
- 完整的 RGB 和十六进制颜色支持
- 信息可定位在屏幕的四个角落
- 自定义背景颜色
- 内置丰富的变量库
- 高度可定制的布局
如需查看完整的功能列表、变量、条件判断以及高级自定义选项,
请查阅项目的 Wiki。
兼容性
这是一个 Fabric 模组。
目前没有计划移植到 Forge,
但 MIT 许可证允许任何人自行进行移植。
CustomHud is a highly configurable variable-based text HUD.
While there are mods that also add text HUDs or allow you to customize the F3 debug screen,
they aren't fully customizable. Their customization is mostly limited to colors and whether
a line or module is displayed.
CustomHud allows you to place the data exactly where you want it
(with full color support, including hex colors) using a
variable-based system.
How It Works
In the profile file, you write exactly what you want to display and use variables such as
{fps},
{version},
{block_x},
and many others wherever you want them to appear.
CustomHud also supports conditionals, allowing the displayed text to change depending
on the value of other variables.
Documentation and additional examples of variables and conditionals can be found in the project's wiki.
Example Output
Example HUD:
Configuration used:
Minecraft {version} ({client_version})
&a{fps}&f/{max_fps} fps {{vsync, "(vsync)", ""}}
&cX&aY&bZ: &c{bx} &a{by} &b{bz}
Facing: &a{facing}&f (&a{yaw}&f, &a{pitch}&f)
Looking {{tbx, "at {tbx} {tby} {tbz}", "into the abyss"}}
Mem: &a{memory_used_percentage}%&f of {total_memory}MiB, &a{allocated_percentage}%&f allocated
{{tps, "&a{tps}&f tps (&a{ms_ticks}&f ms ticks)", ""}}
{{nether, "Overworld:", "Nether:"}}&a {nx} {nz}
Time: &a{real_time:HH:mm}
Features
- Variable-based HUD configuration
- Conditional text support
- Full RGB and hexadecimal color support
- Information can be positioned in all four screen corners
- Custom background colors
- Extensive library of built-in variables
- Highly customizable layouts
For a complete list of features, variables, conditionals, and advanced customization,
check out the project's wiki.
Compatibility
This is a Fabric mod.
There are no plans for a Forge port,
although the MIT license allows anyone to port it themselves.
评论 0
登录后参与评分
还没有评论,来抢沙发吧