2024-09-04 20:07:31 +09: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 21:04:59 +09:00
|
|
|
using osu.Framework.Allocation;
|
2024-09-04 20:07:31 +09:00
|
|
|
using osu.Framework.Graphics;
|
2024-09-04 21:04:59 +09:00
|
|
|
using osu.Game.Graphics;
|
2024-09-04 20:07:31 +09:00
|
|
|
using osu.Game.Rulesets.Objects.Pooling;
|
|
|
|
|
|
|
|
namespace osu.Game.Rulesets.Osu.UI.ReplayAnalysis
|
|
|
|
{
|
2024-09-05 14:28:20 +09:00
|
|
|
public abstract partial class AnalysisMarker : PoolableDrawableWithLifetime<AnalysisFrameEntry>
|
2024-09-04 20:07:31 +09:00
|
|
|
{
|
2024-09-05 14:02:05 +09:00
|
|
|
[Resolved]
|
|
|
|
protected OsuColour Colours { get; private set; } = null!;
|
|
|
|
|
|
|
|
[BackgroundDependencyLoader]
|
|
|
|
private void load()
|
2024-09-04 20:07:31 +09:00
|
|
|
{
|
|
|
|
Origin = Anchor.Centre;
|
|
|
|
}
|
|
|
|
|
2024-09-04 20:25:29 +09:00
|
|
|
protected override void OnApply(AnalysisFrameEntry entry)
|
2024-09-04 20:07:31 +09:00
|
|
|
{
|
|
|
|
Position = entry.Position;
|
2024-09-05 20:14:36 -04:00
|
|
|
Depth = -(float)entry.LifetimeEnd;
|
2024-09-04 20:07:31 +09:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|