mirror of
https://github.com/ppy/osu.git
synced 2025-02-06 18:52:55 +08:00
55 lines
1.6 KiB
C#
55 lines
1.6 KiB
C#
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
|
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
|
|
|
using osu.Framework.Graphics;
|
|
using osu.Framework.Graphics.Containers;
|
|
using osu.Framework.Graphics.Sprites;
|
|
using OpenTK;
|
|
|
|
namespace osu.Game.Modes.Taiko.Objects.Drawable
|
|
{
|
|
public class DrawableMajorBarLine : DrawableBarLine
|
|
{
|
|
public DrawableMajorBarLine(BarLine barLine)
|
|
: base(barLine)
|
|
{
|
|
Add(new Container
|
|
{
|
|
Anchor = Anchor.Centre,
|
|
Origin = Anchor.Centre,
|
|
|
|
RelativeSizeAxes = Axes.Both,
|
|
|
|
Children = new[]
|
|
{
|
|
new EquilateralTriangle
|
|
{
|
|
Name = "Top",
|
|
|
|
Anchor = Anchor.TopCentre,
|
|
Origin = Anchor.TopCentre,
|
|
|
|
Position = new Vector2(0, -10),
|
|
Size = new Vector2(-20),
|
|
|
|
EdgeSmoothness = new Vector2(1),
|
|
},
|
|
new EquilateralTriangle
|
|
{
|
|
Name = "Bottom",
|
|
|
|
Anchor = Anchor.BottomCentre,
|
|
Origin = Anchor.TopCentre,
|
|
|
|
Position = new Vector2(0, 10),
|
|
Size = new Vector2(20),
|
|
|
|
EdgeSmoothness = new Vector2(1),
|
|
}
|
|
}
|
|
});
|
|
|
|
Tracker.Alpha = 1f;
|
|
}
|
|
}
|
|
} |