1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-16 06:17:50 +08:00
osu-lazer/osu.Game.Rulesets.Osu/UI/ReplayAnalysis/HitMarkerLeftClick.cs

50 lines
1.4 KiB
C#
Raw Normal View History

using osu.Framework.Graphics;
using osu.Framework.Graphics.Shapes;
using osuTK;
using osuTK.Graphics;
namespace osu.Game.Rulesets.Osu.UI.ReplayAnalysis
{
public partial class HitMarkerLeftClick : HitMarker
{
public HitMarkerLeftClick()
{
const float length = 20;
Colour = Color4.OrangeRed;
InternalChildren = new Drawable[]
{
new Box
{
Anchor = Anchor.Centre,
Origin = Anchor.Centre,
Size = new Vector2(3, length),
Colour = Colour4.Black.Opacity(0.5F)
},
new Box
{
Anchor = Anchor.Centre,
Origin = Anchor.Centre,
Size = new Vector2(3, length),
Rotation = 90,
Colour = Colour4.Black.Opacity(0.5F)
},
new Box
{
Anchor = Anchor.Centre,
Origin = Anchor.Centre,
Size = new Vector2(1, length),
},
new Box
{
Anchor = Anchor.Centre,
Origin = Anchor.Centre,
Size = new Vector2(1, length),
Rotation = 90,
}
};
}
}
}