Skip to content

Commit

Permalink
Blur 2.2.1 - 1.17
Browse files Browse the repository at this point in the history
Update to MidnightConfig v1.0.4
  • Loading branch information
Motschen committed Jun 21, 2021
1 parent 994a975 commit b77190c
Show file tree
Hide file tree
Showing 7 changed files with 399 additions and 301 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ org.gradle.jvmargs=-Xmx1G
loader_version=0.11.3

# Mod Properties
mod_version = 2.1.0-1.17-pre3+fabric
mod_version = 2.2.1-1.17+fabric
maven_group = com.tterrag.blur
archives_base_name = Blur

Expand Down
3 changes: 1 addition & 2 deletions src/main/java/com/tterrag/blur/Blur.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package com.tterrag.blur;

import com.tterrag.blur.config.BlurConfig;
import com.tterrag.blur.config.MidnightConfig;
import ladysnake.satin.api.event.ShaderEffectRenderCallback;
import ladysnake.satin.api.managed.ManagedShaderEffect;
import ladysnake.satin.api.managed.ShaderEffectManager;
Expand All @@ -27,7 +26,7 @@ public class Blur implements ClientModInitializer {

@Override
public void onInitializeClient() {
MidnightConfig.init("blur", BlurConfig.class);
BlurConfig.init("blur", BlurConfig.class);

ShaderEffectRenderCallback.EVENT.register((deltaTick) -> {
if (start > 0) {
Expand Down
9 changes: 5 additions & 4 deletions src/main/java/com/tterrag/blur/config/BlurConfig.java
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
package com.tterrag.blur.config;

import eu.midnightdust.lib.config.MidnightConfig;
import net.minecraft.client.gui.screen.ChatScreen;

public class BlurConfig extends MidnightConfig {
@Entry
public static String[] blurExclusions = new String[]{ ChatScreen.class.getName() };
@Entry(min = 0, max = 5000)
@Entry(min = 0, max = 5000, width = 4)
public static int fadeTimeMillis = 200;
@Entry(min = 0, max = 500)
@Entry(min = 0, max = 500, width = 3)
public static int radius = 8;
@Entry(min = 0, max = 99999999)
@Entry(min = 0, max = 99999999, width = 8)
public static int gradientStartColor = 75000000;
@Entry(min = 0, max = 99999999)
@Entry(min = 0, max = 99999999, width = 8)
public static int gradientEndColor = 75000000;
}
293 changes: 0 additions & 293 deletions src/main/java/com/tterrag/blur/config/MidnightConfig.java

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ public class ModMenuIntegration implements ModMenuApi {

@Override
public ConfigScreenFactory<?> getModConfigScreenFactory() {
return parent -> new BlurConfig().getScreen(parent);
return parent -> BlurConfig.getScreen(parent,"blur");
}
}
Loading

0 comments on commit b77190c

Please sign in to comment.