mirror of
https://github.com/osukey/osukey.git
synced 2025-06-05 12:57:39 +09: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 class FadeAccessibleBackground : BackgroundScreenBeatmap
|
||||||
{
|
{
|
||||||
|
private Bindable<float> dimLevel;
|
||||||
|
|
||||||
|
[BackgroundDependencyLoader]
|
||||||
|
private void load(OsuConfigManager config)
|
||||||
|
{
|
||||||
|
dimLevel = config.GetBindable<float>(OsuSetting.DimLevel);
|
||||||
|
}
|
||||||
|
|
||||||
public bool AssertDimmed()
|
public bool AssertDimmed()
|
||||||
{
|
{
|
||||||
return FadeContainer.Colour == OsuColour.Gray(1 - (float)DimLevel);
|
return FadeContainer.Colour == OsuColour.Gray(1 - dimLevel);
|
||||||
}
|
}
|
||||||
|
|
||||||
public bool AssertUndimmed()
|
public bool AssertUndimmed()
|
||||||
|
@ -6,7 +6,6 @@ using osu.Framework.Configuration;
|
|||||||
using osu.Framework.Graphics;
|
using osu.Framework.Graphics;
|
||||||
using osu.Framework.Graphics.Textures;
|
using osu.Framework.Graphics.Textures;
|
||||||
using osu.Game.Beatmaps;
|
using osu.Game.Beatmaps;
|
||||||
using osu.Game.Configuration;
|
|
||||||
using osu.Game.Graphics.Backgrounds;
|
using osu.Game.Graphics.Backgrounds;
|
||||||
using osu.Game.Graphics.Containers;
|
using osu.Game.Graphics.Containers;
|
||||||
|
|
||||||
@ -15,18 +14,11 @@ namespace osu.Game.Screens.Backgrounds
|
|||||||
public class BackgroundScreenBeatmap : BlurrableBackgroundScreen
|
public class BackgroundScreenBeatmap : BlurrableBackgroundScreen
|
||||||
{
|
{
|
||||||
private WorkingBeatmap beatmap;
|
private WorkingBeatmap beatmap;
|
||||||
protected Bindable<double> DimLevel = new Bindable<double>();
|
|
||||||
public Bindable<bool> EnableUserDim = new Bindable<bool>();
|
public Bindable<bool> EnableUserDim = new Bindable<bool>();
|
||||||
public Bindable<bool> StoryboardReplacesBackground = new Bindable<bool>();
|
public Bindable<bool> StoryboardReplacesBackground = new Bindable<bool>();
|
||||||
|
|
||||||
protected UserDimContainer FadeContainer;
|
protected UserDimContainer FadeContainer;
|
||||||
|
|
||||||
[BackgroundDependencyLoader]
|
|
||||||
private void load(OsuConfigManager config)
|
|
||||||
{
|
|
||||||
config.BindWith(OsuSetting.DimLevel, DimLevel);
|
|
||||||
}
|
|
||||||
|
|
||||||
public virtual WorkingBeatmap Beatmap
|
public virtual WorkingBeatmap Beatmap
|
||||||
{
|
{
|
||||||
get { return beatmap; }
|
get { return beatmap; }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user