mirror of
https://github.com/osukey/osukey.git
synced 2025-08-05 07:33:55 +09:00
Apply suggestions from code review
Co-Authored-By: nyquillerium <nyquill@ppy.sh>
This commit is contained in:
@ -18,11 +18,11 @@ namespace osu.Game.Screens.Backgrounds
|
||||
/// <summary>
|
||||
/// Whether or not user dim settings should be applied to this Background.
|
||||
/// </summary>
|
||||
public Bindable<bool> EnableUserDim = new Bindable<bool>();
|
||||
public readonly Bindable<bool> EnableUserDim = new Bindable<bool>();
|
||||
|
||||
public Bindable<bool> StoryboardReplacesBackground = new Bindable<bool>();
|
||||
public readonly Bindable<bool> StoryboardReplacesBackground = new Bindable<bool>();
|
||||
|
||||
protected UserDimContainer FadeContainer;
|
||||
protected UserDimContainer FadeContainer { get; private set; }
|
||||
|
||||
protected virtual UserDimContainer CreateFadeContainer() => new UserDimContainer { RelativeSizeAxes = Axes.Both };
|
||||
|
||||
|
@ -87,7 +87,7 @@ namespace osu.Game.Screens.Play
|
||||
private FailOverlay failOverlay;
|
||||
|
||||
private DrawableStoryboard storyboard;
|
||||
protected UserDimContainer StoryboardContainer;
|
||||
protected UserDimContainer StoryboardContainer { get; private set; }
|
||||
|
||||
protected virtual UserDimContainer CreateStoryboardContainer() => new UserDimContainer(true)
|
||||
{
|
||||
@ -358,7 +358,7 @@ namespace osu.Game.Screens.Play
|
||||
Background.EnableUserDim.Value = true;
|
||||
|
||||
storyboardReplacesBackground.BindTo(Background.StoryboardReplacesBackground);
|
||||
StoryboardContainer.StoryboardReplacesBackground.BindTo(Background.StoryboardReplacesBackground);
|
||||
StoryboardContainer.StoryboardReplacesBackground.BindTo(storyboardReplacesBackground);
|
||||
storyboardReplacesBackground.Value = Beatmap.Value.Storyboard.ReplacesBackground && Beatmap.Value.Storyboard.HasDrawable;
|
||||
|
||||
Task.Run(() =>
|
||||
|
Reference in New Issue
Block a user