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
1 changed files with 8 additions and 1 deletions

View File

@ -37,6 +37,8 @@ public class PlayerLoader : ScreenWithBeatmapBackground
private BeatmapMetadataDisplay info;
private OsuLogo logo;
private bool hideOverlays;
public override bool HideOverlaysOnEnter => hideOverlays;
@ -129,9 +131,12 @@ private void contentIn()
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 @@ protected override void LogoArriving(OsuLogo logo, bool resuming)
{
base.LogoArriving(logo, resuming);
this.logo = logo;
const double duration = 300;
if (!resuming)