1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-15 21:57:25 +08:00
osu-lazer/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 20:04:59 +08:00
using osu.Framework.Allocation;
using osu.Framework.Graphics;
2024-09-04 20:04:59 +08:00
using osu.Game.Graphics;
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-05 13:02:05 +08:00
[Resolved]
protected OsuColour Colours { get; private set; } = null!;
[BackgroundDependencyLoader]
private void load()
{
Origin = Anchor.Centre;
}
2024-09-04 19:25:29 +08:00
protected override void OnApply(AnalysisFrameEntry entry)
{
Position = entry.Position;
2024-09-06 08:14:36 +08:00
Depth = -(float)entry.LifetimeEnd;
}
}
}