mirror of
https://github.com/osukey/osukey.git
synced 2025-08-05 07:33:55 +09:00
Fix depth values.
This commit is contained in:
@ -39,7 +39,7 @@ namespace osu.Game.Screens.Backgrounds
|
||||
float newDepth = 0;
|
||||
if (background != null)
|
||||
{
|
||||
newDepth = background.Depth - 1;
|
||||
newDepth = background.Depth + 1;
|
||||
background.Flush();
|
||||
background.FadeOut(250);
|
||||
background.Expire();
|
||||
|
@ -111,7 +111,7 @@ namespace osu.Game.Screens
|
||||
{
|
||||
AddInternal(new ParallaxContainer
|
||||
{
|
||||
Depth = float.MinValue,
|
||||
Depth = float.MaxValue,
|
||||
Children = new[]
|
||||
{
|
||||
Background = bg
|
||||
|
@ -50,7 +50,7 @@ namespace osu.Game.Screens.Select
|
||||
|
||||
var lastContainer = beatmapInfoContainer;
|
||||
|
||||
float newDepth = lastContainer?.Depth - 1 ?? 0;
|
||||
float newDepth = lastContainer?.Depth + 1 ?? 0;
|
||||
|
||||
BeatmapSetInfo beatmapSetInfo = beatmap.BeatmapSetInfo;
|
||||
BeatmapInfo beatmapInfo = beatmap.BeatmapInfo;
|
||||
|
@ -81,12 +81,12 @@ namespace osu.Game.Screens.Select
|
||||
group.State = BeatmapGroupState.Collapsed;
|
||||
groups.Add(group);
|
||||
|
||||
group.Header.Depth = scrollableContent.Children.Count();
|
||||
group.Header.Depth = -scrollableContent.Children.Count();
|
||||
scrollableContent.Add(group.Header);
|
||||
|
||||
foreach (BeatmapPanel panel in group.BeatmapPanels)
|
||||
{
|
||||
panel.Depth = scrollableContent.Children.Count();
|
||||
panel.Depth = -scrollableContent.Children.Count();
|
||||
scrollableContent.Add(panel);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user