1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-22 06:47:24 +08:00

fix background dim

This commit is contained in:
james58899 2018-01-12 12:21:37 +08:00
parent f6e6701749
commit 1985e5bdb2
No known key found for this signature in database
GPG Key ID: 7F83E3A11DD5192E
2 changed files with 3 additions and 4 deletions

View File

@ -54,7 +54,7 @@ namespace osu.Game.Screens.Backgrounds
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);
public override bool Equals(BackgroundScreen other)

View File

@ -394,9 +394,8 @@ namespace osu.Game.Screens.Play
.FadeColour(OsuColour.Gray(opacity), duration, Easing.OutQuint)
.FadeTo(storyboardVisible && opacity > 0 ? 1 : 0, duration, Easing.OutQuint);
(Background as BackgroundScreenBeatmap)?
.BlurTo(new Vector2((float)blurLevel.Value * 25), duration, Easing.OutQuint)?
.FadeTo(!storyboardVisible || beatmap.Background == null ? opacity : 0, duration, Easing.OutQuint);
(Background as BackgroundScreenBeatmap)?.BlurTo(new Vector2((float)blurLevel.Value * 25), duration, Easing.OutQuint);
Background?.FadeTo(!storyboardVisible || beatmap.Background == null ? opacity : 0, duration, Easing.OutQuint);
}
private void fadeOut()