mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 14:32:55 +08:00
54 lines
1.7 KiB
C#
54 lines
1.7 KiB
C#
// 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.
|
|
|
|
#nullable disable
|
|
|
|
using osu.Framework.Allocation;
|
|
using osu.Framework.Bindables;
|
|
using osu.Framework.Graphics;
|
|
using osu.Framework.Graphics.Containers;
|
|
using osu.Game.Tournament.Components;
|
|
using osu.Framework.Graphics.Shapes;
|
|
using osu.Game.Tournament.Models;
|
|
using osuTK.Graphics;
|
|
|
|
namespace osu.Game.Tournament.Screens.Showcase
|
|
{
|
|
public partial class ShowcaseScreen : BeatmapInfoScreen
|
|
{
|
|
[BackgroundDependencyLoader]
|
|
private void load()
|
|
{
|
|
AddRangeInternal(new Drawable[]
|
|
{
|
|
new TournamentLogo(),
|
|
new TourneyVideo("showcase")
|
|
{
|
|
Loop = true,
|
|
RelativeSizeAxes = Axes.Both,
|
|
},
|
|
new Container
|
|
{
|
|
Padding = new MarginPadding { Bottom = SongBar.HEIGHT },
|
|
RelativeSizeAxes = Axes.Both,
|
|
Child = new Box
|
|
{
|
|
// chroma key area for stable gameplay
|
|
Name = "chroma",
|
|
Anchor = Anchor.TopCentre,
|
|
Origin = Anchor.TopCentre,
|
|
RelativeSizeAxes = Axes.Both,
|
|
Colour = new Color4(0, 255, 0, 255),
|
|
}
|
|
}
|
|
});
|
|
}
|
|
|
|
protected override void CurrentMatchChanged(ValueChangedEvent<TournamentMatch> match)
|
|
{
|
|
// showcase screen doesn't care about a match being selected.
|
|
// base call intentionally omitted to not show match warning.
|
|
}
|
|
}
|
|
}
|