mirror of
https://github.com/ppy/osu
synced 2024-12-14 02:46:27 +00:00
Remove DimLevel bindable from ScreenWithBeatmapBackground
This commit is contained in:
parent
918a60ebbf
commit
263972a048
@ -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;
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user