mirror of
https://github.com/ppy/osu.git
synced 2026-05-28 20:40:46 +08:00
Fix skin layer not hiding when revealing background
This commit is contained in:
@@ -95,6 +95,7 @@ namespace osu.Game.Screens.SelectV2
|
||||
private FillFlowContainer wedgesContainer = null!;
|
||||
private Box rightGradientBackground = null!;
|
||||
private Container mainContent = null!;
|
||||
private SkinnableContainer skinnableContent = null!;
|
||||
|
||||
private NoResultsPlaceholder noResultsPlaceholder = null!;
|
||||
|
||||
@@ -257,8 +258,10 @@ namespace osu.Game.Screens.SelectV2
|
||||
},
|
||||
}
|
||||
},
|
||||
new SkinnableContainer(new GlobalSkinnableContainerLookup(GlobalSkinnableContainers.SongSelect))
|
||||
skinnableContent = new SkinnableContainer(new GlobalSkinnableContainerLookup(GlobalSkinnableContainers.SongSelect))
|
||||
{
|
||||
Anchor = Anchor.Centre,
|
||||
Origin = Anchor.Centre,
|
||||
RelativeSizeAxes = Axes.Both,
|
||||
},
|
||||
modSpeedHotkeyHandler = new ModSpeedHotkeyHandler(),
|
||||
@@ -761,6 +764,10 @@ namespace osu.Game.Screens.SelectV2
|
||||
mainContent.ScaleTo(1.2f, 600, Easing.OutQuint);
|
||||
mainContent.FadeOut(200, Easing.OutQuint);
|
||||
|
||||
skinnableContent.ResizeWidthTo(1.2f, 600, Easing.OutQuint);
|
||||
skinnableContent.ScaleTo(1.2f, 600, Easing.OutQuint);
|
||||
skinnableContent.FadeOut(200, Easing.OutQuint);
|
||||
|
||||
Footer?.Hide();
|
||||
}, 200);
|
||||
}
|
||||
@@ -785,6 +792,10 @@ namespace osu.Game.Screens.SelectV2
|
||||
mainContent.ScaleTo(1, 500, Easing.OutQuint);
|
||||
mainContent.FadeIn(500, Easing.OutQuint);
|
||||
|
||||
skinnableContent.ResizeWidthTo(1f, 500, Easing.OutQuint);
|
||||
skinnableContent.ScaleTo(1, 500, Easing.OutQuint);
|
||||
skinnableContent.FadeIn(500, Easing.OutQuint);
|
||||
|
||||
Footer?.Show();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user