diff --git a/source/Init.hx b/source/Init.hx index 55cf208f..c4b2adcf 100644 --- a/source/Init.hx +++ b/source/Init.hx @@ -85,7 +85,7 @@ class Init extends FlxState super.create(); - final nextState:Class = Main.startMeta.skipSplash ? Main.startMeta.initialState : Splash; + final nextState:Class = Main.startMeta.skipSplash || !ClientPrefs.toggleSplashScreen ? Main.startMeta.initialState : Splash; FlxG.switchState(() -> Type.createInstance(nextState, [])); } diff --git a/source/funkin/data/ClientPrefs.hx b/source/funkin/data/ClientPrefs.hx index c32f4fb9..53c63856 100644 --- a/source/funkin/data/ClientPrefs.hx +++ b/source/funkin/data/ClientPrefs.hx @@ -71,6 +71,8 @@ class ClientPrefs @saveVar public static var useEpicRankings:Bool = true; + @saveVar public static var toggleSplashScreen:Bool = true; + @saveVar public static var epicWindow:Float = 22.5; @saveVar public static var sickWindow:Float = 45.0; diff --git a/source/funkin/states/options/VisualsUISubState.hx b/source/funkin/states/options/VisualsUISubState.hx index 5f7ff290..ef41caff 100644 --- a/source/funkin/states/options/VisualsUISubState.hx +++ b/source/funkin/states/options/VisualsUISubState.hx @@ -1,5 +1,7 @@ package funkin.states.options; +import funkin.states.options.Option; + import flixel.FlxG; class VisualsUISubState extends BaseOptionsMenu @@ -55,6 +57,9 @@ class VisualsUISubState extends BaseOptionsMenu var option:Option = new Option('Camera Note Follow', "If unchecked, hitting notes will no longer have the camera follow in its direction.", 'camFollowsCharacters', 'bool', true); addOption(option); + var option:Option = new Option('Toggle NMV Splash Screen', "If unchecked, it will completely skip the splash screen upon the engine's boot up.", 'toggleSplashScreen', 'bool', true); + addOption(option); + super(); }