2020-03-12 13:06:40 +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.
|
|
|
|
|
2020-03-12 13:26:39 +08:00
|
|
|
using System;
|
|
|
|
using System.Collections.Generic;
|
2020-03-12 13:06:40 +08:00
|
|
|
using osu.Framework.Graphics;
|
|
|
|
using osu.Framework.Graphics.Containers;
|
|
|
|
using osu.Game.Graphics;
|
2020-03-12 13:26:39 +08:00
|
|
|
using osu.Game.Tournament.Components;
|
2020-03-12 13:06:40 +08:00
|
|
|
using osu.Game.Tournament.Screens.Gameplay.Components;
|
|
|
|
using osuTK;
|
|
|
|
|
|
|
|
namespace osu.Game.Tournament.Tests.Components
|
|
|
|
{
|
|
|
|
public class TestSceneMatchHeader : TournamentTestScene
|
|
|
|
{
|
2020-03-12 13:26:39 +08:00
|
|
|
public override IReadOnlyList<Type> RequiredTypes => new[]
|
|
|
|
{
|
|
|
|
typeof(DrawableTournamentHeaderText),
|
|
|
|
typeof(DrawableTournamentHeaderLogo),
|
|
|
|
};
|
|
|
|
|
2020-03-12 13:06:40 +08:00
|
|
|
public TestSceneMatchHeader()
|
|
|
|
{
|
|
|
|
Child = new FillFlowContainer
|
|
|
|
{
|
|
|
|
RelativeSizeAxes = Axes.Both,
|
|
|
|
Direction = FillDirection.Vertical,
|
|
|
|
Spacing = new Vector2(50),
|
|
|
|
Children = new Drawable[]
|
|
|
|
{
|
|
|
|
new TournamentSpriteText { Text = "with logo", Font = OsuFont.Torus.With(size: 30) },
|
|
|
|
new MatchHeader(),
|
|
|
|
new TournamentSpriteText { Text = "without logo", Font = OsuFont.Torus.With(size: 30) },
|
|
|
|
new MatchHeader { ShowLogo = false },
|
|
|
|
new TournamentSpriteText { Text = "without scores", Font = OsuFont.Torus.With(size: 30) },
|
|
|
|
new MatchHeader { ShowScores = false },
|
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|