mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 17:47:29 +08:00
Moved TestCasePauseOverlay's PauseOverlay action setting to the initialiser
This commit is contained in:
parent
13da75f149
commit
2c12568a0d
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user