mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 08:20:00 +09:00
Actually implement blurring fix
This commit is contained in:
@ -162,6 +162,7 @@ namespace osu.Game.Tests.Visual
|
||||
AddUntilStep(() =>
|
||||
{
|
||||
if (songSelect.IsCurrentScreen()) return true;
|
||||
|
||||
songSelect.MakeCurrent();
|
||||
return false;
|
||||
}, "Wait for song select is current");
|
||||
@ -264,13 +265,16 @@ namespace osu.Game.Tests.Visual
|
||||
{
|
||||
createSongSelect();
|
||||
|
||||
AddStep("Start player loader", () => { songSelect.Push(playerLoader = new DimAccessiblePlayerLoader(player = new DimAccessiblePlayer
|
||||
AddStep("Start player loader", () =>
|
||||
{
|
||||
songSelect.Push(playerLoader = new DimAccessiblePlayerLoader(player = new DimAccessiblePlayer
|
||||
{
|
||||
AllowLeadIn = false,
|
||||
AllowResults = false,
|
||||
AllowPause = allowPause,
|
||||
Ready = true,
|
||||
})); });
|
||||
}));
|
||||
});
|
||||
AddUntilStep(() => playerLoader.IsLoaded, "Wait for Player Loader to load");
|
||||
AddStep("Move mouse to center of screen", () => InputManager.MoveMouseTo(playerLoader.ScreenPos));
|
||||
AddUntilStep(() => player.IsLoaded, "Wait for player to load");
|
||||
@ -355,6 +359,7 @@ namespace osu.Game.Tests.Visual
|
||||
}
|
||||
|
||||
public UserDimContainer CurrentStoryboardContainer => StoryboardContainer;
|
||||
|
||||
// Whether or not the player should be allowed to load.
|
||||
public bool Ready;
|
||||
|
||||
@ -430,6 +435,7 @@ namespace osu.Game.Tests.Visual
|
||||
: base(isStoryboard)
|
||||
{
|
||||
}
|
||||
|
||||
public Color4 CurrentColour => DimContainer.Colour;
|
||||
public float CurrentAlpha => DimContainer.Alpha;
|
||||
}
|
||||
|
@ -48,6 +48,7 @@ namespace osu.Game.Screens.Backgrounds
|
||||
Background.FadeOut(250);
|
||||
Background.Expire();
|
||||
}
|
||||
|
||||
b.Depth = newDepth;
|
||||
FadeContainer.Add(Background = b);
|
||||
Background.BlurSigma = BlurTarget;
|
||||
|
@ -158,9 +158,12 @@ namespace osu.Game.Screens.Play
|
||||
protected override bool OnHover(HoverEvent e)
|
||||
{
|
||||
// restore our screen defaults
|
||||
InitializeBackgroundElements();
|
||||
if (this.IsCurrentScreen())
|
||||
{
|
||||
InitializeBackgroundElements();
|
||||
Background.EnableUserDim.Value = false;
|
||||
}
|
||||
|
||||
return base.OnHover(e);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user