1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-19 20:20:21 +08:00
Files
osu-lazer/osu.Game.Rulesets.Shape/Objects/Drawables/Pieces/Triangle.cs
T
2018-03-19 12:07:10 -04:00

36 lines
934 B
C#

using OpenTK;
using OpenTK.Graphics;
using osu.Framework.Extensions.Color4Extensions;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Shapes;
namespace osu.Game.Rulesets.Shape.Objects.Drawables.Pieces
{
public class ShapeTriangle : Container
{
private BaseShape shape;
private Triangle triangle;
public ShapeTriangle(BaseShape Shape)
{
shape = Shape;
}
protected override void LoadComplete()
{
base.LoadComplete();
Children = new Drawable[]
{
triangle = new Triangle
{
Size = new Vector2(shape.ShapeSize),
Origin = Anchor.Centre,
Anchor = Anchor.Centre,
Depth = -2,
}
};
}
}
}