mirror of
https://github.com/ppy/osu.git
synced 2025-01-19 13:45:59 +08:00
Add HasQuit gameplay state
This commit is contained in:
parent
781cb9f18d
commit
38e075c522
@ -49,6 +49,11 @@ namespace osu.Game.Screens.Play
|
||||
/// </summary>
|
||||
public bool HasFailed { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Whether the user quit gameplay without either having either passed or failed.
|
||||
/// </summary>
|
||||
public bool HasQuit { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// A bindable tracking the last judgement result applied to any hit object.
|
||||
/// </summary>
|
||||
|
@ -983,6 +983,9 @@ namespace osu.Game.Screens.Play
|
||||
|
||||
public override bool OnExiting(IScreen next)
|
||||
{
|
||||
if (!GameplayState.HasPassed && !GameplayState.HasFailed)
|
||||
GameplayState.HasQuit = true;
|
||||
|
||||
screenSuspension?.RemoveAndDisposeImmediately();
|
||||
failAnimationLayer?.RemoveFilters();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user