Fix note masks not working

This commit is contained in:
smoogipoo 2018-06-07 18:28:49 +09:00
parent d1b469c1a3
commit cd532cde2d

View File

@ -1,7 +1,6 @@
// 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.Graphics;
using osu.Framework.Allocation;
using osu.Game.Graphics;
using osu.Game.Rulesets.Edit;
@ -15,10 +14,6 @@ namespace osu.Game.Rulesets.Mania.Edit.Layers.Selection.Overlays
public NoteMask(DrawableNote note)
: base(note)
{
Origin = Anchor.Centre;
Position = note.Position;
Size = note.Size;
Scale = note.Scale;
AddInternal(new NotePiece());
@ -31,5 +26,13 @@ namespace osu.Game.Rulesets.Mania.Edit.Layers.Selection.Overlays
{
Colour = colours.Yellow;
}
protected override void Update()
{
base.Update();
Size = HitObject.DrawSize;
Position = Parent.ToLocalSpace(HitObject.ScreenSpaceDrawQuad.BottomLeft);
}
}
}