mirror of
https://github.com/osukey/osukey.git
synced 2025-06-05 12:57:39 +09:00
Ensure initial blur is set on song select background creation
We do not want the blur transition to play here
This commit is contained in:
parent
ee7169a629
commit
8230d5b52e
@ -14,7 +14,7 @@ namespace osu.Game.Screens
|
|||||||
|
|
||||||
protected Vector2 BlurTarget;
|
protected Vector2 BlurTarget;
|
||||||
|
|
||||||
public TransformSequence<Background> BlurTo(Vector2 sigma, double duration, Easing easing = Easing.None)
|
public TransformSequence<Background> BlurTo(Vector2 sigma, double duration = 0, Easing easing = Easing.None)
|
||||||
{
|
{
|
||||||
BlurTarget = sigma;
|
BlurTarget = sigma;
|
||||||
return Background?.BlurTo(BlurTarget, duration, easing);
|
return Background?.BlurTo(BlurTarget, duration, easing);
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
||||||
// 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 osu.Framework.Allocation;
|
using osu.Framework.Allocation;
|
||||||
@ -61,7 +61,12 @@ namespace osu.Game.Screens.Select
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
protected readonly Container FooterPanels;
|
protected readonly Container FooterPanels;
|
||||||
|
|
||||||
protected override BackgroundScreen CreateBackground() => new BackgroundScreenBeatmap(Beatmap.Value);
|
protected override BackgroundScreen CreateBackground()
|
||||||
|
{
|
||||||
|
var background = new BackgroundScreenBeatmap();
|
||||||
|
background.BlurTo(background_blur);
|
||||||
|
return background;
|
||||||
|
}
|
||||||
|
|
||||||
protected readonly BeatmapCarousel Carousel;
|
protected readonly BeatmapCarousel Carousel;
|
||||||
private readonly BeatmapInfoWedge beatmapInfoWedge;
|
private readonly BeatmapInfoWedge beatmapInfoWedge;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user