mirror of
https://github.com/osukey/osukey.git
synced 2025-08-04 15:16:38 +09:00
Put user dim logic in yet another container inside UserDimContainer
This commit is contained in:
@ -18,6 +18,7 @@ namespace osu.Game.Screens.Backgrounds
|
||||
public Bindable<bool> StoryboardReplacesBackground = new Bindable<bool>();
|
||||
|
||||
protected UserDimContainer FadeContainer;
|
||||
protected virtual UserDimContainer CreateFadeContainer() => new UserDimContainer { RelativeSizeAxes = Axes.Both };
|
||||
|
||||
public virtual WorkingBeatmap Beatmap
|
||||
{
|
||||
@ -29,7 +30,7 @@ namespace osu.Game.Screens.Backgrounds
|
||||
|
||||
beatmap = value;
|
||||
|
||||
FadeContainer = new UserDimContainer { RelativeSizeAxes = Axes.Both };
|
||||
FadeContainer = CreateFadeContainer();
|
||||
InternalChild = FadeContainer;
|
||||
EnableUserDim.BindTo(FadeContainer.EnableUserDim);
|
||||
|
||||
|
Reference in New Issue
Block a user