1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 10:52:53 +08:00

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.Bindables;
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 @@ namespace osu.Game.Graphics.Containers
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 @@ namespace osu.Game.Screens.Backgrounds
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)
{