mirror of
https://github.com/ppy/osu.git
synced 2025-03-15 15:27:20 +08:00
Remove leftover usage of dimlevel in BackgroundScreenBeatmap
This commit is contained in:
parent
6bf831b96f
commit
a4162a69fb
@ -301,9 +301,17 @@ namespace osu.Game.Tests.Visual
|
||||
|
||||
private class FadeAccessibleBackground : BackgroundScreenBeatmap
|
||||
{
|
||||
private Bindable<float> dimLevel;
|
||||
|
||||
[BackgroundDependencyLoader]
|
||||
private void load(OsuConfigManager config)
|
||||
{
|
||||
dimLevel = config.GetBindable<float>(OsuSetting.DimLevel);
|
||||
}
|
||||
|
||||
public bool AssertDimmed()
|
||||
{
|
||||
return FadeContainer.Colour == OsuColour.Gray(1 - (float)DimLevel);
|
||||
return FadeContainer.Colour == OsuColour.Gray(1 - dimLevel);
|
||||
}
|
||||
|
||||
public bool AssertUndimmed()
|
||||
|
@ -6,7 +6,6 @@ using osu.Framework.Configuration;
|
||||
using osu.Framework.Graphics;
|
||||
using osu.Framework.Graphics.Textures;
|
||||
using osu.Game.Beatmaps;
|
||||
using osu.Game.Configuration;
|
||||
using osu.Game.Graphics.Backgrounds;
|
||||
using osu.Game.Graphics.Containers;
|
||||
|
||||
@ -15,18 +14,11 @@ namespace osu.Game.Screens.Backgrounds
|
||||
public class BackgroundScreenBeatmap : BlurrableBackgroundScreen
|
||||
{
|
||||
private WorkingBeatmap beatmap;
|
||||
protected Bindable<double> DimLevel = new Bindable<double>();
|
||||
public Bindable<bool> EnableUserDim = new Bindable<bool>();
|
||||
public Bindable<bool> StoryboardReplacesBackground = new Bindable<bool>();
|
||||
|
||||
protected UserDimContainer FadeContainer;
|
||||
|
||||
[BackgroundDependencyLoader]
|
||||
private void load(OsuConfigManager config)
|
||||
{
|
||||
config.BindWith(OsuSetting.DimLevel, DimLevel);
|
||||
}
|
||||
|
||||
public virtual WorkingBeatmap Beatmap
|
||||
{
|
||||
get { return beatmap; }
|
||||
|
Loading…
x
Reference in New Issue
Block a user