mirror of
https://github.com/ppy/osu.git
synced 2024-12-27 07:53:06 +08:00
31 lines
939 B
C#
31 lines
939 B
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.
|
|
|
|
using osu.Game.Rulesets.Osu.Edit.Blueprints.Spinners.Components;
|
|
using osu.Game.Rulesets.Osu.Objects;
|
|
using osu.Game.Rulesets.Osu.Objects.Drawables;
|
|
using osuTK;
|
|
|
|
namespace osu.Game.Rulesets.Osu.Edit.Blueprints.Spinners
|
|
{
|
|
public class SpinnerSelectionBlueprint : OsuSelectionBlueprint<Spinner>
|
|
{
|
|
private readonly SpinnerPiece piece;
|
|
|
|
public SpinnerSelectionBlueprint(DrawableSpinner spinner)
|
|
: base(spinner)
|
|
{
|
|
InternalChild = piece = new SpinnerPiece();
|
|
}
|
|
|
|
protected override void Update()
|
|
{
|
|
base.Update();
|
|
|
|
piece.UpdateFrom(HitObject);
|
|
}
|
|
|
|
public override bool ReceivePositionalInputAt(Vector2 screenSpacePos) => piece.ReceivePositionalInputAt(screenSpacePos);
|
|
}
|
|
}
|