2024-09-04 19:07:31 +08:00
|
|
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
|
|
|
// See the LICENCE file in the repository root for full licence text.
|
|
|
|
|
2024-09-04 20:04:59 +08:00
|
|
|
using osu.Framework.Allocation;
|
2024-09-04 19:07:31 +08:00
|
|
|
using osu.Framework.Graphics;
|
2024-09-04 20:04:59 +08:00
|
|
|
using osu.Game.Graphics;
|
2024-09-04 19:07:31 +08:00
|
|
|
using osu.Game.Rulesets.Objects.Pooling;
|
|
|
|
|
|
|
|
namespace osu.Game.Rulesets.Osu.UI.ReplayAnalysis
|
|
|
|
{
|
2024-09-05 13:28:20 +08:00
|
|
|
public abstract partial class AnalysisMarker : PoolableDrawableWithLifetime<AnalysisFrameEntry>
|
2024-09-04 19:07:31 +08:00
|
|
|
{
|
2024-09-05 13:02:05 +08:00
|
|
|
[Resolved]
|
|
|
|
protected OsuColour Colours { get; private set; } = null!;
|
|
|
|
|
|
|
|
[BackgroundDependencyLoader]
|
|
|
|
private void load()
|
2024-09-04 19:07:31 +08:00
|
|
|
{
|
|
|
|
Origin = Anchor.Centre;
|
|
|
|
}
|
|
|
|
|
2024-09-04 19:25:29 +08:00
|
|
|
protected override void OnApply(AnalysisFrameEntry entry)
|
2024-09-04 19:07:31 +08:00
|
|
|
{
|
|
|
|
Position = entry.Position;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|