2019-01-24 16:43:03 +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-06 17:10:46 +08:00
|
|
|
|
|
|
|
|
|
using osu.Framework.Graphics;
|
|
|
|
|
using osu.Framework.Graphics.Containers;
|
|
|
|
|
using osu.Framework.Graphics.Shapes;
|
2018-11-20 15:51:59 +08:00
|
|
|
|
using osuTK.Graphics;
|
2018-11-06 17:10:46 +08:00
|
|
|
|
|
2020-07-10 20:34:48 +08:00
|
|
|
|
namespace osu.Game.Screens
|
2018-11-06 17:10:46 +08:00
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Provides a border around the playfield.
|
|
|
|
|
/// </summary>
|
2020-07-10 20:34:48 +08:00
|
|
|
|
public class PlayfieldBorder : CompositeDrawable
|
2018-11-06 17:10:46 +08:00
|
|
|
|
{
|
2020-07-10 20:34:48 +08:00
|
|
|
|
public PlayfieldBorder()
|
2018-11-06 17:10:46 +08:00
|
|
|
|
{
|
|
|
|
|
RelativeSizeAxes = Axes.Both;
|
|
|
|
|
|
|
|
|
|
Masking = true;
|
|
|
|
|
BorderColour = Color4.White;
|
|
|
|
|
BorderThickness = 2;
|
|
|
|
|
|
|
|
|
|
InternalChild = new Box
|
|
|
|
|
{
|
|
|
|
|
RelativeSizeAxes = Axes.Both,
|
|
|
|
|
Alpha = 0,
|
|
|
|
|
AlwaysPresent = true
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|