Implement fade out effect, better config screen

This commit is contained in:
Motschen
2023-03-22 14:45:53 +01:00
parent e139a2319e
commit 77badf3494
10 changed files with 86 additions and 54 deletions

View File

@@ -1,27 +1,39 @@
package com.tterrag.blur.config;
import com.tterrag.blur.Blur;
import com.google.common.collect.Lists;
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 List<String> blurExclusions = Blur.defaultExclusions;
@Entry(min = 0, max = 5000, width = 4)
public static final String style = "style";
public static final String misc = "misc";
@Entry(category = misc)
public static List<String> blurExclusions = Lists.newArrayList(ChatScreen.class.getName(),
"com.replaymod.lib.de.johni0702.minecraft.gui.container.AbstractGuiOverlay$UserInputGuiScreen",
"ai.arcblroth.projectInception.client.InceptionInterfaceScreen",
"net.optifine.gui.GuiChatOF",
"io.github.darkkronicle.advancedchatcore.chat.AdvancedChatScreen",
"net.coderbot.iris.gui.screen.ShaderPackScreen");
@Entry(category = style, min = 0, max = 5000, width = 4)
public static int fadeTimeMillis = 200;
@Entry
@Entry(category = style, min = 0, max = 5000, width = 4)
public static int fadeOutTimeMillis = 200;
@Entry(category = style)
public static boolean ease = true;
@Entry(min = 0, max = 500, width = 3)
@Entry(category = style, isSlider = true, min = 0, max = 100)
public static int radius = 8;
@Entry(isColor = true, width = 7, min = 7)
@Entry(category = style, isColor = true, width = 7, min = 7)
public static String gradientStart = "#000000";
@Entry(min = 0, max = 255)
@Entry(category = style, isSlider = true, min = 0, max = 255)
public static int gradientStartAlpha = 75;
@Entry(isColor = true, width = 7, min = 7)
@Entry(category = style, isColor = true, width = 7, min = 7)
public static String gradientEnd = "#000000";
@Entry(min = 0, max = 255)
@Entry(category = style, isSlider = true, min = 0, max = 255)
public static int gradientEndAlpha = 75;
@Entry
@Entry(category = misc)
public static boolean showScreenTitle = false;
}
}