2020-05-29 17:58:34 +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.
|
|
|
|
|
2022-06-17 15:37:17 +08:00
|
|
|
#nullable disable
|
|
|
|
|
2020-05-29 15:40:10 +08:00
|
|
|
using osu.Framework.Graphics;
|
|
|
|
using osu.Framework.Graphics.Containers;
|
|
|
|
using osu.Framework.Graphics.Shapes;
|
|
|
|
using osuTK.Graphics;
|
|
|
|
|
|
|
|
namespace osu.Game.Rulesets.Taiko.Edit.Blueprints
|
|
|
|
{
|
|
|
|
public class LengthPiece : CompositeDrawable
|
|
|
|
{
|
|
|
|
public LengthPiece()
|
|
|
|
{
|
|
|
|
Origin = Anchor.CentreLeft;
|
|
|
|
|
|
|
|
InternalChild = new Container
|
|
|
|
{
|
|
|
|
Masking = true,
|
|
|
|
Colour = Color4.Yellow,
|
|
|
|
RelativeSizeAxes = Axes.Both,
|
|
|
|
Children = new Drawable[]
|
|
|
|
{
|
|
|
|
new Box
|
|
|
|
{
|
|
|
|
RelativeSizeAxes = Axes.X,
|
|
|
|
Height = 8,
|
|
|
|
},
|
|
|
|
new Box
|
|
|
|
{
|
|
|
|
Origin = Anchor.BottomLeft,
|
|
|
|
Anchor = Anchor.BottomLeft,
|
|
|
|
RelativeSizeAxes = Axes.X,
|
|
|
|
Height = 8,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|