1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-04 04:02:59 +08:00

Expire + dispose CaptureBoxes

This commit is contained in:
smoogipoo 2018-02-15 19:11:29 +09:00
parent ebcdb62570
commit cbac4de9c2
2 changed files with 3 additions and 1 deletions

View File

@ -60,8 +60,9 @@ namespace osu.Game.Rulesets.Edit.Layers.Selection
Position = topLeft; Position = topLeft;
} }
protected override void PopIn() => this.FadeIn(); public override bool DisposeOnDeathRemoval => true;
protected override void PopIn() => this.FadeIn();
protected override void PopOut() => this.FadeOut(); protected override void PopOut() => this.FadeOut();
} }
} }

View File

@ -81,6 +81,7 @@ namespace osu.Game.Rulesets.Edit.Layers.Selection
{ {
selectedHitObjects.Clear(); selectedHitObjects.Clear();
captureBox?.Hide(); captureBox?.Hide();
captureBox?.Expire();
} }
/// <summary> /// <summary>