2020-03-06 07:07:54 +00:00
|
|
|
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
|
|
|
|
// See the LICENCE file in the repository root for full licence text.
|
|
|
|
|
|
|
|
|
|
using osu.Framework.Graphics;
|
|
|
|
|
using osu.Framework.Graphics.Containers;
|
|
|
|
|
using osu.Game.Tournament.Models;
|
|
|
|
|
using osuTK;
|
|
|
|
|
|
|
|
|
|
namespace osu.Game.Tournament.Components
|
|
|
|
|
{
|
|
|
|
|
public partial class DrawableTeamTitleWithHeader : CompositeDrawable
|
|
|
|
|
{
|
2023-06-23 15:59:36 +00:00
|
|
|
|
public DrawableTeamTitleWithHeader(TournamentTeam? team, TeamColour colour)
|
2020-03-06 07:07:54 +00:00
|
|
|
|
{
|
|
|
|
|
AutoSizeAxes = Axes.Both;
|
|
|
|
|
|
|
|
|
|
InternalChild = new FillFlowContainer
|
|
|
|
|
{
|
|
|
|
|
AutoSizeAxes = Axes.Both,
|
|
|
|
|
Direction = FillDirection.Vertical,
|
2023-10-31 03:44:43 +00:00
|
|
|
|
Spacing = new Vector2(0, 5),
|
2020-03-06 07:07:54 +00:00
|
|
|
|
Children = new Drawable[]
|
|
|
|
|
{
|
|
|
|
|
new DrawableTeamHeader(colour),
|
2023-10-31 03:44:43 +00:00
|
|
|
|
new DrawableTeamTitle(team),
|
|
|
|
|
new DrawableTeamSeed(team),
|
2020-03-06 07:07:54 +00:00
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|