mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 16:29:58 +09:00
Update tests and delay push animation until loader is done disappearing
This commit is contained in:
@ -5,6 +5,7 @@ using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using osu.Framework.Allocation;
|
||||
using osu.Framework.Graphics;
|
||||
using osu.Framework.Graphics.Containers;
|
||||
using osu.Framework.Graphics.Shaders;
|
||||
using osu.Framework.Utils;
|
||||
using osu.Game.Screens.Menu;
|
||||
@ -87,8 +88,14 @@ namespace osu.Game.Screens
|
||||
}
|
||||
|
||||
spinnerShow?.Cancel();
|
||||
spinner.Hide();
|
||||
this.Push(loadableScreen);
|
||||
|
||||
if (spinner.State.Value == Visibility.Visible)
|
||||
{
|
||||
spinner.Hide();
|
||||
Scheduler.AddDelayed(() => this.Push(loadableScreen), LoadingSpinner.TRANSITION_DURATION);
|
||||
}
|
||||
else
|
||||
this.Push(loadableScreen);
|
||||
}
|
||||
|
||||
[BackgroundDependencyLoader]
|
||||
|
Reference in New Issue
Block a user