Skip to content

Commit

Permalink
Changed PauseSubState to HBot v0.1 one
Browse files Browse the repository at this point in the history
  • Loading branch information
Reycko authored Jun 19, 2022
1 parent 18068ec commit 892b651
Showing 1 changed file with 3 additions and 15 deletions.
18 changes: 3 additions & 15 deletions source/PauseSubState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -201,15 +201,6 @@ class PauseSubState extends MusicBeatSubstate
FlxG.sound.music.volume = 0;
PlayState.changedDifficulty = true;
PlayState.chartingMode = false;
skipTimeTracker = null;

if(skipTimeText != null)
{
skipTimeText.kill();
remove(skipTimeText);
skipTimeText.destroy();
}
skipTimeText = null;
return;
}

Expand Down Expand Up @@ -254,20 +245,17 @@ class PauseSubState extends MusicBeatSubstate
case 'Toggle Botplay':
PlayState.instance.cpuControlled = !PlayState.instance.cpuControlled;
PlayState.changedDifficulty = true;
PlayState.instance.botplayTxt.visible = PlayState.instance.cpuControlled;
PlayState.instance.botplayTxt.alpha = 1;
// PlayState.instance.botplayTxt.visible = PlayState.instance.cpuControlled;
// PlayState.instance.botplayTxt.alpha = 1;
PlayState.instance.botplaySine = 0;
case "Exit to menu":
PlayState.deathCounter = 0;
PlayState.seenCutscene = false;

WeekData.loadTheFirstEnabledMod();
if(PlayState.isStoryMode) {
MusicBeatState.switchState(new StoryMenuState());
} else {
MusicBeatState.switchState(new FreeplayState());
}
PlayState.cancelMusicFadeTween();
FlxG.sound.playMusic(Paths.music('freakyMenu'));
PlayState.changedDifficulty = false;
PlayState.chartingMode = false;
Expand Down Expand Up @@ -367,7 +355,7 @@ class PauseSubState extends MusicBeatSubstate

function updateSkipTextStuff()
{
if(skipTimeText == null || skipTimeTracker == null) return;
if(skipTimeText == null) return;

skipTimeText.x = skipTimeTracker.x + skipTimeTracker.width + 60;
skipTimeText.y = skipTimeTracker.y;
Expand Down

0 comments on commit 892b651

Please sign in to comment.