mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 16:59:53 +09:00
Update async load usage to new style.
This commit is contained in:
@ -347,12 +347,9 @@ namespace osu.Game.Overlays
|
||||
}
|
||||
});
|
||||
|
||||
dragContainer.Add(new AsyncLoadContainer
|
||||
dragContainer.Add(new AsyncLoadContainer(new MusicControllerBackground(beatmap)
|
||||
{
|
||||
RelativeSizeAxes = Axes.Both,
|
||||
Depth = float.MaxValue,
|
||||
Children = new[] { new MusicControllerBackground(beatmap) },
|
||||
FinishedLoading = d =>
|
||||
OnLoadComplete = d =>
|
||||
{
|
||||
switch (direction)
|
||||
{
|
||||
@ -370,6 +367,9 @@ namespace osu.Game.Overlays
|
||||
currentBackground.Expire();
|
||||
currentBackground = d;
|
||||
}
|
||||
})
|
||||
{
|
||||
Depth = float.MaxValue,
|
||||
});
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user