mirror of https://github.com/ppy/osu
Fix WaveOverlayContainer always being present
This commit is contained in:
parent
f29c6987d2
commit
a6fc128094
|
@ -25,13 +25,20 @@ protected WaveOverlayContainer()
|
|||
protected override void PopIn()
|
||||
{
|
||||
base.PopIn();
|
||||
|
||||
Waves.Show();
|
||||
|
||||
this.FadeIn();
|
||||
}
|
||||
|
||||
protected override void PopOut()
|
||||
{
|
||||
base.PopOut();
|
||||
|
||||
Waves.Hide();
|
||||
|
||||
// this is required or we will remain present even though our waves are hidden.
|
||||
this.Delay(WaveContainer.DISAPPEAR_DURATION).FadeOut();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue