diff --git a/source/funkin/editors/DebugOptions.hx b/source/funkin/editors/DebugOptions.hx index 7f5201b9..231fadb5 100644 --- a/source/funkin/editors/DebugOptions.hx +++ b/source/funkin/editors/DebugOptions.hx @@ -35,6 +35,10 @@ class DebugOptionsScreen extends OptionsScreen { NativeAPI.allocConsole(); })); #end + add(new Checkbox( + "Resizable Editors", + "If checked, this will allow the editors to render beyond the base 1280x720 resolution of FNF (allowing for more detail and space...)", + "editorsResizable")); add(new Checkbox( "Editor SFXs", "If checked, will play sound effects when working on editors (ex: will play sfxs when checking checkboxes...)", diff --git a/source/funkin/editors/charter/Charter.hx b/source/funkin/editors/charter/Charter.hx index b4080049..a3343c43 100644 --- a/source/funkin/editors/charter/Charter.hx +++ b/source/funkin/editors/charter/Charter.hx @@ -550,7 +550,9 @@ class Charter extends UIState { Framerate.memoryCounter.alpha = 0.4; Framerate.codenameBuildField.alpha = 0.4; } - UIState.setResolutionAware(); + + if (Options.editorsResizable) + UIState.setResolutionAware(); // ! IF YOU EVER WANNA VIEW IN THE FUTURE, JUST USE A FLXSPRITE :D -lunar /*var dataDisplay:FlxSprite = new FlxSprite().loadGraphic(waveformHandler.waveDatas.get("Voices.ogg")); @@ -1375,6 +1377,8 @@ class Charter extends UIState { public override function onResize(width:Int, height:Int) { super.onResize(width, height); + if (!UIState.resolutionAware) return; + if (width < FlxG.initialWidth || height < FlxG.initialHeight) { width = FlxG.initialWidth; height = FlxG.initialHeight; } diff --git a/source/funkin/editors/ui/UIState.hx b/source/funkin/editors/ui/UIState.hx index f56c158c..ec9be1fd 100644 --- a/source/funkin/editors/ui/UIState.hx +++ b/source/funkin/editors/ui/UIState.hx @@ -184,12 +184,4 @@ class UIState extends MusicBeatState { resolutionAware = true; FlxG.scaleMode = uiScaleMode; } - - public override function onResize(width:Int, height:Int) { - super.onResize(width, height); - - if (!resolutionAware) return; - - trace(width, height); - } } \ No newline at end of file diff --git a/source/funkin/options/Options.hx b/source/funkin/options/Options.hx index f1b0c464..cff3a1ad 100644 --- a/source/funkin/options/Options.hx +++ b/source/funkin/options/Options.hx @@ -44,6 +44,7 @@ class Options public static var intensiveBlur:Bool = true; public static var editorSFX:Bool = true; public static var editorPrettyPrint:Bool = false; + public static var editorsResizable:Bool = true; public static var maxUndos:Int = 120; /**