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

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