mirror of https://github.com/ppy/osu
Fix mod select footer not animating correctly on first reveal
This commit is contained in:
parent
f2236312a0
commit
bb8113fb51
|
@ -216,9 +216,9 @@ public ModSelectOverlay(Func<Mod, bool> isValidMod = null)
|
|||
},
|
||||
new Drawable[]
|
||||
{
|
||||
// Footer
|
||||
new Container
|
||||
{
|
||||
Name = "Footer content",
|
||||
RelativeSizeAxes = Axes.X,
|
||||
AutoSizeAxes = Axes.Y,
|
||||
Origin = Anchor.TopCentre,
|
||||
|
@ -237,10 +237,9 @@ public ModSelectOverlay(Func<Mod, bool> isValidMod = null)
|
|||
Anchor = Anchor.BottomCentre,
|
||||
AutoSizeAxes = Axes.Y,
|
||||
RelativeSizeAxes = Axes.X,
|
||||
RelativePositionAxes = Axes.X,
|
||||
Width = content_width,
|
||||
Spacing = new Vector2(footer_button_spacing, footer_button_spacing / 2),
|
||||
LayoutDuration = 100,
|
||||
LayoutEasing = Easing.OutQuint,
|
||||
Padding = new MarginPadding
|
||||
{
|
||||
Vertical = 15,
|
||||
|
@ -354,7 +353,7 @@ protected override void PopOut()
|
|||
{
|
||||
base.PopOut();
|
||||
|
||||
footerContainer.MoveToX(footerContainer.DrawSize.X, WaveContainer.DISAPPEAR_DURATION, Easing.InSine);
|
||||
footerContainer.MoveToX(content_width, WaveContainer.DISAPPEAR_DURATION, Easing.InSine);
|
||||
footerContainer.FadeOut(WaveContainer.DISAPPEAR_DURATION, Easing.InSine);
|
||||
|
||||
foreach (var section in ModSectionsContainer.Children)
|
||||
|
|
Loading…
Reference in New Issue