mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 23:12:56 +08:00
Fixed Issue #6442
This commit is contained in:
parent
2b7115f5fb
commit
b0e21c2749
@ -239,6 +239,11 @@ namespace osu.Game.Rulesets.UI
|
|||||||
continueResume();
|
continueResume();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public override void CancelResume()
|
||||||
|
{
|
||||||
|
ResumeOverlay.Hide();
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Creates and adds the visual representation of a <see cref="TObject"/> to this <see cref="DrawableRuleset{TObject}"/>.
|
/// Creates and adds the visual representation of a <see cref="TObject"/> to this <see cref="DrawableRuleset{TObject}"/>.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -453,6 +458,8 @@ namespace osu.Game.Rulesets.UI
|
|||||||
/// <param name="continueResume">The action to run when resuming is to be completed.</param>
|
/// <param name="continueResume">The action to run when resuming is to be completed.</param>
|
||||||
public abstract void RequestResume(Action continueResume);
|
public abstract void RequestResume(Action continueResume);
|
||||||
|
|
||||||
|
public abstract void CancelResume();
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Create a <see cref="ScoreProcessor"/> for the associated ruleset and link with this
|
/// Create a <see cref="ScoreProcessor"/> for the associated ruleset and link with this
|
||||||
/// <see cref="DrawableRuleset"/>.
|
/// <see cref="DrawableRuleset"/>.
|
||||||
|
@ -443,6 +443,11 @@ namespace osu.Game.Screens.Play
|
|||||||
{
|
{
|
||||||
if (!canPause) return;
|
if (!canPause) return;
|
||||||
|
|
||||||
|
if (IsResuming)
|
||||||
|
{
|
||||||
|
DrawableRuleset.CancelResume();
|
||||||
|
}
|
||||||
|
|
||||||
IsResuming = false;
|
IsResuming = false;
|
||||||
GameplayClockContainer.Stop();
|
GameplayClockContainer.Stop();
|
||||||
PauseOverlay.Show();
|
PauseOverlay.Show();
|
||||||
|
Loading…
Reference in New Issue
Block a user