Adjust scale and outwards transition of ButtonSystem.

This commit is contained in:
Dean Herbert
2016-10-01 17:01:29 +09:00
parent 665352f706
commit 4ad618abc9
2 changed files with 78 additions and 20 deletions

View File

@ -49,5 +49,28 @@ namespace osu.Game.GameModes.Menu
}
};
}
protected override double OnSuspending(GameMode next)
{
const float length = 400;
buttons.State = ButtonSystem.MenuState.EnteringMode;
Content.FadeOut(length, EasingTypes.InSine);
Content.MoveTo(new Vector2(-800, 0), length, EasingTypes.InSine);
return base.OnSuspending(next);
}
protected override double OnResuming(GameMode last)
{
const float length = 300;
buttons.State = ButtonSystem.MenuState.TopLevel;
Content.FadeIn(length, EasingTypes.OutQuint);
Content.MoveTo(new Vector2(0, 0), length, EasingTypes.OutQuint);
return base.OnResuming(last);
}
}
}