Add a test case which starts the game

This commit is contained in:
Dean Herbert
2017-11-08 13:52:44 +09:00
parent 713d730d10
commit d8d7165164
4 changed files with 49 additions and 6 deletions

View File

@ -59,13 +59,16 @@ namespace osu.Game.Screens.Menu
};
}
[BackgroundDependencyLoader]
private void load(OsuGame game)
[BackgroundDependencyLoader(true)]
private void load(OsuGame game = null)
{
LoadComponentAsync(background);
buttons.OnSettings = game.ToggleSettings;
buttons.OnDirect = game.ToggleDirect;
if (game != null)
{
buttons.OnSettings = game.ToggleSettings;
buttons.OnDirect = game.ToggleDirect;
}
preloadSongSelect();
}