2018-04-13 17:19:50 +08:00
|
|
|
|
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
|
|
|
|
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
|
|
|
|
|
|
|
|
|
using osu.Framework.Graphics.Containers;
|
|
|
|
|
using osu.Framework.Graphics;
|
|
|
|
|
using osu.Game.Graphics.Containers;
|
|
|
|
|
|
|
|
|
|
namespace osu.Game.Overlays
|
|
|
|
|
{
|
|
|
|
|
public abstract class WaveOverlayContainer : OsuFocusedOverlayContainer
|
|
|
|
|
{
|
2018-04-15 15:44:40 +08:00
|
|
|
|
protected readonly WaveContainer Waves;
|
2018-04-13 17:19:50 +08:00
|
|
|
|
|
|
|
|
|
protected override bool BlockPassThroughKeyboard => true;
|
2018-04-15 15:44:40 +08:00
|
|
|
|
protected override Container<Drawable> Content => Waves;
|
2018-04-13 17:19:50 +08:00
|
|
|
|
|
|
|
|
|
protected WaveOverlayContainer()
|
|
|
|
|
{
|
2018-04-15 15:44:40 +08:00
|
|
|
|
AddInternal(Waves = new WaveContainer
|
2018-04-13 17:19:50 +08:00
|
|
|
|
{
|
|
|
|
|
RelativeSizeAxes = Axes.Both,
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected override void PopIn()
|
|
|
|
|
{
|
|
|
|
|
base.PopIn();
|
2018-04-15 15:44:40 +08:00
|
|
|
|
Waves.Show();
|
2018-04-13 17:19:50 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected override void PopOut()
|
|
|
|
|
{
|
|
|
|
|
base.PopOut();
|
2018-04-15 15:44:40 +08:00
|
|
|
|
Waves.Hide();
|
2018-04-13 17:19:50 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|