mirror of https://github.com/ppy/osu
Continue showing progress bar on direct panels when importing
Previously the progrress bar would fade out once downloads completed, which felt unintuitive.
This commit is contained in:
parent
64c32f5715
commit
060d80efbe
|
@ -18,7 +18,7 @@ public class ProgressBar : SliderBar<double>
|
|||
|
||||
public Color4 FillColour
|
||||
{
|
||||
set { fill.Colour = value; }
|
||||
set { fill.FadeColour(value, 150, Easing.OutQuint); }
|
||||
}
|
||||
|
||||
public Color4 BackgroundColour
|
||||
|
|
|
@ -65,11 +65,14 @@ protected DirectPanel(BeatmapSetInfo setInfo)
|
|||
Colour = Color4.Black.Opacity(0.3f),
|
||||
};
|
||||
|
||||
private OsuColour colours;
|
||||
|
||||
[BackgroundDependencyLoader(permitNulls: true)]
|
||||
private void load(BeatmapManager beatmaps, OsuColour colours, BeatmapSetOverlay beatmapSetOverlay)
|
||||
{
|
||||
this.beatmaps = beatmaps;
|
||||
this.beatmapSetOverlay = beatmapSetOverlay;
|
||||
this.colours = colours;
|
||||
|
||||
AddInternal(content = new Container
|
||||
{
|
||||
|
@ -188,7 +191,7 @@ private void attachDownload(DownloadBeatmapSetRequest request)
|
|||
request.Success += data =>
|
||||
{
|
||||
progressBar.Current.Value = 1;
|
||||
progressBar.FadeOut(500);
|
||||
progressBar.FillColour = colours.Yellow;
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue