mirror of
https://github.com/ppy/osu.git
synced 2024-11-18 09:32:53 +08:00
27 lines
812 B
C#
27 lines
812 B
C#
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
|
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
|
|
|
using osu.Framework.Graphics;
|
|
using osu.Game.Rulesets.Mania.Edit.Blueprints.Components;
|
|
using osu.Game.Rulesets.Mania.Objects.Drawables;
|
|
|
|
namespace osu.Game.Rulesets.Mania.Edit.Blueprints
|
|
{
|
|
public class NoteSelectionBlueprint : ManiaSelectionBlueprint
|
|
{
|
|
public NoteSelectionBlueprint(DrawableNote note)
|
|
: base(note)
|
|
{
|
|
AddInternal(new EditNotePiece { RelativeSizeAxes = Axes.X });
|
|
}
|
|
|
|
protected override void Update()
|
|
{
|
|
base.Update();
|
|
|
|
Size = HitObject.DrawSize;
|
|
Position = Parent.ToLocalSpace(HitObject.ScreenSpaceDrawQuad.TopLeft);
|
|
}
|
|
}
|
|
}
|