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-04-13 17:19:50 +08:00
|
|
|
|
|
2017-02-08 18:32:55 +08:00
|
|
|
|
using osu.Framework.Graphics;
|
|
|
|
|
using osu.Framework.Graphics.Containers;
|
2023-02-15 13:16:34 +08:00
|
|
|
|
using osu.Framework.Graphics.Shapes;
|
2018-11-20 15:51:59 +08:00
|
|
|
|
using osuTK;
|
|
|
|
|
using osuTK.Graphics;
|
2018-04-13 17:19:50 +08:00
|
|
|
|
|
2017-02-08 18:32:55 +08:00
|
|
|
|
namespace osu.Game.Screens.Select
|
|
|
|
|
{
|
|
|
|
|
public partial class WedgeBackground : Container
|
|
|
|
|
{
|
|
|
|
|
public WedgeBackground()
|
|
|
|
|
{
|
|
|
|
|
Children = new[]
|
|
|
|
|
{
|
|
|
|
|
new Box
|
|
|
|
|
{
|
|
|
|
|
RelativeSizeAxes = Axes.Both,
|
|
|
|
|
Size = new Vector2(1, 0.5f),
|
2023-02-15 13:16:34 +08:00
|
|
|
|
Colour = Color4.Black,
|
2017-02-08 18:32:55 +08:00
|
|
|
|
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),
|
2023-02-15 13:16:34 +08:00
|
|
|
|
Colour = Color4.Black,
|
2017-02-08 18:32:55 +08:00
|
|
|
|
Shear = new Vector2(-0.15f, 0),
|
|
|
|
|
EdgeSmoothness = new Vector2(2, 0),
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
}
|
2018-01-05 19:21:19 +08:00
|
|
|
|
}
|