mirror of
https://github.com/ppy/osu.git
synced 2025-03-29 19:58:40 +08:00
Load even more components async
This commit is contained in:
parent
65b23f38f1
commit
777cdcbdc1
@ -158,19 +158,15 @@ namespace osu.Game
|
|||||||
BeatmapManager.PostNotification = n => notificationOverlay?.Post(n);
|
BeatmapManager.PostNotification = n => notificationOverlay?.Post(n);
|
||||||
BeatmapManager.GetStableStorage = GetStorageForStableInstall;
|
BeatmapManager.GetStableStorage = GetStorageForStableInstall;
|
||||||
|
|
||||||
AddRange(new Drawable[] {
|
AddRange(new Drawable[]
|
||||||
|
{
|
||||||
new VolumeControlReceptor
|
new VolumeControlReceptor
|
||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.Both,
|
RelativeSizeAxes = Axes.Both,
|
||||||
ActionRequested = action => volume.Adjust(action)
|
ActionRequested = action => volume.Adjust(action)
|
||||||
},
|
},
|
||||||
mainContent = new Container
|
mainContent = new Container { RelativeSizeAxes = Axes.Both },
|
||||||
{
|
overlayContent = new Container { RelativeSizeAxes = Axes.Both, Depth = float.MinValue },
|
||||||
RelativeSizeAxes = Axes.Both,
|
|
||||||
},
|
|
||||||
volume = new VolumeControl(),
|
|
||||||
overlayContent = new Container { RelativeSizeAxes = Axes.Both },
|
|
||||||
new OnScreenDisplay(),
|
|
||||||
});
|
});
|
||||||
|
|
||||||
loadComponentSingleFile(screenStack = new Loader(), d =>
|
loadComponentSingleFile(screenStack = new Loader(), d =>
|
||||||
@ -190,6 +186,9 @@ namespace osu.Game
|
|||||||
},
|
},
|
||||||
}, overlayContent.Add);
|
}, overlayContent.Add);
|
||||||
|
|
||||||
|
loadComponentSingleFile(volume = new VolumeControl(), AddInternal);
|
||||||
|
loadComponentSingleFile(new OnScreenDisplay(), AddInternal);
|
||||||
|
|
||||||
//overlay elements
|
//overlay elements
|
||||||
loadComponentSingleFile(direct = new DirectOverlay { Depth = -1 }, mainContent.Add);
|
loadComponentSingleFile(direct = new DirectOverlay { Depth = -1 }, mainContent.Add);
|
||||||
loadComponentSingleFile(social = new SocialOverlay { Depth = -1 }, mainContent.Add);
|
loadComponentSingleFile(social = new SocialOverlay { Depth = -1 }, mainContent.Add);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user