Show a spinner instead of the download button on the new card during beatmap download

This commit is contained in:
Dean Herbert
2021-11-26 15:32:33 +09:00
parent 8e16ff7f72
commit 5de2f6211d
2 changed files with 47 additions and 15 deletions

View File

@ -54,6 +54,8 @@ namespace osu.Game.Beatmaps.Drawables.Cards.Buttons
protected readonly SpriteIcon Icon;
protected override Container<Drawable> Content => content;
private readonly Container content;
protected BeatmapCardIconButton()
@ -61,7 +63,7 @@ namespace osu.Game.Beatmaps.Drawables.Cards.Buttons
Origin = Anchor.Centre;
Anchor = Anchor.Centre;
Child = content = new Container
base.Content.Add(content = new Container
{
RelativeSizeAxes = Axes.Both,
Masking = true,
@ -75,7 +77,7 @@ namespace osu.Game.Beatmaps.Drawables.Cards.Buttons
Anchor = Anchor.Centre
}
}
};
});
Size = new Vector2(24);
IconSize = 12;