Upload files to "src/openonyx/features/hud"

This commit is contained in:
winterflyt committed 2026-11-30 05:49:49 +02:00
1 parent c00c1adefc
commit e37b058c6a
5 files changed
+97

No files matched your search

@@ -0,0 +1,28 @@
package openonyx.features.hud;
import openonyx.history.SettingGroup;
import openonyx.history.internal.BooleanSetting;
import openonyx.history.internal.EnumSetting;
import openonyx.history.internal.NumberSetting;
import openonyx.render.group_w.FontRendererHook;
public final class CustomGuiPart5 extends SettingGroup {
public final NumberSetting size;
public final EnumSetting<WeightMode> weight = new EnumSetting<>("Weight", WeightMode.MEDIUM)
.onChange(weightMode -> FontRendererHook.L())
.describe("How heavy the replacement font sits against the world");
public final NumberSetting letterSpacing;
public final BooleanSetting shadow;
private CustomGuiPart5() {
super("Font", true);
this.size = new NumberSetting("Size", 1.0, 0.85, 1.2, 0.01)
.withSuffix("x")
.onChange(double_ -> FontRendererHook.L())
.describe("Scales the letters inside the 9px line the game lays text out on");
this.letterSpacing = new NumberSetting("Letter spacing", 0.0, -1.0, 1.0, 0.05)
.withSuffix(" px")
.describe("Tightens or opens the gap between letters, in the game's own pixels");
this.shadow = new BooleanSetting("Shadow", true).describe("Keep the drop shadow the game asks for");
}
}