Added screen text font scale config option.
This commit is contained in:
@ -34,12 +34,16 @@ public final class Config {
|
||||
|
||||
public static class Client {
|
||||
public static ForgeConfigSpec.BooleanValue GUI_SCREEN_TEXT_ENABLED;
|
||||
public static ForgeConfigSpec.IntValue GUI_SCREEN_TEXT_SCALE;
|
||||
|
||||
Client(ForgeConfigSpec.Builder builder) {
|
||||
builder.comment("GUI settings.").push("GUI");
|
||||
GUI_SCREEN_TEXT_ENABLED = builder
|
||||
.comment("Whether current protection status is displayed as text on screen.")
|
||||
.define("guiScreenTextEnabled", true);
|
||||
GUI_SCREEN_TEXT_SCALE = builder
|
||||
.comment("Controls the text font size.")
|
||||
.defineInRange("guiScreenTextScale", 3, 1, 10);
|
||||
builder.pop();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user