Make sure intro can't be exited unless the main menu has displayed once.

This commit is contained in:
Dean Herbert
2016-10-07 18:58:20 +09:00
parent c5228b63cb
commit 08728b84d1
8 changed files with 26 additions and 15 deletions

View File

@ -9,6 +9,8 @@ using System.Threading.Tasks;
using osu.Framework.GameModes;
using osu.Framework.Graphics.Transformations;
using OpenTK;
using osu.Framework.Graphics;
using osu.Framework.Input;
namespace osu.Game.GameModes
{
@ -46,12 +48,12 @@ namespace osu.Game.GameModes
base.OnSuspending(next);
}
protected override void OnExiting(GameMode next)
protected override bool OnExiting(GameMode next)
{
Content.FadeOut(transition_length, EasingTypes.OutExpo);
Content.MoveToX(x_movement_amount, transition_length, EasingTypes.OutExpo);
base.OnExiting(next);
return base.OnExiting(next);
}
protected override void OnResuming(GameMode last)