mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 16:29:58 +09:00
Adjust scale and outwards transition of ButtonSystem.
This commit is contained in:
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user