1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-07 04:17:18 +08:00

52 lines
1.7 KiB
C#
Raw Normal View History

2023-06-23 01:37:25 +09:00
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
2019-03-04 13:24:19 +09:00
// See the LICENCE file in the repository root for full licence text.
2018-11-04 07:12:07 +09:00
2018-11-11 09:16:46 +09:00
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;
2018-11-11 09:16:46 +09:00
2018-11-04 07:12:07 +09:00
namespace osu.Game.Tournament.Screens.Showcase
{
2022-11-24 14:32:20 +09:00
public partial class ShowcaseScreen : BeatmapInfoScreen
2018-11-06 18:32:59 +09:00
{
2018-11-11 09:16:46 +09:00
[BackgroundDependencyLoader]
private void load()
2018-11-11 09:16:46 +09:00
{
2020-04-24 17:00:35 +02:00
AddRangeInternal(new Drawable[]
{
new TournamentLogo(),
new TourneyVideo("showcase")
{
Loop = true,
RelativeSizeAxes = Axes.Both,
},
new Container
2020-04-24 17:00:35 +02:00
{
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),
}
}
});
2018-11-11 09:16:46 +09:00
}
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.
}
2018-11-04 07:12:07 +09:00
}
}