1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 15:07:44 +08:00

Remove unnecessary delay before pushing editor from loader

This commit is contained in:
Bartłomiej Dach 2021-09-06 21:31:59 +02:00
parent 2d59008f52
commit 5b9f37702b
No known key found for this signature in database
GPG Key ID: BCECCD4FA41F6497

View File

@ -3,7 +3,6 @@
using JetBrains.Annotations;
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Framework.Screens;
using osu.Framework.Threading;
using osu.Game.Beatmaps;
@ -34,10 +33,11 @@ namespace osu.Game.Screens.Edit
protected override void LogoArriving(OsuLogo logo, bool resuming)
{
base.LogoArriving(logo, resuming);
// the push cannot happen in OnEntering() or similar (even if scheduled), because the transition from main menu will look bad.
// that is because this screen pushing the editor makes it no longer current, and OsuScreen checks if the screen is current
// before enqueueing this screen's LogoArriving onto the logo animation sequence.
logo.Delay(300).Schedule(pushEditor);
pushEditor();
}
private void pushEditor()