mirror of
https://github.com/osukey/osukey.git
synced 2025-08-04 07:06:35 +09:00
Update async load usage to new style.
This commit is contained in:
@ -88,9 +88,9 @@ namespace osu.Game.Screens.Menu
|
||||
}
|
||||
|
||||
[BackgroundDependencyLoader]
|
||||
private void load(OsuGame game, OsuColour colours)
|
||||
private void load(OsuColour colours)
|
||||
{
|
||||
(intro = new Intro()).LoadAsync(game);
|
||||
LoadComponentAsync(intro = new Intro());
|
||||
|
||||
iconColour = colours.Yellow;
|
||||
}
|
||||
|
@ -76,7 +76,7 @@ namespace osu.Game.Screens.Menu
|
||||
{
|
||||
bgm.Start();
|
||||
|
||||
(mainMenu = new MainMenu()).LoadAsync(Game);
|
||||
LoadComponentAsync(mainMenu = new MainMenu());
|
||||
|
||||
Scheduler.AddDelayed(delegate
|
||||
{
|
||||
|
@ -57,7 +57,7 @@ namespace osu.Game.Screens.Menu
|
||||
[BackgroundDependencyLoader]
|
||||
private void load(OsuGame game)
|
||||
{
|
||||
background.LoadAsync(game);
|
||||
LoadComponentAsync(background);
|
||||
|
||||
buttons.OnSettings = game.ToggleOptions;
|
||||
|
||||
@ -67,10 +67,7 @@ namespace osu.Game.Screens.Menu
|
||||
private void preloadSongSelect()
|
||||
{
|
||||
if (songSelect == null)
|
||||
{
|
||||
songSelect = new PlaySongSelect();
|
||||
songSelect.LoadAsync(Game);
|
||||
}
|
||||
LoadComponentAsync(songSelect = new PlaySongSelect());
|
||||
}
|
||||
|
||||
private Screen consumeSongSelect()
|
||||
|
Reference in New Issue
Block a user