mirror of
https://github.com/osukey/osukey.git
synced 2025-07-03 01:09:57 +09:00
Merge branch 'master' into fix-user-download-cancel
This commit is contained in:
@ -64,11 +64,14 @@ namespace osu.Game.Overlays.Direct
|
||||
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
|
||||
{
|
||||
@ -105,6 +108,8 @@ namespace osu.Game.Overlays.Direct
|
||||
beatmaps.BeatmapDownloadBegan += attachDownload;
|
||||
}
|
||||
|
||||
public override bool DisposeOnDeathRemoval => true;
|
||||
|
||||
protected override void Dispose(bool isDisposing)
|
||||
{
|
||||
base.Dispose(isDisposing);
|
||||
@ -186,7 +191,7 @@ namespace osu.Game.Overlays.Direct
|
||||
request.Success += data =>
|
||||
{
|
||||
progressBar.Current.Value = 1;
|
||||
progressBar.FadeOut(500);
|
||||
progressBar.FillColour = colours.Yellow;
|
||||
};
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user