mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 19:42:55 +08:00
Fix regressions caused by removing specified depths
- urgentOverlayContent is added so toolbar can be loaded first
This commit is contained in:
parent
a39648edbc
commit
1f95abf7c7
@ -401,6 +401,7 @@ namespace osu.Game
|
|||||||
},
|
},
|
||||||
overlayContent = new Container { RelativeSizeAxes = Axes.Both },
|
overlayContent = new Container { RelativeSizeAxes = Axes.Both },
|
||||||
floatingOverlayContent = new Container { RelativeSizeAxes = Axes.Both },
|
floatingOverlayContent = new Container { RelativeSizeAxes = Axes.Both },
|
||||||
|
urgentOverlayContent = new Container { RelativeSizeAxes = Axes.Both },
|
||||||
idleTracker = new GameIdleTracker(6000)
|
idleTracker = new GameIdleTracker(6000)
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -420,7 +421,7 @@ namespace osu.Game
|
|||||||
CloseAllOverlays(false);
|
CloseAllOverlays(false);
|
||||||
menuScreen?.MakeCurrent();
|
menuScreen?.MakeCurrent();
|
||||||
},
|
},
|
||||||
}, floatingOverlayContent.Add);
|
}, urgentOverlayContent.Add);
|
||||||
|
|
||||||
loadComponentSingleFile(volume = new VolumeOverlay(), floatingOverlayContent.Add);
|
loadComponentSingleFile(volume = new VolumeOverlay(), floatingOverlayContent.Add);
|
||||||
loadComponentSingleFile(onscreenDisplay = new OnScreenDisplay(), Add);
|
loadComponentSingleFile(onscreenDisplay = new OnScreenDisplay(), Add);
|
||||||
@ -435,13 +436,6 @@ namespace osu.Game
|
|||||||
loadComponentSingleFile(settings = new MainSettings { GetToolbarHeight = () => ToolbarOffset }, floatingOverlayContent.Add);
|
loadComponentSingleFile(settings = new MainSettings { GetToolbarHeight = () => ToolbarOffset }, floatingOverlayContent.Add);
|
||||||
loadComponentSingleFile(userProfile = new UserProfileOverlay(), overlayContent.Add);
|
loadComponentSingleFile(userProfile = new UserProfileOverlay(), overlayContent.Add);
|
||||||
loadComponentSingleFile(beatmapSetOverlay = new BeatmapSetOverlay(), overlayContent.Add);
|
loadComponentSingleFile(beatmapSetOverlay = new BeatmapSetOverlay(), overlayContent.Add);
|
||||||
loadComponentSingleFile(musicController = new MusicController
|
|
||||||
{
|
|
||||||
Position = new Vector2(0, Toolbar.HEIGHT),
|
|
||||||
Anchor = Anchor.TopRight,
|
|
||||||
Origin = Anchor.TopRight,
|
|
||||||
}, floatingOverlayContent.Add);
|
|
||||||
|
|
||||||
loadComponentSingleFile(notifications = new NotificationOverlay
|
loadComponentSingleFile(notifications = new NotificationOverlay
|
||||||
{
|
{
|
||||||
GetToolbarHeight = () => ToolbarOffset,
|
GetToolbarHeight = () => ToolbarOffset,
|
||||||
@ -449,11 +443,18 @@ namespace osu.Game
|
|||||||
Origin = Anchor.TopRight,
|
Origin = Anchor.TopRight,
|
||||||
}, floatingOverlayContent.Add);
|
}, floatingOverlayContent.Add);
|
||||||
|
|
||||||
loadComponentSingleFile(accountCreation = new AccountCreationOverlay(), floatingOverlayContent.Add);
|
loadComponentSingleFile(musicController = new MusicController
|
||||||
|
{
|
||||||
|
Position = new Vector2(0, Toolbar.HEIGHT),
|
||||||
|
Anchor = Anchor.TopRight,
|
||||||
|
Origin = Anchor.TopRight,
|
||||||
|
}, floatingOverlayContent.Add);
|
||||||
|
|
||||||
loadComponentSingleFile(dialogOverlay = new DialogOverlay(), floatingOverlayContent.Add);
|
loadComponentSingleFile(accountCreation = new AccountCreationOverlay(), urgentOverlayContent.Add);
|
||||||
|
|
||||||
loadComponentSingleFile(externalLinkOpener = new ExternalLinkOpener(), floatingOverlayContent.Add);
|
loadComponentSingleFile(dialogOverlay = new DialogOverlay(), urgentOverlayContent.Add);
|
||||||
|
|
||||||
|
loadComponentSingleFile(externalLinkOpener = new ExternalLinkOpener(), urgentOverlayContent.Add);
|
||||||
|
|
||||||
dependencies.CacheAs(idleTracker);
|
dependencies.CacheAs(idleTracker);
|
||||||
dependencies.Cache(settings);
|
dependencies.Cache(settings);
|
||||||
@ -699,6 +700,8 @@ namespace osu.Game
|
|||||||
|
|
||||||
private Container floatingOverlayContent;
|
private Container floatingOverlayContent;
|
||||||
|
|
||||||
|
private Container urgentOverlayContent;
|
||||||
|
|
||||||
private FrameworkConfigManager frameworkConfig;
|
private FrameworkConfigManager frameworkConfig;
|
||||||
private ScalingContainer screenContainer;
|
private ScalingContainer screenContainer;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user