Merge remote-tracking branch 'upstream/master' into pause-logic-simplification

This commit is contained in:
Dean Herbert
2019-03-21 16:04:18 +09:00
15 changed files with 207 additions and 186 deletions

View File

@ -77,7 +77,7 @@ namespace osu.Game.Screens.Play
if (StoryboardContainer == null || storyboard != null)
return;
if (!ShowStoryboard.Value)
if (!showStoryboard.Value)
return;
var beatmap = Beatmap.Value;
@ -93,6 +93,8 @@ namespace osu.Game.Screens.Play
#endregion
private Bindable<bool> showStoryboard;
protected virtual UserDimContainer CreateStoryboardContainer() => new UserDimContainer(true)
{
RelativeSizeAxes = Axes.Both,
@ -117,6 +119,7 @@ namespace osu.Game.Screens.Play
sampleRestart = audio.Sample.Get(@"Gameplay/restart");
mouseWheelDisabled = config.GetBindable<bool>(OsuSetting.MouseDisableWheel);
showStoryboard = config.GetBindable<bool>(OsuSetting.ShowStoryboard);
ScoreProcessor = DrawableRuleset.CreateScoreProcessor();
if (!ScoreProcessor.Mode.Disabled)
@ -422,9 +425,10 @@ namespace osu.Game.Screens.Play
.Delay(250)
.FadeIn(250);
ShowStoryboard.ValueChanged += _ => initializeStoryboard(true);
showStoryboard.ValueChanged += _ => initializeStoryboard(true);
Background.EnableUserDim.Value = true;
Background.BlurAmount.Value = 0;
Background.StoryboardReplacesBackground.BindTo(storyboardReplacesBackground);
StoryboardContainer.StoryboardReplacesBackground.BindTo(storyboardReplacesBackground);