29 lines
1.2 KiB
Java
29 lines
1.2 KiB
Java
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");
|
|
}
|
|
}
|