Resizable Editors option
This commit is contained in:
@@ -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...)",
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
@@ -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;
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user