Add UserRequestedPause

This commit is contained in:
Desconocidosmh 2019-07-08 11:24:06 +02:00
parent ffc3c9f8f6
commit 39f04e497d

View File

@ -66,6 +66,8 @@ namespace osu.Game.Overlays
/// </summary>
public Func<float> GetToolbarHeight;
public bool UserRequestedPause { get; private set; }
public MusicController()
{
Width = 400;
@ -287,6 +289,8 @@ namespace osu.Game.Overlays
return;
}
UserRequestedPause = track.IsRunning;
if (track.IsRunning)
track.Stop();
else