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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

43 lines
1.4 KiB
C#
Raw Normal View History

// 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-04-13 18:19:50 +09:00
using osu.Framework.Graphics;
using osu.Framework.Graphics.Colour;
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Shapes;
2018-11-20 16:51:59 +09:00
using osuTK.Graphics;
2018-04-13 18:19:50 +09:00
namespace osu.Game.Screens.Play.Break
{
public partial class LetterboxOverlay : CompositeDrawable
{
private const int height = 350;
2018-04-13 18:19:50 +09:00
private static readonly Color4 transparent_black = new Color4(0, 0, 0, 0);
2018-04-13 18:19:50 +09:00
public LetterboxOverlay()
{
RelativeSizeAxes = Axes.Both;
InternalChildren = new Drawable[]
{
2023-02-13 15:14:25 +03:00
new Box
{
Anchor = Anchor.TopLeft,
Origin = Anchor.TopLeft,
RelativeSizeAxes = Axes.X,
Height = height,
2023-02-13 15:14:25 +03:00
Colour = ColourInfo.GradientVertical(Color4.Black, transparent_black),
},
2023-02-13 15:14:25 +03:00
new Box
{
Anchor = Anchor.BottomLeft,
Origin = Anchor.BottomLeft,
RelativeSizeAxes = Axes.X,
Height = height,
2023-02-13 15:14:25 +03:00
Colour = ColourInfo.GradientVertical(transparent_black, Color4.Black),
}
};
}
}
2017-09-21 01:44:30 +03:00
}