Adds DisableSeek property to MusicController

This commit is contained in:
Jacob Odgård Tørring
2018-05-10 13:20:04 +02:00
parent a8ca0c899d
commit d54a7295f6
4 changed files with 13 additions and 6 deletions

View File

@ -221,9 +221,7 @@ namespace osu.Game.Overlays
private bool? conditionalSeek(double progress)
{
if (current.Track.Looping)
return current?.Track.Seek(progress);
return false;
return DisableSeek ? false : current?.Track.Seek(progress);
}
protected override void LoadComplete()
@ -235,6 +233,8 @@ namespace osu.Game.Overlays
base.LoadComplete();
}
public bool DisableSeek { get; set; }
private void beatmapDisabledChanged(bool disabled)
{
if (disabled)