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:
parent
4bdfc9dca9
commit
57e4281601
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user