mirror of
https://github.com/ppy/osu.git
synced 2025-03-11 16:57:21 +08:00
fix background dim
This commit is contained in:
parent
f6e6701749
commit
1985e5bdb2
@ -54,7 +54,7 @@ namespace osu.Game.Screens.Backgrounds
|
|||||||
Beatmap = beatmap;
|
Beatmap = beatmap;
|
||||||
}
|
}
|
||||||
|
|
||||||
public TransformSequence<Background> BlurTo(Vector2 sigma, double duration, Easing easing = Easing.None)
|
public void BlurTo(Vector2 sigma, double duration, Easing easing = Easing.None)
|
||||||
=> background?.BlurTo(blurTarget = sigma, duration, easing);
|
=> background?.BlurTo(blurTarget = sigma, duration, easing);
|
||||||
|
|
||||||
public override bool Equals(BackgroundScreen other)
|
public override bool Equals(BackgroundScreen other)
|
||||||
|
@ -394,9 +394,8 @@ namespace osu.Game.Screens.Play
|
|||||||
.FadeColour(OsuColour.Gray(opacity), duration, Easing.OutQuint)
|
.FadeColour(OsuColour.Gray(opacity), duration, Easing.OutQuint)
|
||||||
.FadeTo(storyboardVisible && opacity > 0 ? 1 : 0, duration, Easing.OutQuint);
|
.FadeTo(storyboardVisible && opacity > 0 ? 1 : 0, duration, Easing.OutQuint);
|
||||||
|
|
||||||
(Background as BackgroundScreenBeatmap)?
|
(Background as BackgroundScreenBeatmap)?.BlurTo(new Vector2((float)blurLevel.Value * 25), duration, Easing.OutQuint);
|
||||||
.BlurTo(new Vector2((float)blurLevel.Value * 25), duration, Easing.OutQuint)?
|
Background?.FadeTo(!storyboardVisible || beatmap.Background == null ? opacity : 0, duration, Easing.OutQuint);
|
||||||
.FadeTo(!storyboardVisible || beatmap.Background == null ? opacity : 0, duration, Easing.OutQuint);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void fadeOut()
|
private void fadeOut()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user