1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 20:03:22 +08:00

Merge pull request #26773 from peppy/fix-song-select-osu-logo-position

Fix osu! logo being mispositioned in song select on very wide resolutions
This commit is contained in:
Bartłomiej Dach 2024-01-29 20:39:44 +01:00 committed by GitHub
commit 39883cc102
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 15 additions and 2 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,7 +642,10 @@ namespace osu.Game.Screens.Select
{
base.LogoArriving(logo, resuming);
Vector2 position = new Vector2(0.95f, 0.96f);
logo.RelativePositionAxes = Axes.None;
logo.ChangeAnchor(Anchor.BottomRight);
Vector2 position = new Vector2(-76, -36);
if (logo.Alpha > 0.8f)
{