1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 21:02:55 +08:00

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;

View File

@ -21,7 +21,6 @@ namespace osu.Game.Screens.Play
#region User Settings
protected Bindable<double> DimLevel;
protected Bindable<double> BlurLevel;
protected Bindable<bool> ShowStoryboard;
@ -30,7 +29,6 @@ namespace osu.Game.Screens.Play
[BackgroundDependencyLoader]
private void load(OsuConfigManager config)
{
DimLevel = config.GetBindable<double>(OsuSetting.DimLevel);
BlurLevel = config.GetBindable<double>(OsuSetting.BlurLevel);
ShowStoryboard = config.GetBindable<bool>(OsuSetting.ShowStoryboard);
}