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:
parent
2d59008f52
commit
5b9f37702b
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user