1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-24 08:07:26 +08:00
osu-lazer/osu.Game.Tournament/Screens/Showcase/ShowcaseScreen.cs

39 lines
1.2 KiB
C#
Raw Normal View History

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;
using osu.Framework.Graphics;
using osu.Game.Tournament.Components;
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
{
public class ShowcaseScreen : BeatmapInfoScreen, IProvideVideo
2018-11-06 17:32:59 +08:00
{
private Box chroma;
2018-11-11 08:16:46 +08:00
[BackgroundDependencyLoader]
private void load()
2018-11-11 08:16:46 +08:00
{
AddRangeInternal(new Drawable[] {
new TournamentLogo(),
new TourneyVideo("showcase")
{
Loop = true,
RelativeSizeAxes = Axes.Both,
},
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),
}
});
2018-11-11 08:16:46 +08:00
}
2018-11-04 06:12:07 +08:00
}
}