mirror of
https://github.com/osukey/osukey.git
synced 2025-06-05 12:57:39 +09:00
Always show newly presented overlay at front
This feels much better. Does not change order if the overlay to be shown is not yet completely hidden. - Closes #9815.
This commit is contained in:
parent
96c4a30fac
commit
730d13fda6
@ -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