Added some flags for Transition/Pause/Gameover
This commit is contained in:
@@ -8,7 +8,7 @@ import funkin.backend.scripting.events.TransitionCreationEvent;
|
||||
import funkin.backend.utils.FunkinParentDisabler;
|
||||
|
||||
class MusicBeatTransition extends MusicBeatSubstate {
|
||||
public static var script:String = "";
|
||||
public static var script:String = Flags.DEFAULT_TRANSITION_SCRIPT;
|
||||
public var transitionScript:Script;
|
||||
|
||||
var nextFrameSkip:Bool = false;
|
||||
|
||||
@@ -135,6 +135,13 @@ class Flags {
|
||||
public static var DISABLE_EDITORS:Bool = false;
|
||||
public static var DISABLE_BETA_WARNING_SCREEN:Bool = false;
|
||||
public static var DISABLE_TRANSITIONS:Bool = false;
|
||||
|
||||
@:also(funkin.backend.MusicBeatTransition.script)
|
||||
public static var DEFAULT_TRANSITION_SCRIPT:String = "";
|
||||
@:also(funkin.menus.PauseSubState.script)
|
||||
public static var DEFAULT_PAUSE_SCRIPT:String = "";
|
||||
@:also(funkin.game.GameOverSubstate.script)
|
||||
public static var DEFAULT_GAMEOVER_SCRIPT:String = "";
|
||||
// -- End of Codename's Default Flags --
|
||||
|
||||
/**
|
||||
|
||||
@@ -58,7 +58,7 @@ class MainState extends FlxState {
|
||||
|
||||
Flags.load();
|
||||
ModsFolder.onModSwitch.dispatch(ModsFolder.currentModFolder); // Loads global.hx
|
||||
MusicBeatTransition.script = "";
|
||||
MusicBeatTransition.script = Flags.DEFAULT_TRANSITION_SCRIPT;
|
||||
Main.refreshAssets();
|
||||
DiscordUtil.init();
|
||||
EventsData.reloadEvents();
|
||||
|
||||
@@ -24,7 +24,7 @@ class GameOverSubstate extends MusicBeatSubstate
|
||||
|
||||
var camFollow:FlxObject;
|
||||
|
||||
public static var script:String = "";
|
||||
public static var script:String = Flags.DEFAULT_GAMEOVER_SCRIPT;
|
||||
|
||||
public var gameoverScript:Script;
|
||||
public var game:PlayState = PlayState.instance; // shortcut
|
||||
|
||||
@@ -586,8 +586,8 @@ class PlayState extends MusicBeatState
|
||||
instance = this;
|
||||
if (FlxG.sound.music != null) FlxG.sound.music.stop();
|
||||
|
||||
PauseSubState.script = "";
|
||||
GameOverSubstate.script = "";
|
||||
PauseSubState.script = Flags.DEFAULT_PAUSE_SCRIPT;
|
||||
GameOverSubstate.script = Flags.DEFAULT_GAMEOVER_SCRIPT;
|
||||
(scripts = new ScriptPack("PlayState")).setParent(this);
|
||||
|
||||
camGame = camera;
|
||||
|
||||
@@ -18,7 +18,7 @@ import funkin.options.TreeMenu;
|
||||
|
||||
class PauseSubState extends MusicBeatSubstate
|
||||
{
|
||||
public static var script:String = "";
|
||||
public static var script:String = Flags.DEFAULT_PAUSE_SCRIPT;
|
||||
|
||||
var grpMenuShit:FlxTypedGroup<Alphabet>;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user