mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 11:42:54 +08:00
Use existing local function
Co-Authored-By: Bartłomiej Dach <dach.bartlomiej@gmail.com>
This commit is contained in:
parent
2fe32b7d2b
commit
414e704d37
@ -46,12 +46,7 @@ namespace osu.Game.Tournament.Components
|
|||||||
{
|
{
|
||||||
Direction = FillDirection.Vertical,
|
Direction = FillDirection.Vertical,
|
||||||
AutoSizeAxes = Axes.Both,
|
AutoSizeAxes = Axes.Both,
|
||||||
ChildrenEnumerable = team?.Players.Select(p => new TournamentSpriteText
|
ChildrenEnumerable = team?.Players.Select(createPlayerText).Skip(5) ?? Enumerable.Empty<Drawable>()
|
||||||
{
|
|
||||||
Text = p.Username,
|
|
||||||
Font = OsuFont.Torus.With(size: 24, weight: FontWeight.SemiBold),
|
|
||||||
Colour = Color4.White,
|
|
||||||
}).Skip(5) ?? Enumerable.Empty<Drawable>()
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user