mirror of
https://github.com/osukey/osukey.git
synced 2025-05-30 01:47:30 +09: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
|
// restore our screen defaults
|
||||||
InitializeBackgroundElements();
|
InitializeBackgroundElements();
|
||||||
|
if (this.IsCurrentScreen())
|
||||||
|
Background.EnableUserDim.Value = false;
|
||||||
return base.OnHover(e);
|
return base.OnHover(e);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -170,6 +172,8 @@ namespace osu.Game.Screens.Play
|
|||||||
{
|
{
|
||||||
// show user setting preview
|
// show user setting preview
|
||||||
UpdateBackgroundElements();
|
UpdateBackgroundElements();
|
||||||
|
if (this.IsCurrentScreen())
|
||||||
|
Background.EnableUserDim.Value = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
base.OnHoverLost(e);
|
base.OnHoverLost(e);
|
||||||
@ -243,6 +247,8 @@ namespace osu.Game.Screens.Play
|
|||||||
this.FadeOut(150);
|
this.FadeOut(150);
|
||||||
cancelLoad();
|
cancelLoad();
|
||||||
|
|
||||||
|
Background.EnableUserDim.Value = false;
|
||||||
|
|
||||||
return base.OnExiting(next);
|
return base.OnExiting(next);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user