mirror of
https://github.com/osukey/osukey.git
synced 2025-08-04 15:16:38 +09:00
Return logo relativepositionaxes on content out
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user