Move border to more appropriate namespace

This commit is contained in:
Bartłomiej Dach
2020-10-19 20:56:34 +02:00
parent 4af3fd1ed6
commit 4267d23d59
3 changed files with 1 additions and 3 deletions

View File

@ -0,0 +1,37 @@
// 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.
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Shapes;
using osuTK.Graphics;
namespace osu.Game.Rulesets.UI
{
/// <summary>
/// Provides a border around the playfield.
/// </summary>
public class PlayfieldBorder : VisibilityContainer
{
private const int fade_duration = 200;
public PlayfieldBorder()
{
RelativeSizeAxes = Axes.Both;
Masking = true;
BorderColour = Color4.White;
BorderThickness = 2;
InternalChild = new Box
{
RelativeSizeAxes = Axes.Both,
Alpha = 0,
AlwaysPresent = true
};
}
protected override void PopIn() => this.FadeIn(fade_duration, Easing.OutQuint);
protected override void PopOut() => this.FadeOut(fade_duration, Easing.OutQuint);
}
}