Merge pull request #9819 from peppy/fix-overlay-depths

Always show newly presented overlay at front
This commit is contained in:
Dan Balasescu 2020-08-11 10:24:37 +09:00 committed by GitHub
commit 088f7f5cc7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -702,6 +702,9 @@ namespace osu.Game
if (state.NewValue == Visibility.Hidden) return;
singleDisplayOverlays.Where(o => o != overlay).ForEach(o => o.Hide());
if (!overlay.IsPresent)
overlayContent.ChangeChildDepth(overlay, (float)-Clock.CurrentTime);
};
}