Update async load usage to new style.

This commit is contained in:
Dean Herbert
2017-04-02 15:56:12 +09:00
parent 9bd19e99ee
commit 6f1fff4ee7
18 changed files with 146 additions and 170 deletions

View File

@ -14,7 +14,7 @@ namespace osu.Desktop.VisualTests
{
base.LoadComplete();
new BackgroundScreenDefault { Depth = 10 }.LoadAsync(this, AddInternal);
LoadComponentAsync(new BackgroundScreenDefault { Depth = 10 }, AddInternal);
// Have to construct this here, rather than in the constructor, because
// we depend on some dependencies to be loaded within OsuGameBase.load().