1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-13 16:13:34 +08:00

Apply alternative solution

Fixes the logo flying out of the wrong corner when transitioning from
song select to gameplay.

Co-authored-by: Dean Herbert <pe@ppy.sh>
This commit is contained in:
Bartłomiej Dach 2024-01-29 20:04:18 +01:00
parent f2546d72c2
commit acc2614090
No known key found for this signature in database
3 changed files with 12 additions and 3 deletions

View File

@ -486,5 +486,12 @@ namespace osu.Game.Screens.Menu
defaultProxyTarget.Add(this);
defaultProxyTarget.Add(proxy = CreateProxy());
}
public void ChangeAnchor(Anchor anchor)
{
var previousAnchor = AnchorPosition;
Anchor = anchor;
Position -= AnchorPosition - previousAnchor;
}
}
}

View File

@ -250,9 +250,12 @@ namespace osu.Game.Screens
{
logo.Action = null;
logo.FadeOut(300, Easing.OutQuint);
logo.Anchor = Anchor.TopLeft;
logo.Origin = Anchor.Centre;
logo.ChangeAnchor(Anchor.TopLeft);
logo.RelativePositionAxes = Axes.Both;
logo.Triangles = true;
logo.Ripple = true;
}

View File

@ -642,9 +642,8 @@ namespace osu.Game.Screens.Select
{
base.LogoArriving(logo, resuming);
logo.Anchor = Anchor.BottomRight;
logo.Origin = Anchor.Centre;
logo.RelativePositionAxes = Axes.None;
logo.ChangeAnchor(Anchor.BottomRight);
Vector2 position = new Vector2(-76, -36);