Remove DimLevel bindable from ScreenWithBeatmapBackground

This commit is contained in:
David Zhao
2019-02-22 17:00:00 +09:00
parent 918a60ebbf
commit 263972a048
2 changed files with 0 additions and 5 deletions

View File

@ -345,9 +345,6 @@ namespace osu.Game.Screens.Play
.Delay(250)
.FadeIn(250);
// We need to update background elements when the user dim gets updated
// The storyboard needs to know whether or not to completely fade at 100% dim
DimLevel.ValueChanged += _ => UpdateBackgroundElements();
ShowStoryboard.ValueChanged += _ => UpdateBackgroundElements();
Background.EnableUserDim.Value = true;
storyboardContainer.StoryboardReplacesBackground.Value = Beatmap.Value.Storyboard.ReplacesBackground && Beatmap.Value.Storyboard.HasDrawable;