mirror of
https://github.com/osukey/osukey.git
synced 2025-05-16 11:07:35 +09:00
Merge pull request #9819 from peppy/fix-overlay-depths
Always show newly presented overlay at front
This commit is contained in:
commit
088f7f5cc7
@ -702,6 +702,9 @@ namespace osu.Game
|
|||||||
if (state.NewValue == Visibility.Hidden) return;
|
if (state.NewValue == Visibility.Hidden) return;
|
||||||
|
|
||||||
singleDisplayOverlays.Where(o => o != overlay).ForEach(o => o.Hide());
|
singleDisplayOverlays.Where(o => o != overlay).ForEach(o => o.Hide());
|
||||||
|
|
||||||
|
if (!overlay.IsPresent)
|
||||||
|
overlayContent.ChangeChildDepth(overlay, (float)-Clock.CurrentTime);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user