diff options
author | DeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com> | 2022-06-30 16:01:02 +0200 |
---|---|---|
committer | DeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com> | 2022-06-30 16:01:02 +0200 |
commit | 68a2dfb5a22137fb433531542e8660bae023595f (patch) | |
tree | d9b8808db52e1c196e37cd3d3b41bf491cf341d0 /src/main/java/cc/polyfrost/oneconfig/internal/config/Preferences.java | |
parent | dcee46d4d0039993466fc7c0e2d0be7b31af3d4b (diff) | |
download | OneConfig-68a2dfb5a22137fb433531542e8660bae023595f.tar.gz OneConfig-68a2dfb5a22137fb433531542e8660bae023595f.tar.bz2 OneConfig-68a2dfb5a22137fb433531542e8660bae023595f.zip |
lots of stuff
Diffstat (limited to 'src/main/java/cc/polyfrost/oneconfig/internal/config/Preferences.java')
-rw-r--r-- | src/main/java/cc/polyfrost/oneconfig/internal/config/Preferences.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/java/cc/polyfrost/oneconfig/internal/config/Preferences.java b/src/main/java/cc/polyfrost/oneconfig/internal/config/Preferences.java index c8a5163..fff8fed 100644 --- a/src/main/java/cc/polyfrost/oneconfig/internal/config/Preferences.java +++ b/src/main/java/cc/polyfrost/oneconfig/internal/config/Preferences.java @@ -5,7 +5,9 @@ import cc.polyfrost.oneconfig.config.annotations.Slider; import cc.polyfrost.oneconfig.config.annotations.Switch; import cc.polyfrost.oneconfig.config.core.OneKeyBind; import cc.polyfrost.oneconfig.gui.OneConfigGui; +import cc.polyfrost.oneconfig.internal.gui.BlurHandler; import cc.polyfrost.oneconfig.libs.universal.UKeyboard; +import cc.polyfrost.oneconfig.libs.universal.UMinecraft; import cc.polyfrost.oneconfig.utils.gui.GuiUtils; public class Preferences extends InternalConfig { @@ -37,6 +39,8 @@ public class Preferences extends InternalConfig { public Preferences() { super("Preferences", "Preferences.json"); + initialize(); + addListener("enableBlur", () -> BlurHandler.INSTANCE.reloadBlur(UMinecraft.getMinecraft().currentScreen)); registerKeyBind(oneConfigKeyBind, () -> GuiUtils.displayScreen(OneConfigGui.create())); } } |