mirror of
https://github.com/ppy/osu.git
synced 2025-01-13 03:13:21 +08:00
Add a delay before the loading logo is displayed
This commit is contained in:
parent
e8cc3294d7
commit
9497db0b0b
@ -36,7 +36,13 @@ namespace osu.Game.Screens
|
|||||||
logo.Position = new Vector2(-40);
|
logo.Position = new Vector2(-40);
|
||||||
logo.Scale = new Vector2(0.2f);
|
logo.Scale = new Vector2(0.2f);
|
||||||
|
|
||||||
logo.FadeInFromZero(5000, Easing.OutQuint);
|
logo.Delay(500).FadeInFromZero(1000, Easing.OutQuint);
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override void LogoSuspending(OsuLogo logo)
|
||||||
|
{
|
||||||
|
base.LogoSuspending(logo);
|
||||||
|
logo.FadeOut(logo.Alpha * 1000);
|
||||||
}
|
}
|
||||||
|
|
||||||
private OsuScreen loadScreen;
|
private OsuScreen loadScreen;
|
||||||
@ -63,12 +69,6 @@ namespace osu.Game.Screens
|
|||||||
Push(loadScreen);
|
Push(loadScreen);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void LogoSuspending(OsuLogo logo)
|
|
||||||
{
|
|
||||||
base.LogoSuspending(logo);
|
|
||||||
logo.FadeOut(100);
|
|
||||||
}
|
|
||||||
|
|
||||||
[BackgroundDependencyLoader]
|
[BackgroundDependencyLoader]
|
||||||
private void load(OsuGameBase game)
|
private void load(OsuGameBase game)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user