mirror of
https://github.com/ppy/osu.git
synced 2024-11-18 21:02:54 +08:00
41 lines
1.3 KiB
C#
41 lines
1.3 KiB
C#
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
|
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
|
|
|
using osu.Framework.Extensions.Color4Extensions;
|
|
using osu.Framework.Graphics;
|
|
using osu.Framework.Graphics.Containers;
|
|
using OpenTK;
|
|
using OpenTK.Graphics;
|
|
using osu.Framework.Graphics.Shapes;
|
|
|
|
namespace osu.Game.Screens.Select
|
|
{
|
|
public class WedgeBackground : Container
|
|
{
|
|
public WedgeBackground()
|
|
{
|
|
Children = new[]
|
|
{
|
|
new Box
|
|
{
|
|
RelativeSizeAxes = Axes.Both,
|
|
Size = new Vector2(1, 0.5f),
|
|
Colour = Color4.Black.Opacity(0.5f),
|
|
Shear = new Vector2(0.15f, 0),
|
|
EdgeSmoothness = new Vector2(2, 0),
|
|
},
|
|
new Box
|
|
{
|
|
RelativeSizeAxes = Axes.Both,
|
|
RelativePositionAxes = Axes.Y,
|
|
Size = new Vector2(1, -0.5f),
|
|
Position = new Vector2(0, 1),
|
|
Colour = Color4.Black.Opacity(0.5f),
|
|
Shear = new Vector2(-0.15f, 0),
|
|
EdgeSmoothness = new Vector2(2, 0),
|
|
},
|
|
};
|
|
}
|
|
}
|
|
}
|