1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-13 03:42:57 +08:00

Move team seed to below team name

This commit is contained in:
Dean Herbert 2023-10-31 12:40:21 +09:00
parent e76a5f9419
commit 87c9df937f
No known key found for this signature in database
3 changed files with 15 additions and 20 deletions

View File

@ -22,6 +22,12 @@ namespace osu.Game.Tournament.Components
[Resolved]
private LadderInfo ladder { get; set; } = null!;
[BackgroundDependencyLoader]
private void load()
{
Text.Font = Text.Font.With(size: 36);
}
protected override void LoadComplete()
{
base.LoadComplete();

View File

@ -29,7 +29,7 @@ namespace osu.Game.Tournament.Components
{
Colour = TournamentGame.ELEMENT_FOREGROUND_COLOUR,
Font = OsuFont.Torus.With(weight: FontWeight.SemiBold, size: 50),
Padding = new MarginPadding { Horizontal = 10 },
Padding = new MarginPadding { Left = 10, Right = 20 },
Text = text,
}
};

View File

@ -95,28 +95,17 @@ namespace osu.Game.Tournament.Screens.Gameplay.Components
}
}
},
new FillFlowContainer
teamNameText = new TournamentSpriteTextWithBackground
{
AutoSizeAxes = Axes.Both,
Direction = FillDirection.Horizontal,
Spacing = new Vector2(5),
Scale = new Vector2(0.5f),
Origin = anchor,
Anchor = anchor,
},
new DrawableTeamSeed(Team)
{
Scale = new Vector2(0.5f),
Origin = anchor,
Anchor = anchor,
Children = new Drawable[]
{
teamNameText = new TournamentSpriteTextWithBackground
{
Scale = new Vector2(0.5f),
Origin = anchor,
Anchor = anchor,
},
new DrawableTeamSeed(Team)
{
Scale = new Vector2(0.5f),
Origin = anchor,
Anchor = anchor,
},
}
},
}
},