1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-21 22:07:25 +08:00

Hide settings/notifications regardless of IsPresent state of new overlay

This commit is contained in:
Dean Herbert 2022-11-08 14:38:02 +09:00
parent 2163cd212b
commit b9374cae55

View File

@ -1002,13 +1002,13 @@ namespace osu.Game
{
otherOverlays.Where(o => o != overlay).ForEach(o => o.Hide());
Settings.Hide();
Notifications.Hide();
// Partially visible so leave it at the current depth.
if (overlay.IsPresent)
return;
Settings.Hide();
Notifications.Hide();
// Show above all other overlays.
if (overlay.IsLoaded)
overlayContent.ChangeChildDepth(overlay, (float)-Clock.CurrentTime);