Changed the roles of PauseOverlay and player in pausing, PauseOverlay is now only the UI portion and doesn't do things like actually pause the game, and only calls actions and hides itself, whereas Player actually pauses the game and brings up the pause overlay in the first place

This commit is contained in:
DrabWeb
2017-01-27 15:28:39 -04:00
parent 601a5ed39c
commit feba3f35ba
3 changed files with 89 additions and 68 deletions

View File

@ -38,13 +38,8 @@ namespace osu.Desktop.VisualTests.Tests
Width = 100,
Height = 50,
Colour = Color4.Black,
Action = (() => pauseOverlay.Pause()),
});
pauseOverlay.OnPause += (() => Logger.Log(@"Pause"));
pauseOverlay.OnResume += (() => Logger.Log(@"Resume"));
pauseOverlay.OnRetry += (() => Logger.Log(@"Retry"));
pauseOverlay.OnQuit += (() => Logger.Log(@"Quit"));
Action = (() => pauseOverlay.Show()),
});
}
}
}