osu/osu.Game.Rulesets.Osu/UI/ReplayAnalysis/HitMarkerMovement.cs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

39 lines
1.0 KiB
C#
Raw Normal View History

using osu.Framework.Graphics;
using osu.Framework.Graphics.Shapes;
2024-09-04 12:04:59 +00:00
using osu.Game.Graphics;
using osuTK;
namespace osu.Game.Rulesets.Osu.UI.ReplayAnalysis
{
public partial class HitMarkerMovement : HitMarker
{
public HitMarkerMovement()
{
InternalChildren = new Drawable[]
{
2024-09-04 12:04:59 +00:00
new Circle
{
Anchor = Anchor.Centre,
Origin = Anchor.Centre,
2024-09-04 12:04:59 +00:00
Colour = OsuColour.Gray(0.2f),
RelativeSizeAxes = Axes.Both,
Size = new Vector2(1.2f)
},
2024-09-04 12:04:59 +00:00
new Circle
{
Anchor = Anchor.Centre,
Origin = Anchor.Centre,
2024-09-04 12:04:59 +00:00
RelativeSizeAxes = Axes.Both,
},
};
}
2024-09-04 12:04:59 +00:00
protected override void OnApply(AnalysisFrameEntry entry)
{
base.OnApply(entry);
Size = new Vector2(entry.Action != null ? 4 : 3);
}
}
}