2019-01-24 08:43:03 +00:00
|
|
|
// 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.
|
2018-10-29 09:23:23 +00:00
|
|
|
|
2018-11-07 07:08:56 +00:00
|
|
|
using osu.Game.Rulesets.Osu.Edit.Blueprints.Spinners.Components;
|
2018-10-29 09:23:23 +00:00
|
|
|
using osu.Game.Rulesets.Osu.Objects;
|
|
|
|
using osu.Game.Rulesets.Osu.Objects.Drawables;
|
2018-11-20 07:51:59 +00:00
|
|
|
using osuTK;
|
2018-10-29 09:23:23 +00:00
|
|
|
|
2018-11-07 07:08:56 +00:00
|
|
|
namespace osu.Game.Rulesets.Osu.Edit.Blueprints.Spinners
|
2018-10-29 09:23:23 +00:00
|
|
|
{
|
2019-09-27 09:45:22 +00:00
|
|
|
public class SpinnerSelectionBlueprint : OsuSelectionBlueprint<Spinner>
|
2018-10-29 09:23:23 +00:00
|
|
|
{
|
|
|
|
private readonly SpinnerPiece piece;
|
|
|
|
|
2018-11-06 08:56:04 +00:00
|
|
|
public SpinnerSelectionBlueprint(DrawableSpinner spinner)
|
2018-10-29 09:23:23 +00:00
|
|
|
: base(spinner)
|
|
|
|
{
|
2019-09-27 09:45:22 +00:00
|
|
|
InternalChild = piece = new SpinnerPiece();
|
|
|
|
}
|
|
|
|
|
|
|
|
protected override void Update()
|
|
|
|
{
|
|
|
|
base.Update();
|
|
|
|
|
|
|
|
piece.UpdateFrom(HitObject);
|
2018-10-29 09:23:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public override bool ReceivePositionalInputAt(Vector2 screenSpacePos) => piece.ReceivePositionalInputAt(screenSpacePos);
|
|
|
|
}
|
|
|
|
}
|