mirror of
https://github.com/Motschen/Blur.git
synced 2025-12-17 12:15:10 +01:00
Blur 2.4.0 - Ingame-Configurable Exclusions & Fixes
- Made Blur exclusions configurable in-game - ReplayMod and ProjectInception screens are excluded by default - Update to MidnightLib 3.0.0 - Fix version in fabric.mod.json
This commit is contained in:
@@ -1,11 +1,13 @@
|
||||
package com.tterrag.blur.config;
|
||||
|
||||
import com.tterrag.blur.Blur;
|
||||
import eu.midnightdust.lib.config.MidnightConfig;
|
||||
import net.minecraft.client.gui.screen.ChatScreen;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public class BlurConfig extends MidnightConfig {
|
||||
@Entry
|
||||
public static String[] blurExclusions = new String[]{ ChatScreen.class.getName() };
|
||||
public static List<String> blurExclusions = Blur.defaultExclusions;
|
||||
@Entry(min = 0, max = 5000, width = 4)
|
||||
public static int fadeTimeMillis = 200;
|
||||
@Entry(min = 0, max = 500, width = 3)
|
||||
@@ -14,4 +16,6 @@ public class BlurConfig extends MidnightConfig {
|
||||
public static int gradientStartColor = 75000000;
|
||||
@Entry(min = 0, max = 99999999, width = 8)
|
||||
public static int gradientEndColor = 75000000;
|
||||
@Entry
|
||||
public static boolean showScreenTitle = false;
|
||||
}
|
||||
|
||||
@@ -1,15 +0,0 @@
|
||||
package com.tterrag.blur.config;
|
||||
|
||||
import com.terraformersmc.modmenu.api.ConfigScreenFactory;
|
||||
import com.terraformersmc.modmenu.api.ModMenuApi;
|
||||
import net.fabricmc.api.EnvType;
|
||||
import net.fabricmc.api.Environment;
|
||||
|
||||
@Environment(EnvType.CLIENT)
|
||||
public class ModMenuIntegration implements ModMenuApi {
|
||||
|
||||
@Override
|
||||
public ConfigScreenFactory<?> getModConfigScreenFactory() {
|
||||
return parent -> BlurConfig.getScreen(parent,"blur");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user