1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 07:32:55 +08:00

Moved TestCasePauseOverlay's PauseOverlay action setting to the initialiser

This commit is contained in:
DrabWeb 2017-01-31 20:51:26 -04:00
parent 13da75f149
commit 2c12568a0d

View File

@ -24,7 +24,13 @@ namespace osu.Desktop.VisualTests.Tests
{
base.Reset();
Add(pauseOverlay = new PauseOverlay { Depth = -1 });
Add(pauseOverlay = new PauseOverlay
{
Depth = -1,
OnResume = () => Logger.Log(@"Resume"),
OnRetry = () => Logger.Log(@"Retry"),
OnQuit = () => Logger.Log(@"Quit")
});
AddButton("Pause", pauseOverlay.Show);
AddButton("Add Retry", delegate
{
@ -32,9 +38,6 @@ namespace osu.Desktop.VisualTests.Tests
pauseOverlay.Retries = retryCount;
});
pauseOverlay.OnResume += () => Logger.Log(@"Resume");
pauseOverlay.OnRetry += () => Logger.Log(@"Retry");
pauseOverlay.OnQuit += () => Logger.Log(@"Quit");
retryCount = 0;
}
}