Pressing back while mod select is visible should close mod select before exiting.

This commit is contained in:
Dean Herbert
2017-03-23 19:35:46 +09:00
parent 8c4fd44a85
commit 63d7c5a5a3

View File

@ -4,6 +4,7 @@
using OpenTK.Input;
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Primitives;
using osu.Framework.Screens;
using osu.Game.Beatmaps;
@ -65,6 +66,17 @@ namespace osu.Game.Screens.Select
base.OnResuming(last);
}
protected override bool OnExiting(Screen next)
{
if (modSelect.State == Visibility.Visible)
{
modSelect.Hide();
return true;
}
return base.OnExiting(next);
}
protected override void OnSelected()
{
if (player != null) return;