mirror of
https://github.com/ppy/osu.git
synced 2025-02-13 21:53:22 +08:00
Use the previous conditional instead
This commit is contained in:
parent
e9034c8a30
commit
a5916f995e
@ -2,6 +2,7 @@
|
|||||||
// See the LICENCE file in the repository root for full licence text.
|
// See the LICENCE file in the repository root for full licence text.
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
|
using System.Linq;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using osu.Framework.Allocation;
|
using osu.Framework.Allocation;
|
||||||
using osu.Framework.Graphics;
|
using osu.Framework.Graphics;
|
||||||
@ -245,14 +246,14 @@ namespace osu.Game.Screens.Play
|
|||||||
if (!this.IsCurrentScreen())
|
if (!this.IsCurrentScreen())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (Background.BlurAmount.Value != 0 && VisualSettings.IsHovered)
|
if (GetContainingInputManager()?.HoveredDrawables.Contains(VisualSettings) == true)
|
||||||
{
|
{
|
||||||
// Acts as an "on hover" trigger for the visual settings panel.
|
// Acts as an "on hover" trigger for the visual settings panel.
|
||||||
// Preview user-defined background dim and blur when hovered on the visual settings panel.
|
// Preview user-defined background dim and blur when hovered on the visual settings panel.
|
||||||
Background.EnableUserDim.Value = true;
|
Background.EnableUserDim.Value = true;
|
||||||
Background.BlurAmount.Value = 0;
|
Background.BlurAmount.Value = 0;
|
||||||
}
|
}
|
||||||
else if (Background.BlurAmount.Value != BACKGROUND_BLUR && !VisualSettings.IsHovered)
|
else
|
||||||
{
|
{
|
||||||
// Acts as an "on hover lost" trigger for the visual settings panel.
|
// Acts as an "on hover lost" trigger for the visual settings panel.
|
||||||
// Returns background dim and blur to the values specified by PlayerLoader.
|
// Returns background dim and blur to the values specified by PlayerLoader.
|
||||||
|
Loading…
Reference in New Issue
Block a user