2023-06-23 00:37:25 +08:00
|
|
|
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
2019-01-24 16:43:03 +08:00
|
|
|
|
// See the LICENCE file in the repository root for full licence text.
|
2018-10-29 17:23:23 +08:00
|
|
|
|
|
2018-11-07 15:08:56 +08:00
|
|
|
|
using osu.Game.Rulesets.Osu.Edit.Blueprints.Spinners.Components;
|
2018-10-29 17:23:23 +08:00
|
|
|
|
using osu.Game.Rulesets.Osu.Objects;
|
2018-11-20 15:51:59 +08:00
|
|
|
|
using osuTK;
|
2018-10-29 17:23:23 +08:00
|
|
|
|
|
2018-11-07 15:08:56 +08:00
|
|
|
|
namespace osu.Game.Rulesets.Osu.Edit.Blueprints.Spinners
|
2018-10-29 17:23:23 +08:00
|
|
|
|
{
|
2022-11-24 13:32:20 +08:00
|
|
|
|
public partial class SpinnerSelectionBlueprint : OsuSelectionBlueprint<Spinner>
|
2018-10-29 17:23:23 +08:00
|
|
|
|
{
|
|
|
|
|
private readonly SpinnerPiece piece;
|
|
|
|
|
|
2021-05-13 18:53:32 +08:00
|
|
|
|
public SpinnerSelectionBlueprint(Spinner spinner)
|
2018-10-29 17:23:23 +08:00
|
|
|
|
: base(spinner)
|
|
|
|
|
{
|
2019-09-27 17:45:22 +08:00
|
|
|
|
InternalChild = piece = new SpinnerPiece();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected override void Update()
|
|
|
|
|
{
|
|
|
|
|
base.Update();
|
|
|
|
|
|
|
|
|
|
piece.UpdateFrom(HitObject);
|
2018-10-29 17:23:23 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override bool ReceivePositionalInputAt(Vector2 screenSpacePos) => piece.ReceivePositionalInputAt(screenSpacePos);
|
|
|
|
|
}
|
|
|
|
|
}
|