mirror of
https://github.com/ppy/osu.git
synced 2024-12-21 07:53:38 +08:00
28 lines
869 B
C#
28 lines
869 B
C#
// 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.
|
|
|
|
using osu.Framework.Graphics;
|
|
using osu.Game.Rulesets.Mania.Edit.Blueprints.Components;
|
|
using osu.Game.Rulesets.Mania.Objects;
|
|
|
|
namespace osu.Game.Rulesets.Mania.Edit.Blueprints
|
|
{
|
|
public class NoteSelectionBlueprint : ManiaSelectionBlueprint<Note>
|
|
{
|
|
public NoteSelectionBlueprint(Note note)
|
|
: base(note)
|
|
{
|
|
AddInternal(new EditNotePiece { RelativeSizeAxes = Axes.X });
|
|
}
|
|
|
|
protected override void Update()
|
|
{
|
|
base.Update();
|
|
|
|
// Todo: This shouldn't exist, mania should not reference the drawable hitobject directly.
|
|
if (DrawableObject.IsLoaded)
|
|
Size = DrawableObject.DrawSize;
|
|
}
|
|
}
|
|
}
|