1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 22:22:54 +08:00

Make HitObjectMasks VisibilityContainers

This commit is contained in:
smoogipoo 2018-03-29 17:19:24 +09:00
parent 4bdfc9dca9
commit 57e4281601

View File

@ -9,13 +9,17 @@ namespace osu.Game.Rulesets.Edit
/// <summary>
/// A mask placed above a <see cref="DrawableHitObject"/> adding editing functionality.
/// </summary>
public class HitObjectMask : Container
public class HitObjectMask : VisibilityContainer
{
public readonly DrawableHitObject HitObject;
public HitObjectMask(DrawableHitObject hitObject)
{
HitObject = hitObject;
State = Visibility.Hidden;
}
protected override void PopIn() => Alpha = 1;
protected override void PopOut() => Alpha = 0;
}
}