feat: title screen blur

- Also fix config changes not being saved
This commit is contained in:
Martin Prokoph
2025-01-25 18:53:32 +01:00
parent 75bfeb2ce3
commit f7465ee08e
6 changed files with 39 additions and 1 deletions

View File

@@ -17,6 +17,10 @@ public class BlurConfig extends MidnightConfig {
@Entry(category = SCREENS)
public static boolean blurContainers = true;
@Entry(category = SCREENS)
public static boolean blurTitleScreen = false;
@Entry(category = SCREENS)
public static boolean darkenTitleScreen = false;
@Entry(category = ANIMATIONS, min = 0, max = 2000, isSlider = true)
public static int fadeTimeMillis = 300;
@Entry(category = ANIMATIONS, min = 0, max = 2000, isSlider = true)
@@ -48,6 +52,7 @@ public class BlurConfig extends MidnightConfig {
@Override
public void writeChanges(String modid) {
super.writeChanges(modid);
MinecraftClient.getInstance().options.getMenuBackgroundBlurriness().setValue(radius);
}