mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 18:23:04 +08:00
Allow version manager to load completely async
This commit is contained in:
parent
cfd081493e
commit
ae0029082a
@ -12,7 +12,6 @@ using osu.Desktop.Overlays;
|
||||
using osu.Framework.Graphics.Containers;
|
||||
using osu.Framework.Platform;
|
||||
using osu.Game;
|
||||
using osu.Game.Screens.Menu;
|
||||
using OpenTK.Input;
|
||||
|
||||
namespace osu.Desktop
|
||||
@ -82,16 +81,11 @@ namespace osu.Desktop
|
||||
{
|
||||
base.LoadComplete();
|
||||
|
||||
LoadComponentAsync(versionManager = new VersionManager { Depth = int.MinValue });
|
||||
|
||||
ScreenChanged += s =>
|
||||
LoadComponentAsync(versionManager = new VersionManager { Depth = int.MinValue }, v =>
|
||||
{
|
||||
if (s is Intro && s.ChildScreen == null)
|
||||
{
|
||||
Add(versionManager);
|
||||
versionManager.State = Visibility.Visible;
|
||||
}
|
||||
};
|
||||
Add(v);
|
||||
v.State = Visibility.Visible;
|
||||
});
|
||||
}
|
||||
|
||||
public override void SetHost(GameHost host)
|
||||
|
Loading…
Reference in New Issue
Block a user