Add more comprehensive testing

This commit is contained in:
Dean Herbert
2019-03-18 14:57:06 +09:00
parent 9433a97747
commit 4f075f4740
2 changed files with 16 additions and 5 deletions

View File

@ -158,14 +158,14 @@ namespace osu.Game.Screens.Play
},
FailOverlay = new FailOverlay
{
OnRetry = restart,
OnRetry = Restart,
OnQuit = performUserRequestedExit,
},
PauseOverlay = new PauseOverlay
{
OnResume = Resume,
Retries = RestartCount,
OnRetry = restart,
OnRetry = Restart,
OnQuit = performUserRequestedExit,
},
new HotkeyRetryOverlay
@ -175,7 +175,7 @@ namespace osu.Game.Screens.Play
if (!this.IsCurrentScreen()) return;
fadeOut(true);
restart();
Restart();
},
}
};
@ -246,7 +246,7 @@ namespace osu.Game.Screens.Play
this.Exit();
}
private void restart()
public void Restart()
{
if (!this.IsCurrentScreen()) return;