Return logo relativepositionaxes on content out

This commit is contained in:
David Zhao
2019-03-29 16:54:34 +09:00
parent 352b4b20d9
commit 952a12bb19

View File

@ -37,6 +37,8 @@ namespace osu.Game.Screens.Play
private BeatmapMetadataDisplay info;
private OsuLogo logo;
private bool hideOverlays;
public override bool HideOverlaysOnEnter => hideOverlays;
@ -129,9 +131,12 @@ namespace osu.Game.Screens.Play
private void contentOut()
{
// Ensure the logo is no longer tracking before we scale the content.
// Ensure the logo is no longer tracking before we scale the content, and that its RelativePositionAxes have been returned.
content.Tracking = false;
if (logo != null)
logo.RelativePositionAxes = Axes.Both;
content.ScaleTo(0.7f, 300, Easing.InQuint);
content.FadeOut(250);
}
@ -153,6 +158,8 @@ namespace osu.Game.Screens.Play
{
base.LogoArriving(logo, resuming);
this.logo = logo;
const double duration = 300;
if (!resuming)