Add retry button

This commit is contained in:
Dean Herbert
2019-11-01 15:32:06 +09:00
parent 14fec6f1f3
commit 84d17f3702
6 changed files with 75 additions and 9 deletions

View File

@ -30,6 +30,7 @@ using osu.Game.Users;
namespace osu.Game.Screens.Play
{
[Cached]
public class Player : ScreenWithBeatmapBackground
{
public override bool AllowBackButton => false; // handled by HoldForMenuButton
@ -313,12 +314,11 @@ namespace osu.Game.Screens.Play
public void Restart()
{
if (!this.IsCurrentScreen()) return;
sampleRestart?.Play();
RestartRequested?.Invoke();
performImmediateExit();
if (this.IsCurrentScreen())
performImmediateExit();
}
private ScheduledDelegate completionProgressDelegate;