mirror of
https://github.com/ppy/osu.git
synced 2024-11-16 02:57:26 +08:00
51 lines
1.4 KiB
C#
51 lines
1.4 KiB
C#
using osu.Framework.Extensions.Color4Extensions;
|
|
using osu.Framework.Graphics;
|
|
using osu.Framework.Graphics.Shapes;
|
|
using osuTK;
|
|
using osuTK.Graphics;
|
|
|
|
namespace osu.Game.Rulesets.Osu.UI.ReplayAnalysis
|
|
{
|
|
public partial class HitMarkerMovement : HitMarker
|
|
{
|
|
public HitMarkerMovement()
|
|
{
|
|
const float length = 5;
|
|
|
|
Colour = Color4.Gray.Opacity(0.4f);
|
|
|
|
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,
|
|
}
|
|
};
|
|
}
|
|
}
|
|
}
|