2019-03-04 04:24:19 +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.
|
2018-11-03 22:12:07 +00:00
|
|
|
|
2018-11-11 00:16:46 +00:00
|
|
|
using osu.Framework.Allocation;
|
2020-04-23 18:24:03 +00:00
|
|
|
using osu.Framework.Graphics;
|
|
|
|
using osu.Game.Tournament.Components;
|
2020-04-23 19:09:12 +00:00
|
|
|
using osu.Framework.Graphics.Shapes;
|
|
|
|
using osuTK.Graphics;
|
2018-11-11 00:16:46 +00:00
|
|
|
|
2018-11-03 22:12:07 +00:00
|
|
|
namespace osu.Game.Tournament.Screens.Showcase
|
|
|
|
{
|
2020-04-23 19:09:12 +00:00
|
|
|
public class ShowcaseScreen : BeatmapInfoScreen, IProvideVideo
|
2018-11-06 09:32:59 +00:00
|
|
|
{
|
2020-04-23 19:09:12 +00:00
|
|
|
private Box chroma;
|
2018-11-11 00:16:46 +00:00
|
|
|
[BackgroundDependencyLoader]
|
2019-02-17 10:48:54 +00:00
|
|
|
private void load()
|
2018-11-11 00:16:46 +00:00
|
|
|
{
|
2020-04-23 18:24:03 +00:00
|
|
|
AddRangeInternal(new Drawable[] {
|
|
|
|
new TournamentLogo(),
|
|
|
|
new TourneyVideo("showcase")
|
|
|
|
{
|
|
|
|
Loop = true,
|
|
|
|
RelativeSizeAxes = Axes.Both,
|
2020-04-23 19:09:12 +00:00
|
|
|
},
|
|
|
|
chroma = new Box
|
|
|
|
{
|
|
|
|
// chroma key area for stable gameplay
|
|
|
|
Name = "chroma",
|
|
|
|
Anchor = Anchor.TopCentre,
|
|
|
|
Origin = Anchor.TopCentre,
|
|
|
|
Height = 695,
|
|
|
|
Width = 1366,
|
|
|
|
Colour = new Color4(0, 255, 0, 255),
|
2020-04-23 18:24:03 +00:00
|
|
|
}
|
|
|
|
});
|
2018-11-11 00:16:46 +00:00
|
|
|
}
|
2018-11-03 22:12:07 +00:00
|
|
|
}
|
|
|
|
}
|