mirror of
https://github.com/ppy/osu.git
synced 2024-11-16 03:47:26 +08:00
50 lines
1.4 KiB
C#
50 lines
1.4 KiB
C#
|
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,
|
||
|
}
|
||
|
};
|
||
|
}
|
||
|
}
|
||
|
}
|