1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-14 17:57:38 +08:00

Ensure PlayerLoader restores the background colour to its own value on resume

This commit is contained in:
Dean Herbert 2021-06-09 17:17:39 +09:00
parent a7ef0173e9
commit 258d05d1e0

View File

@ -184,8 +184,6 @@ namespace osu.Game.Screens.Play
{ {
if (epilepsyWarning != null) if (epilepsyWarning != null)
epilepsyWarning.DimmableBackground = b; epilepsyWarning.DimmableBackground = b;
b?.FadeColour(Color4.White, 800, Easing.OutQuint);
}); });
Beatmap.Value.Track.AddAdjustment(AdjustableProperty.Volume, volumeAdjustment); Beatmap.Value.Track.AddAdjustment(AdjustableProperty.Volume, volumeAdjustment);
@ -334,6 +332,8 @@ namespace osu.Game.Screens.Play
content.FadeInFromZero(400); content.FadeInFromZero(400);
content.ScaleTo(1, 650, Easing.OutQuint).Then().Schedule(prepareNewPlayer); content.ScaleTo(1, 650, Easing.OutQuint).Then().Schedule(prepareNewPlayer);
ApplyToBackground(b => b?.FadeColour(Color4.White, 800, Easing.OutQuint));
} }
private void contentOut() private void contentOut()