add comment and cleanup

This commit is contained in:
David Zhao 2019-07-11 14:00:25 +09:00
parent 6c0de0b436
commit ac170a6957
3 changed files with 6 additions and 1 deletions

View File

@ -7,6 +7,7 @@
using osu.Framework.Graphics;
using osu.Game.Configuration;
using osu.Game.Graphics.Backgrounds;
using osu.Game.Screens.Play;
using osuTK;
namespace osu.Game.Graphics.Containers

View File

@ -19,6 +19,10 @@ public class DimmableStoryboardContainer : UserDimContainer
public DimmableStoryboardContainer(Storyboard storyboard)
{
this.storyboard = storyboard;
// Storyboards current do not get used in scenarios without user dim, so default to enabled here.
EnableUserDim.Default = true;
EnableUserDim.Value = true;
}
[BackgroundDependencyLoader]

View File

@ -32,7 +32,7 @@ public class BackgroundScreenBeatmap : BackgroundScreen
private readonly DimmableBackgroundContainer fadeContainer;
protected virtual DimmableBackgroundContainer CreateFadeContainer() => new DimmableBackgroundContainer() { RelativeSizeAxes = Axes.Both };
protected virtual DimmableBackgroundContainer CreateFadeContainer() => new DimmableBackgroundContainer { RelativeSizeAxes = Axes.Both };
public BackgroundScreenBeatmap(WorkingBeatmap beatmap = null)
{