1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-24 11:07:20 +08:00

Fix background dim previews

This commit is contained in:
David Zhao 2019-02-20 17:20:45 +09:00
parent 3f000dfe2e
commit d703a9511a

View File

@ -161,6 +161,8 @@ namespace osu.Game.Screens.Play
{
// restore our screen defaults
InitializeBackgroundElements();
if (this.IsCurrentScreen())
Background.EnableUserDim.Value = false;
return base.OnHover(e);
}
@ -170,6 +172,8 @@ namespace osu.Game.Screens.Play
{
// show user setting preview
UpdateBackgroundElements();
if (this.IsCurrentScreen())
Background.EnableUserDim.Value = true;
}
base.OnHoverLost(e);
@ -243,6 +247,8 @@ namespace osu.Game.Screens.Play
this.FadeOut(150);
cancelLoad();
Background.EnableUserDim.Value = false;
return base.OnExiting(next);
}