1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 05:42:56 +08:00

Make HitObjectOverlay into an OverlayContainer

This commit is contained in:
smoogipoo 2018-02-22 14:36:58 +09:00
parent 45c579630d
commit 0cdf6fa7e2

View File

@ -6,7 +6,7 @@ using osu.Game.Rulesets.Objects.Drawables;
namespace osu.Game.Rulesets.Edit.Layers.Selection
{
public class HitObjectOverlay : CompositeDrawable
public class HitObjectOverlay : OverlayContainer
{
// ReSharper disable once NotAccessedField.Local
// This will be used later to handle drag movement, etc
@ -15,6 +15,11 @@ namespace osu.Game.Rulesets.Edit.Layers.Selection
public HitObjectOverlay(DrawableHitObject hitObject)
{
this.hitObject = hitObject;
State = Visibility.Visible;
}
protected override void PopIn() => Alpha = 1;
protected override void PopOut() => Alpha = 0;
}
}