1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-06 23:27:25 +08:00
osu-lazer/osu.Game.Rulesets.Mania/Edit/Blueprints/NoteSelectionBlueprint.cs

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