mirror of
https://github.com/ppy/osu
synced 2024-12-16 03:45:46 +00:00
Add UserRequestedPause
This commit is contained in:
parent
ffc3c9f8f6
commit
39f04e497d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user