some cutscene stuff

This commit is contained in:
⍚~Nex
2025-07-06 17:50:15 +02:00
parent a6c390f10e
commit 86157be887
3 changed files with 4 additions and 8 deletions
-4
View File
@@ -1046,10 +1046,6 @@ class PlayState extends MusicBeatState
Note.__customNoteTypeExists = [];
}
// Backwards compat
@:dox(hide) @:deprecated("resetSongInfos is deprecated, it's now handled in the loading song/weeks functions")
public static function resetSongInfos() {}
@:dox(hide) @:deprecated("scrollSpeedTween is deprecated, use eventsTween['scrollSpeed'] instead")
public var scrollSpeedTween(get, set):FlxTween;
private inline function get_scrollSpeedTween() return eventsTween.get("scrollSpeed");
+3 -3
View File
@@ -8,11 +8,11 @@ import funkin.menus.PauseSubState;
*/
class Cutscene extends MusicBeatSubstate {
var __callback:Void->Void;
var __pausable:Bool;
var game:PlayState = PlayState.instance;
public var paused:Bool = false;
public var pauseItems:Array<String>;
public var pausable:Bool;
public var skippable(default, set):Bool;
public function set_skippable(val:Bool):Bool {
@@ -26,9 +26,9 @@ class Cutscene extends MusicBeatSubstate {
canOpenCustomTransition = true;
__callback = callback;
__pausable = allowPause;
pauseItems = Flags.DEFAULT_CUTSCENE_PAUSE_ITEMS;
pausable = allowPause;
skippable = canSkip;
}
@@ -38,7 +38,7 @@ class Cutscene extends MusicBeatSubstate {
}
public function pauseCheck():Bool
return controls.PAUSE && __pausable;
return controls.PAUSE && pausable;
var _before:Array<Bool> = [false, true];
public function pauseCutscene() {
@@ -186,7 +186,7 @@ class VideoCutscene extends Cutscene {
text.destroy();
}});
__pausable = __loaded = true;
pausable = __loaded = true;
video.play();
}