Removed DragBar from song progress

This commit is contained in:
Jai Sharma
2017-06-22 17:42:29 +01:00
parent ce2242a979
commit 73c004fb71
5 changed files with 97 additions and 163 deletions

View File

@ -226,7 +226,7 @@ namespace osu.Game.Overlays
{
var track = current.Track;
progressBar.Progress = track.CurrentTime;
progressBar.CurrentTime = track.CurrentTime;
playButton.Icon = track.IsRunning ? FontAwesome.fa_pause_circle_o : FontAwesome.fa_play_circle_o;
if (track.HasCompleted && !track.Looping) next();
@ -437,7 +437,7 @@ namespace osu.Game.Overlays
set { CurrentNumber.MaxValue = value; }
}
public double Progress
public double CurrentTime
{
set { CurrentNumber.Value = value; }
}
@ -445,7 +445,7 @@ namespace osu.Game.Overlays
public ProgressBar()
{
CurrentNumber.MinValue = 0;
CurrentNumber.MaxValue = 1;
CurrentNumber.MinValue = 1;
RelativeSizeAxes = Axes.X;
Children = new Drawable[]