Resizable Editors option

This commit is contained in:
lunarcleint
2024-12-29 15:26:29 -07:00
parent be059c533a
commit 736e225ad5
4 changed files with 10 additions and 9 deletions
+4
View File
@@ -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...)",
+5 -1
View File
@@ -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;
}
-8
View File
@@ -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);
}
}
+1
View File
@@ -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;
/**