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:
parent
3f000dfe2e
commit
d703a9511a
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user