1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 19:22:54 +08:00

Add a delay before the osu! logo appears when exiting multiplayer

This commit is contained in:
Dean Herbert 2018-05-28 12:28:11 +09:00
parent 3c3412791c
commit 0ca6d73f0e

View File

@ -8,6 +8,7 @@ using osu.Framework.Screens;
using osu.Game.Graphics; using osu.Game.Graphics;
using osu.Game.Graphics.Backgrounds; using osu.Game.Graphics.Backgrounds;
using osu.Game.Graphics.Containers; using osu.Game.Graphics.Containers;
using osu.Game.Screens.Menu;
using osu.Game.Screens.Multi.Screens.Lounge; using osu.Game.Screens.Multi.Screens.Lounge;
namespace osu.Game.Screens.Multi namespace osu.Game.Screens.Multi
@ -84,6 +85,13 @@ namespace osu.Game.Screens.Multi
waves.Hide(); waves.Hide();
} }
protected override void LogoExiting(OsuLogo logo)
{
// the wave overlay transition takes longer than expected to run.
logo.Delay(WaveContainer.DISAPPEAR_DURATION / 2).FadeOut();
base.LogoExiting(logo);
}
private class MultiplayerWaveContainer : WaveContainer private class MultiplayerWaveContainer : WaveContainer
{ {
protected override bool StartHidden => true; protected override bool StartHidden => true;