This commit is contained in:
Andrei Zavatski
2019-10-17 15:24:51 +03:00
parent 42cd4107a0
commit 6b196a6ce7
2 changed files with 12 additions and 5 deletions

View File

@ -45,15 +45,16 @@ namespace osu.Game.Graphics.UserInterface
set => loading.Size = value; set => loading.Size = value;
} }
private readonly Container background;
private readonly LoadingAnimation loading; private readonly LoadingAnimation loading;
private readonly Drawable content; private readonly Drawable content;
public LoadingButton() protected LoadingButton()
{ {
Container background;
Child = background = CreateBackground(); Child = background = CreateBackground();
background.AddRange(new Drawable[] background.AddRange(new[]
{ {
content = CreateContent(), content = CreateContent(),
loading = new LoadingAnimation loading = new LoadingAnimation

View File

@ -81,11 +81,17 @@ namespace osu.Game.Overlays.Comments
Spacing = new Vector2(5, 0), Spacing = new Vector2(5, 0),
Children = new Drawable[] Children = new Drawable[]
{ {
votePill = new VotePill(comment) new Container
{ {
Anchor = Anchor.Centre, Anchor = Anchor.Centre,
Origin = Anchor.Centre, Origin = Anchor.Centre,
AlwaysPresent = true, Width = 40,
AutoSizeAxes = Axes.Y,
Child = votePill = new VotePill(comment)
{
Anchor = Anchor.CentreRight,
Origin = Anchor.CentreRight,
}
}, },
new UpdateableAvatar(comment.User) new UpdateableAvatar(comment.User)
{ {