mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 23:47:24 +08:00
40 lines
1.0 KiB
C#
40 lines
1.0 KiB
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.Allocation;
|
|
using osu.Game.Graphics;
|
|
using osu.Game.Rulesets.Edit;
|
|
using osu.Game.Rulesets.Mania.Objects.Drawables;
|
|
using osu.Game.Rulesets.Mania.Objects.Drawables.Pieces;
|
|
|
|
namespace osu.Game.Rulesets.Mania.Edit.Blueprints
|
|
{
|
|
public class NoteSelectionBlueprint : SelectionBlueprint
|
|
{
|
|
public NoteSelectionBlueprint(DrawableNote note)
|
|
: base(note)
|
|
{
|
|
Scale = note.Scale;
|
|
|
|
CornerRadius = 5;
|
|
Masking = true;
|
|
|
|
AddInternal(new NotePiece());
|
|
}
|
|
|
|
[BackgroundDependencyLoader]
|
|
private void load(OsuColour colours)
|
|
{
|
|
Colour = colours.Yellow;
|
|
}
|
|
|
|
protected override void Update()
|
|
{
|
|
base.Update();
|
|
|
|
Size = HitObject.DrawSize;
|
|
Position = Parent.ToLocalSpace(HitObject.ScreenSpaceDrawQuad.TopLeft);
|
|
}
|
|
}
|
|
}
|