Add simple download progress display to download buttons on playlist items

This commit is contained in:
Dean Herbert
2021-08-10 15:14:43 +09:00
parent 6da977f99a
commit 3aa72163f2
2 changed files with 9 additions and 2 deletions

View File

@ -27,7 +27,7 @@ namespace osu.Game.Graphics.UserInterface
[BackgroundDependencyLoader] [BackgroundDependencyLoader]
private void load() private void load()
{ {
Children = new Drawable[] AddRange(new Drawable[]
{ {
Background = new Box Background = new Box
{ {
@ -42,7 +42,7 @@ namespace osu.Game.Graphics.UserInterface
Size = new Vector2(13), Size = new Vector2(13),
Icon = icon, Icon = icon,
}, },
}; });
} }
} }
} }

View File

@ -37,6 +37,13 @@ namespace osu.Game.Overlays.BeatmapListing.Panels
RelativeSizeAxes = Axes.Both, RelativeSizeAxes = Axes.Both,
}, },
}; };
button.Add(new DownloadProgressBar(beatmapSet)
{
Anchor = Anchor.BottomLeft,
Origin = Anchor.BottomLeft,
Depth = -1,
});
} }
protected override void LoadComplete() protected override void LoadComplete()