mirror of https://github.com/ppy/osu
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:
parent
f2546d72c2
commit
acc2614090
|
@ -486,5 +486,12 @@ public void SetupDefaultContainer(Container container)
|
|||
defaultProxyTarget.Add(this);
|
||||
defaultProxyTarget.Add(proxy = CreateProxy());
|
||||
}
|
||||
|
||||
public void ChangeAnchor(Anchor anchor)
|
||||
{
|
||||
var previousAnchor = AnchorPosition;
|
||||
Anchor = anchor;
|
||||
Position -= AnchorPosition - previousAnchor;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -250,9 +250,12 @@ protected virtual void LogoArriving(OsuLogo logo, bool resuming)
|
|||
{
|
||||
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;
|
||||
}
|
||||
|
|
|
@ -642,9 +642,8 @@ protected override void LogoArriving(OsuLogo logo, bool resuming)
|
|||
{
|
||||
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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue