mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2024-12-27 07:27:12 +00:00
Fix for Menu->Freeplay and Play->Pause transitions
This commit is contained in:
parent
0136202c36
commit
b54c335886
|
@ -1,5 +1,6 @@
|
|||
package funkin;
|
||||
|
||||
import flixel.addons.transition.FlxTransitionableSubState;
|
||||
import funkin.ui.debug.DebugMenuSubState;
|
||||
import flixel.FlxObject;
|
||||
import flixel.FlxSprite;
|
||||
|
@ -102,6 +103,9 @@ class MainMenuState extends MusicBeatState
|
|||
createMenuItem('freeplay', 'mainmenu/freeplay', function() {
|
||||
persistentDraw = true;
|
||||
persistentUpdate = false;
|
||||
// Freeplay has its own custom transition
|
||||
FlxTransitionableSubState.skipNextTransIn = true;
|
||||
FlxTransitionableSubState.skipNextTransOut = true;
|
||||
openSubState(new FreeplayState());
|
||||
});
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
package funkin.play;
|
||||
|
||||
import flixel.addons.transition.FlxTransitionableSubState;
|
||||
import funkin.ui.debug.charting.ChartEditorState;
|
||||
import haxe.Int64;
|
||||
import funkin.play.notes.notestyle.NoteStyle;
|
||||
|
@ -780,6 +781,8 @@ class PlayState extends MusicBeatSubState
|
|||
|
||||
var pauseSubState:FlxSubState = new PauseSubState(isChartingMode);
|
||||
|
||||
FlxTransitionableSubState.skipNextTransIn = true;
|
||||
FlxTransitionableSubState.skipNextTransOut = true;
|
||||
openSubState(pauseSubState);
|
||||
pauseSubState.camera = camHUD;
|
||||
// boyfriendPos.put(); // TODO: Why is this here?
|
||||
|
|
Loading…
Reference in a new issue