diff --git a/common/src/main/java/eu/midnightdust/blur/config/BlurConfig.java b/common/src/main/java/eu/midnightdust/blur/config/BlurConfig.java index 6124019..fc09156 100644 --- a/common/src/main/java/eu/midnightdust/blur/config/BlurConfig.java +++ b/common/src/main/java/eu/midnightdust/blur/config/BlurConfig.java @@ -15,6 +15,8 @@ public class BlurConfig extends MidnightConfig { public static final String SCREENS = "screens"; @Entry @Hidden public static int configVersion = 2; + @Comment(category = SCREENS, centered = true) + public static Comment _general; @Entry(category = SCREENS) public static boolean blurContainers = true; @Entry(category = SCREENS) @@ -22,14 +24,21 @@ public class BlurConfig extends MidnightConfig { @Condition(requiredOption = "blurTitleScreen", visibleButLocked = true) @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) - public static int fadeOutTimeMillis = 300; - @Entry(category = ANIMATIONS) - public static BlurConfig.Easing animationCurve = Easing.FLAT; + @Comment(category = SCREENS, centered = true) + public static Comment _advanced; + @Entry(category = SCREENS) // Screens where Blur+ should not apply transition effects (mostly dynamically blurred screens) + public static List excludedScreens = Lists.newArrayList("net.irisshaders.iris.gui.screen.ShaderPackScreen"); + @Entry(category = SCREENS) // Screens where the vanilla blur effect should be force enabled + public static List forceEnabledScreens = Lists.newArrayList("dev.emi.emi.screen.RecipeScreen"); + @Entry(category = SCREENS) // Screens where the vanilla blur effect should be force disabled + public static List forceDisabledScreens = Lists.newArrayList(); + + @Comment(category = STYLE, centered = true) + public static Comment _blur; @Entry(category = STYLE, isSlider = true, min = 0, max = 20) public static int radius = 5; + @Comment(category = STYLE, centered = true) + public static Comment _gradient; @Entry(category = STYLE) public static boolean useGradient = true; @Condition(requiredOption = "useGradient", visibleButLocked = true) @@ -49,12 +58,15 @@ public class BlurConfig extends MidnightConfig { public static int gradientRotation = 0; @Entry(category = STYLE) public static boolean rainbowMode = false; - @Entry(category = SCREENS) // Screens where Blur+ should not apply transition effects (mostly dynamically blurred screens) - public static List excludedScreens = Lists.newArrayList("net.irisshaders.iris.gui.screen.ShaderPackScreen"); - @Entry(category = SCREENS) // Screens where the vanilla blur effect should be force enabled - public static List forceEnabledScreens = Lists.newArrayList("dev.emi.emi.screen.RecipeScreen"); - @Entry(category = SCREENS) // Screens where the vanilla blur effect should be force disabled - public static List forceDisabledScreens = Lists.newArrayList(); + + @Comment(category = ANIMATIONS, centered = true) + public static Comment _animations; + @Entry(category = ANIMATIONS, min = 0, max = 2000, isSlider = true) + public static int fadeTimeMillis = 300; + @Entry(category = ANIMATIONS, min = 0, max = 2000, isSlider = true) + public static int fadeOutTimeMillis = 300; + @Entry(category = ANIMATIONS) + public static BlurConfig.Easing animationCurve = Easing.FLAT; @Override public void writeChanges(String modid) { diff --git a/common/src/main/resources/assets/blur/lang/de_de.json b/common/src/main/resources/assets/blur/lang/de_de.json index d823d78..45acbd4 100644 --- a/common/src/main/resources/assets/blur/lang/de_de.json +++ b/common/src/main/resources/assets/blur/lang/de_de.json @@ -1,6 +1,7 @@ { "blur.midnightconfig.title": "Blur+ Konfiguration", "blur.midnightconfig.category.animations": "Animationen", + "blur.midnightconfig.category.screens": "Bildschirme", "blur.midnightconfig.category.style": "Stil", "blur.midnightconfig.blurContainers": "Unschärfe in Containern", "blur.midnightconfig.blurTitleScreen": "Unschärfe im Titelbildschirm", @@ -26,5 +27,10 @@ "blur.midnightconfig.gradientStartAlpha": "Farbverlauf-Anfangstransparenz", "blur.midnightconfig.gradientEndAlpha": "Farbverlauf-Endstransparenz", "blur.midnightconfig.gradientRotation": "Farbverlauf-Rotation", - "blur.midnightconfig.excludedScreens": "Ausgeschlossene Bildschirme" + "blur.midnightconfig.excludedScreens": "Ausgeschlossene Bildschirme", + "blur.midnightconfig._general": "§7⛏ Generell", + "blur.midnightconfig._advanced": "§7⚒ Fortgeschritten", + "blur.midnightconfig._blur": "§7▒ Unschärfe", + "blur.midnightconfig._gradient": "§7\uD83D\uDFE2 Farbverlauf", + "blur.midnightconfig._animations": "§7\uD83D\uDCFD Animationen" } \ No newline at end of file diff --git a/common/src/main/resources/assets/blur/lang/en_us.json b/common/src/main/resources/assets/blur/lang/en_us.json index 898155b..2ae4ead 100755 --- a/common/src/main/resources/assets/blur/lang/en_us.json +++ b/common/src/main/resources/assets/blur/lang/en_us.json @@ -33,5 +33,10 @@ "blur.midnightconfig.forceEnabledScreens": "Force-enabled Screens", "blur.midnightconfig.forceEnabledScreens.tooltip": "Screens where the vanilla blur effect should be force-enabled\nMight not work 100% of the time", "blur.midnightconfig.forceDisabledScreens": "Force-disabled Screens", - "blur.midnightconfig.forceDisabledScreens.tooltip": "Screens where the vanilla blur effect should be force-disabled" + "blur.midnightconfig.forceDisabledScreens.tooltip": "Screens where the vanilla blur effect should be force-disabled", + "blur.midnightconfig._general": "§7⛏ General", + "blur.midnightconfig._advanced": "§7⚒ Advanced", + "blur.midnightconfig._blur": "§7▒ Blur", + "blur.midnightconfig._gradient": "§7\uD83D\uDFE2 Gradient", + "blur.midnightconfig._animations": "§7\uD83D\uDCFD Animations" } \ No newline at end of file