1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 12:57:36 +08:00

Add a delay before the loading logo is displayed

This commit is contained in:
Dean Herbert 2018-05-30 20:21:25 +09:00
parent e8cc3294d7
commit 9497db0b0b

View File

@ -36,7 +36,13 @@ namespace osu.Game.Screens
logo.Position = new Vector2(-40);
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;
@ -63,12 +69,6 @@ namespace osu.Game.Screens
Push(loadScreen);
}
protected override void LogoSuspending(OsuLogo logo)
{
base.LogoSuspending(logo);
logo.FadeOut(100);
}
[BackgroundDependencyLoader]
private void load(OsuGameBase game)
{