nuts
This commit is contained in:
parent
34794026a9
commit
b997f86601
@ -1162,6 +1162,14 @@ class ChartingState extends MusicBeatState
|
||||
});
|
||||
|
||||
var clearSectionButton:FlxButton = new FlxButton(10, 150, "Clear Section", clearSection);
|
||||
var startSection:FlxButton = new FlxButton(10, 85, "Play Here", function() {
|
||||
PlayState.SONG = _song;
|
||||
FlxG.sound.music.stop();
|
||||
if (!PlayState.isSM)
|
||||
vocals.stop();
|
||||
PlayState.startTime = lastUpdatedSection.startTime;
|
||||
LoadingState.loadAndSwitchState(new PlayState());
|
||||
});
|
||||
|
||||
var swapSection:FlxButton = new FlxButton(10, 170, "Swap Section", function()
|
||||
{
|
||||
@ -1234,6 +1242,7 @@ class ChartingState extends MusicBeatState
|
||||
tab_group_section.add(copyButton);
|
||||
tab_group_section.add(clearSectionButton);
|
||||
tab_group_section.add(swapSection);
|
||||
tab_group_section.add(startSection);
|
||||
|
||||
UI_box.addGroup(tab_group_section);
|
||||
}
|
||||
|
@ -104,6 +104,7 @@ class GameOverSubstate extends MusicBeatSubstate
|
||||
{
|
||||
if (!isEnding)
|
||||
{
|
||||
PlayState.startTime = 0;
|
||||
isEnding = true;
|
||||
bf.playAnim('deathConfirm', true);
|
||||
FlxG.sound.music.stop();
|
||||
|
@ -214,6 +214,7 @@ class PauseSubState extends MusicBeatSubstate
|
||||
case "Resume":
|
||||
close();
|
||||
case "Restart Song":
|
||||
PlayState.startTime = 0;
|
||||
if (PlayState.instance.useVideo)
|
||||
{
|
||||
GlobalVideo.get().stop();
|
||||
@ -222,6 +223,7 @@ class PauseSubState extends MusicBeatSubstate
|
||||
}
|
||||
FlxG.resetState();
|
||||
case "Exit to menu":
|
||||
PlayState.startTime = 0;
|
||||
if (PlayState.instance.useVideo)
|
||||
{
|
||||
GlobalVideo.get().stop();
|
||||
|
Loading…
x
Reference in New Issue
Block a user