mirror of
https://github.com/ppy/osu
synced 2025-03-05 02:49:30 +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)
|
.Delay(250)
|
||||||
.FadeIn(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();
|
ShowStoryboard.ValueChanged += _ => UpdateBackgroundElements();
|
||||||
Background.EnableUserDim.Value = true;
|
Background.EnableUserDim.Value = true;
|
||||||
storyboardContainer.StoryboardReplacesBackground.Value = Beatmap.Value.Storyboard.ReplacesBackground && Beatmap.Value.Storyboard.HasDrawable;
|
storyboardContainer.StoryboardReplacesBackground.Value = Beatmap.Value.Storyboard.ReplacesBackground && Beatmap.Value.Storyboard.HasDrawable;
|
||||||
|
@ -21,7 +21,6 @@ namespace osu.Game.Screens.Play
|
|||||||
|
|
||||||
#region User Settings
|
#region User Settings
|
||||||
|
|
||||||
protected Bindable<double> DimLevel;
|
|
||||||
protected Bindable<double> BlurLevel;
|
protected Bindable<double> BlurLevel;
|
||||||
protected Bindable<bool> ShowStoryboard;
|
protected Bindable<bool> ShowStoryboard;
|
||||||
|
|
||||||
@ -30,7 +29,6 @@ namespace osu.Game.Screens.Play
|
|||||||
[BackgroundDependencyLoader]
|
[BackgroundDependencyLoader]
|
||||||
private void load(OsuConfigManager config)
|
private void load(OsuConfigManager config)
|
||||||
{
|
{
|
||||||
DimLevel = config.GetBindable<double>(OsuSetting.DimLevel);
|
|
||||||
BlurLevel = config.GetBindable<double>(OsuSetting.BlurLevel);
|
BlurLevel = config.GetBindable<double>(OsuSetting.BlurLevel);
|
||||||
ShowStoryboard = config.GetBindable<bool>(OsuSetting.ShowStoryboard);
|
ShowStoryboard = config.GetBindable<bool>(OsuSetting.ShowStoryboard);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user