1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-06 06:57:39 +08:00
This commit is contained in:
nwabear 2019-10-25 14:57:49 -05:00
parent 2b7115f5fb
commit b0e21c2749
2 changed files with 12 additions and 0 deletions

View File

@ -239,6 +239,11 @@ namespace osu.Game.Rulesets.UI
continueResume();
}
public override void CancelResume()
{
ResumeOverlay.Hide();
}
/// <summary>
/// Creates and adds the visual representation of a <see cref="TObject"/> to this <see cref="DrawableRuleset{TObject}"/>.
/// </summary>
@ -453,6 +458,8 @@ namespace osu.Game.Rulesets.UI
/// <param name="continueResume">The action to run when resuming is to be completed.</param>
public abstract void RequestResume(Action continueResume);
public abstract void CancelResume();
/// <summary>
/// Create a <see cref="ScoreProcessor"/> for the associated ruleset and link with this
/// <see cref="DrawableRuleset"/>.

View File

@ -443,6 +443,11 @@ namespace osu.Game.Screens.Play
{
if (!canPause) return;
if (IsResuming)
{
DrawableRuleset.CancelResume();
}
IsResuming = false;
GameplayClockContainer.Stop();
PauseOverlay.Show();