osu/osu.Game.Rulesets.Mania/Edit/Blueprints/NoteSelectionBlueprint.cs

26 lines
733 B
C#
Raw Normal View History

// 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-05-20 10:22:42 +00:00
using osu.Framework.Graphics;
using osu.Game.Rulesets.Mania.Edit.Blueprints.Components;
2018-05-20 10:22:42 +00:00
using osu.Game.Rulesets.Mania.Objects.Drawables;
2018-11-07 07:08:56 +00:00
namespace osu.Game.Rulesets.Mania.Edit.Blueprints
2018-05-20 10:22:42 +00:00
{
public class NoteSelectionBlueprint : ManiaSelectionBlueprint
2018-05-20 10:22:42 +00:00
{
2018-11-06 08:56:04 +00:00
public NoteSelectionBlueprint(DrawableNote note)
2018-05-20 10:22:42 +00:00
: base(note)
{
AddInternal(new EditNotePiece { RelativeSizeAxes = Axes.X });
2018-05-20 10:22:42 +00:00
}
2018-06-07 09:28:49 +00:00
protected override void Update()
{
base.Update();
Size = DrawableObject.DrawSize;
2018-06-07 09:28:49 +00:00
}
2018-05-20 10:22:42 +00:00
}
}