1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-07 00:57:45 +08:00

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

29 lines
826 B
C#
Raw Normal View History

// 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;
using osu.Framework.Graphics;
2024-09-04 21:04:59 +09:00
using osu.Game.Graphics;
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-05 14:02:05 +09:00
[Resolved]
protected OsuColour Colours { get; private set; } = null!;
[BackgroundDependencyLoader]
private void load()
{
Origin = Anchor.Centre;
}
2024-09-04 20:25:29 +09:00
protected override void OnApply(AnalysisFrameEntry entry)
{
Position = entry.Position;
2024-09-05 20:14:36 -04:00
Depth = -(float)entry.LifetimeEnd;
}
}
}