mirror of
https://github.com/FunkinCrew/Funkin.git
synced 2024-11-14 19:25:16 -05:00
Merge pull request #2323 from nebulazorua/main
Chart debug key takes you back to chart editor if you're charting
This commit is contained in:
commit
34a6e16385
1 changed files with 14 additions and 6 deletions
|
@ -2548,6 +2548,13 @@ class PlayState extends MusicBeatSubState
|
||||||
|
|
||||||
// Redirect to the chart editor playing the current song.
|
// Redirect to the chart editor playing the current song.
|
||||||
if (controls.DEBUG_CHART)
|
if (controls.DEBUG_CHART)
|
||||||
|
{
|
||||||
|
if (isChartingMode)
|
||||||
|
{
|
||||||
|
if (FlxG.sound.music != null) FlxG.sound.music.pause(); // Don't reset song position!
|
||||||
|
this.close(); // This only works because PlayState is a substate!
|
||||||
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
disableKeys = true;
|
disableKeys = true;
|
||||||
persistentUpdate = false;
|
persistentUpdate = false;
|
||||||
|
@ -2556,6 +2563,7 @@ class PlayState extends MusicBeatSubState
|
||||||
targetSongId: currentSong.id,
|
targetSongId: currentSong.id,
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
#end
|
#end
|
||||||
|
|
||||||
#if (debug || FORCE_DEBUG_VERSION)
|
#if (debug || FORCE_DEBUG_VERSION)
|
||||||
|
|
Loading…
Reference in a new issue