2020-03-06 15:07:54 +08: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.Graphics;
|
|
|
|
using osu.Game.Tournament.Models;
|
|
|
|
|
|
|
|
namespace osu.Game.Tournament.Components
|
|
|
|
{
|
|
|
|
public class RoundDisplay : CompositeDrawable
|
|
|
|
{
|
|
|
|
public RoundDisplay(TournamentMatch match)
|
|
|
|
{
|
|
|
|
AutoSizeAxes = Axes.Both;
|
|
|
|
|
|
|
|
InternalChildren = new Drawable[]
|
|
|
|
{
|
|
|
|
new FillFlowContainer
|
|
|
|
{
|
|
|
|
AutoSizeAxes = Axes.Both,
|
|
|
|
Direction = FillDirection.Vertical,
|
|
|
|
Children = new Drawable[]
|
|
|
|
{
|
2020-03-12 12:29:09 +08:00
|
|
|
new DrawableTournamentHeaderText(),
|
2020-03-06 15:07:54 +08:00
|
|
|
new TournamentSpriteText
|
|
|
|
{
|
|
|
|
Text = match.Round.Value?.Name.Value ?? "Unknown Round",
|
|
|
|
Font = OsuFont.Torus.With(size: 26, weight: FontWeight.SemiBold)
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|