mirror of
https://github.com/osukey/osukey.git
synced 2025-07-03 01:09:57 +09:00
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:
@ -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()),
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user