From 1b921bfd45717efb3df9c1e8a555bf1bbba9fd9a Mon Sep 17 00:00:00 2001 From: lunarcleint <88809950+lunarcleint@users.noreply.github.com> Date: Sat, 1 Jul 2023 01:19:35 -0700 Subject: [PATCH] intensive blur setting --- source/funkin/editors/DebugOptions.hx | 4 ++++ source/funkin/editors/ui/UISubstateWindow.hx | 2 +- source/funkin/editors/ui/UIWarningSubstate.hx | 2 +- source/funkin/options/Options.hx | 1 + 4 files changed, 7 insertions(+), 2 deletions(-) diff --git a/source/funkin/editors/DebugOptions.hx b/source/funkin/editors/DebugOptions.hx index 734342c4..b704feac 100644 --- a/source/funkin/editors/DebugOptions.hx +++ b/source/funkin/editors/DebugOptions.hx @@ -44,5 +44,9 @@ class DebugOptionsScreen extends OptionsScreen { "Resizable Editors", "If checked, editors will be resizable and extensible like other programs instead of zooming in upon maximization.", "resizableEditors")); + add(new Checkbox( + "Intensive Blur", + "If checked, will use more intensive blur that may be laggier but look better.", + "intensiveBlur")); } } \ No newline at end of file diff --git a/source/funkin/editors/ui/UISubstateWindow.hx b/source/funkin/editors/ui/UISubstateWindow.hx index ed87456e..95d02abf 100644 --- a/source/funkin/editors/ui/UISubstateWindow.hx +++ b/source/funkin/editors/ui/UISubstateWindow.hx @@ -7,7 +7,7 @@ import funkin.backend.shaders.CustomShader; // TODO: make UIWarningSubstate extend this class UISubstateWindow extends MusicBeatSubstate { var camShaders:Array = []; - var blurShader:CustomShader = new CustomShader("engine/editorBlurFast"); + var blurShader:CustomShader = Options.intensiveBlur ? new CustomShader("engine/editorBlur") : new CustomShader("engine/editorBlurFast"); var titleSpr:UIText; var messageSpr:UIText; diff --git a/source/funkin/editors/ui/UIWarningSubstate.hx b/source/funkin/editors/ui/UIWarningSubstate.hx index 88948721..2cf765f4 100644 --- a/source/funkin/editors/ui/UIWarningSubstate.hx +++ b/source/funkin/editors/ui/UIWarningSubstate.hx @@ -6,7 +6,7 @@ import funkin.backend.shaders.CustomShader; class UIWarningSubstate extends MusicBeatSubstate { var camShaders:Array = []; - var blurShader:CustomShader = new CustomShader("engine/editorBlur"); + var blurShader:CustomShader = Options.intensiveBlur ? new CustomShader("engine/editorBlur") : new CustomShader("engine/editorBlurFast"); var title:String; var message:String; diff --git a/source/funkin/options/Options.hx b/source/funkin/options/Options.hx index a4b38c30..8ac2f947 100644 --- a/source/funkin/options/Options.hx +++ b/source/funkin/options/Options.hx @@ -39,6 +39,7 @@ class Options /** * EDITORS SETTINGS */ + public static var intensiveBlur:Bool = true; public static var editorSFX:Bool = true; public static var resizableEditors:Bool = true; public static var maxUndos:Int = 120;