diff --git a/assets b/assets index 80cabb3d9..bf85a6950 160000 --- a/assets +++ b/assets @@ -1 +1 @@ -Subproject commit 80cabb3d9bb7bb228c5c0dbdaa170b0888b78e74 +Subproject commit bf85a69507203318bb3f2d2aa24fe14324dd7e9c diff --git a/source/funkin/play/PlayState.hx b/source/funkin/play/PlayState.hx index 9c66617f4..34760ab37 100644 --- a/source/funkin/play/PlayState.hx +++ b/source/funkin/play/PlayState.hx @@ -546,12 +546,12 @@ class PlayState extends MusicBeatSubState /** * The pause button for the game, only appears in Mobile targets. */ - public var pauseButton:FunkinSprite; + var pauseButton:FunkinSprite; /** * The pause circle for the game, only appears in Mobile targets. */ - public var pauseCircle:FunkinSprite; + var pauseCircle:FunkinSprite; #end /** @@ -845,6 +845,14 @@ class PlayState extends MusicBeatSubState refresh(); } + public function togglePauseButton(visible:Bool = false):Void + { + #if mobile + pauseCircle.alpha = visible ? 0.1 : 0; + pauseButton.alpha = visible ? 1 : 0; + #end + } + function assertChartExists():Bool { // Returns null if the song failed to load or doesn't have the selected difficulty. diff --git a/source/funkin/play/cutscene/VideoCutscene.hx b/source/funkin/play/cutscene/VideoCutscene.hx index 398b52d3e..798ab1d3d 100644 --- a/source/funkin/play/cutscene/VideoCutscene.hx +++ b/source/funkin/play/cutscene/VideoCutscene.hx @@ -90,10 +90,9 @@ class VideoCutscene VideoCutscene.cutsceneType = cutsceneType; #if mobile - if (cutsceneType == CutsceneType.ENDING) + if (cutsceneType == ENDING) { - PlayState.instance.pauseCircle.visible = false; - PlayState.instance.pauseButton.visible = false; + PlayState.instance.togglePauseButton(); } #end