mirror of https://github.com/ppy/osu
Return logo relativepositionaxes on content out
This commit is contained in:
parent
352b4b20d9
commit
952a12bb19
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue