mirror of
https://github.com/ppy/osu.git
synced 2025-02-16 06:43:20 +08:00
Code formatting and slight changes to transitions.
This commit is contained in:
parent
9594b7193c
commit
926c46dbd4
@ -82,7 +82,7 @@ namespace osu.Game.GameModes.Menu
|
|||||||
protected override void OnResuming(GameMode last)
|
protected override void OnResuming(GameMode last)
|
||||||
{
|
{
|
||||||
//we are just an intro. if we are resumed, we just want to exit after a short delay (to allow the last mode to transition out).
|
//we are just an intro. if we are resumed, we just want to exit after a short delay (to allow the last mode to transition out).
|
||||||
Game.Scheduler.AddDelayed(Exit, 300);
|
Game.Scheduler.AddDelayed(Exit, 600);
|
||||||
|
|
||||||
base.OnResuming(last);
|
base.OnResuming(last);
|
||||||
}
|
}
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
//Copyright (c) 2007-2016 ppy Pty Ltd <contact@ppy.sh>.
|
//Copyright (c) 2007-2016 ppy Pty Ltd <contact@ppy.sh>.
|
||||||
//Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
//Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
||||||
|
|
||||||
using osu.Framework.Audio.Sample;
|
|
||||||
using osu.Framework.Audio.Track;
|
|
||||||
using osu.Framework.GameModes;
|
using osu.Framework.GameModes;
|
||||||
using osu.Framework.GameModes.Testing;
|
using osu.Framework.GameModes.Testing;
|
||||||
using osu.Framework.Graphics;
|
using osu.Framework.Graphics;
|
||||||
|
@ -41,11 +41,11 @@ namespace osu.Game.Overlays
|
|||||||
{
|
{
|
||||||
case ToolbarState.Hidden:
|
case ToolbarState.Hidden:
|
||||||
MoveToY(-Size.Y, transition_time, EasingTypes.InQuint);
|
MoveToY(-Size.Y, transition_time, EasingTypes.InQuint);
|
||||||
FadeOut(transition_time);
|
FadeOut(transition_time, EasingTypes.InQuint);
|
||||||
break;
|
break;
|
||||||
case ToolbarState.Visible:
|
case ToolbarState.Visible:
|
||||||
MoveToY(0, transition_time, EasingTypes.OutQuint);
|
MoveToY(0, transition_time, EasingTypes.OutQuint);
|
||||||
FadeIn(transition_time);
|
FadeIn(transition_time, EasingTypes.OutQuint);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user