mirror of
https://github.com/ppy/osu.git
synced 2024-11-16 07:20:24 +08:00
45e3e3623b
The actual visual extension is only applied to `HitCircle`s (which does include slider start / end), and should not be applied to spinners in the first place. Addresses https://github.com/ppy/osu/discussions/22949.
35 lines
1.3 KiB
C#
35 lines
1.3 KiB
C#
// 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.
|
|
|
|
#nullable disable
|
|
|
|
using osu.Framework.Allocation;
|
|
using osu.Game.Rulesets.Edit;
|
|
using osu.Game.Rulesets.Objects;
|
|
using osu.Game.Rulesets.Osu.Edit.Blueprints.HitCircles.Components;
|
|
using osu.Game.Rulesets.Osu.Objects;
|
|
using osu.Game.Rulesets.Osu.Objects.Drawables;
|
|
using osu.Game.Screens.Edit;
|
|
|
|
namespace osu.Game.Rulesets.Osu.Edit.Blueprints
|
|
{
|
|
public abstract partial class OsuSelectionBlueprint<T> : HitObjectSelectionBlueprint<T>
|
|
where T : OsuHitObject
|
|
{
|
|
[Resolved]
|
|
private EditorClock editorClock { get; set; }
|
|
|
|
protected new DrawableOsuHitObject DrawableObject => (DrawableOsuHitObject)base.DrawableObject;
|
|
|
|
protected override bool AlwaysShowWhenSelected => true;
|
|
|
|
protected override bool ShouldBeAlive => base.ShouldBeAlive
|
|
|| (DrawableObject is not DrawableSpinner && ShowHitMarkers.Value && editorClock.CurrentTime >= Item.StartTime && editorClock.CurrentTime - Item.GetEndTime() < HitCircleOverlapMarker.FADE_OUT_EXTENSION);
|
|
|
|
protected OsuSelectionBlueprint(T hitObject)
|
|
: base(hitObject)
|
|
{
|
|
}
|
|
}
|
|
}
|