2019-03-04 12:24:19 +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.
|
2018-11-04 06:12:07 +08:00
|
|
|
|
2018-11-11 08:16:46 +08:00
|
|
|
using osu.Framework.Allocation;
|
2020-04-24 02:24:03 +08:00
|
|
|
using osu.Framework.Graphics;
|
2020-04-27 06:02:58 +08:00
|
|
|
using osu.Framework.Graphics.Containers;
|
2020-04-24 02:24:03 +08:00
|
|
|
using osu.Game.Tournament.Components;
|
2020-04-24 03:09:12 +08:00
|
|
|
using osu.Framework.Graphics.Shapes;
|
|
|
|
using osuTK.Graphics;
|
2018-11-11 08:16:46 +08:00
|
|
|
|
2018-11-04 06:12:07 +08:00
|
|
|
namespace osu.Game.Tournament.Screens.Showcase
|
|
|
|
{
|
2020-04-27 07:58:01 +08:00
|
|
|
public class ShowcaseScreen : BeatmapInfoScreen // IProvideVideo
|
2018-11-06 17:32:59 +08:00
|
|
|
{
|
2018-11-11 08:16:46 +08:00
|
|
|
[BackgroundDependencyLoader]
|
2019-02-17 18:48:54 +08:00
|
|
|
private void load()
|
2018-11-11 08:16:46 +08:00
|
|
|
{
|
2020-04-24 23:00:35 +08:00
|
|
|
AddRangeInternal(new Drawable[]
|
|
|
|
{
|
2020-04-24 02:24:03 +08:00
|
|
|
new TournamentLogo(),
|
|
|
|
new TourneyVideo("showcase")
|
|
|
|
{
|
|
|
|
Loop = true,
|
|
|
|
RelativeSizeAxes = Axes.Both,
|
2020-04-24 03:09:12 +08:00
|
|
|
},
|
2020-04-27 06:02:58 +08:00
|
|
|
new Container
|
2020-04-24 23:00:35 +08:00
|
|
|
{
|
2020-04-27 06:02:58 +08: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),
|
|
|
|
}
|
2020-04-24 02:24:03 +08:00
|
|
|
}
|
|
|
|
});
|
2018-11-11 08:16:46 +08:00
|
|
|
}
|
2018-11-04 06:12:07 +08:00
|
|
|
}
|
|
|
|
}
|