Set actions for retry/quit, moved setting paused to PopIn and PopOut, added null propogation for the sound samples for PauseButton(sometimes in the visual tests the audio doesn't load for whatever reason), added a gradient to the background of the PauseOverlay visual test(same as the one in the menu button system test), wired up the retry and quit actions in Player, made the quit action quit the map, retry still does nothing

This commit is contained in:
DrabWeb
2017-01-27 06:19:52 -04:00
parent dedd6a4bcf
commit f35974021a
4 changed files with 37 additions and 18 deletions

View File

@ -102,6 +102,8 @@ namespace osu.Game.Screens.Play
pauseOverlay = new PauseOverlay();
pauseOverlay.OnPause += onPause;
pauseOverlay.OnPlay += onPlay;
pauseOverlay.OnRetry += onRetry;
pauseOverlay.OnQuit += onQuit;
hitRenderer = ruleset.CreateHitRendererWith(beatmap.HitObjects);
@ -185,6 +187,16 @@ namespace osu.Game.Screens.Play
sourceClock.Start();
}
private void onRetry()
{
}
private void onQuit()
{
Exit();
}
protected override void OnEntering(GameMode last)
{
base.OnEntering(last);