2019-01-24 16:43:03 +08: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-05-20 18:22:42 +08:00
|
|
|
|
|
2018-11-12 16:59:39 +08:00
|
|
|
|
using osu.Framework.Graphics;
|
|
|
|
|
using osu.Game.Rulesets.Mania.Edit.Blueprints.Components;
|
2018-05-20 18:22:42 +08:00
|
|
|
|
using osu.Game.Rulesets.Mania.Objects.Drawables;
|
|
|
|
|
|
2018-11-07 15:08:56 +08:00
|
|
|
|
namespace osu.Game.Rulesets.Mania.Edit.Blueprints
|
2018-05-20 18:22:42 +08:00
|
|
|
|
{
|
2018-11-06 15:16:52 +08:00
|
|
|
|
public class NoteSelectionBlueprint : ManiaSelectionBlueprint
|
2018-05-20 18:22:42 +08:00
|
|
|
|
{
|
2018-11-06 16:56:04 +08:00
|
|
|
|
public NoteSelectionBlueprint(DrawableNote note)
|
2018-05-20 18:22:42 +08:00
|
|
|
|
: base(note)
|
|
|
|
|
{
|
2018-11-12 16:59:39 +08:00
|
|
|
|
AddInternal(new EditNotePiece { RelativeSizeAxes = Axes.X });
|
2018-05-20 18:22:42 +08:00
|
|
|
|
}
|
2018-06-07 17:28:49 +08:00
|
|
|
|
|
|
|
|
|
protected override void Update()
|
|
|
|
|
{
|
|
|
|
|
base.Update();
|
|
|
|
|
|
2019-11-07 12:31:06 +08:00
|
|
|
|
// Todo: This shouldn't exist, mania should not reference the drawable hitobject directly.
|
|
|
|
|
if (DrawableObject.IsLoaded)
|
|
|
|
|
Size = DrawableObject.DrawSize;
|
2018-06-07 17:28:49 +08:00
|
|
|
|
}
|
2018-05-20 18:22:42 +08:00
|
|
|
|
}
|
|
|
|
|
}
|