1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 01:52:55 +08:00

Fix results screen changing applied colour to background on exit

The general rule is that screens should only apply colours and the likes
on enter / resume, and leave the outwards transition to whatever screen
is coming next.
This commit is contained in:
Dean Herbert 2021-06-09 17:18:52 +09:00
parent 258d05d1e0
commit 7b0c5e9d32

View File

@ -13,6 +13,7 @@ using osu.Framework.Graphics.Shapes;
using osu.Framework.Input.Bindings; using osu.Framework.Input.Bindings;
using osu.Framework.Screens; using osu.Framework.Screens;
using osu.Game.Audio; using osu.Game.Audio;
using osu.Game.Graphics;
using osu.Game.Graphics.Containers; using osu.Game.Graphics.Containers;
using osu.Game.Graphics.UserInterface; using osu.Game.Graphics.UserInterface;
using osu.Game.Input.Bindings; using osu.Game.Input.Bindings;
@ -257,7 +258,7 @@ namespace osu.Game.Screens.Ranking
ApplyToBackground(b => ApplyToBackground(b =>
{ {
b.BlurAmount.Value = BACKGROUND_BLUR; b.BlurAmount.Value = BACKGROUND_BLUR;
b.FadeTo(0.5f, 250); b.FadeColour(OsuColour.Gray(0.5f), 250);
}); });
bottomPanel.FadeTo(1, 250); bottomPanel.FadeTo(1, 250);
@ -265,7 +266,6 @@ namespace osu.Game.Screens.Ranking
public override bool OnExiting(IScreen next) public override bool OnExiting(IScreen next)
{ {
ApplyToBackground(b => b.FadeTo(1, 250));
return base.OnExiting(next); return base.OnExiting(next);
} }