1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 16:27:26 +08:00
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;
}
private readonly Container background;
private readonly LoadingAnimation loading;
private readonly Drawable content;
public LoadingButton()
protected LoadingButton()
{
Container background;
Child = background = CreateBackground();
background.AddRange(new Drawable[]
background.AddRange(new[]
{
content = CreateContent(),
loading = new LoadingAnimation

View File

@ -81,11 +81,17 @@ namespace osu.Game.Overlays.Comments
Spacing = new Vector2(5, 0),
Children = new Drawable[]
{
votePill = new VotePill(comment)
new Container
{
Anchor = 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)
{