Add test case for background preview, fix unit tests

This commit is contained in:
David Zhao
2019-02-21 15:24:26 +09:00
parent f5d8700920
commit ad5e81f0cd
5 changed files with 93 additions and 38 deletions

View File

@ -346,6 +346,10 @@ namespace osu.Game.Screens.Play
.Delay(250)
.FadeIn(250);
// We need to update background elements when the user dim gets updated
// The storyboard needs to know whether or not to completely fade at 100% dim
DimLevel.ValueChanged += _ => UpdateBackgroundElements();
ShowStoryboard.ValueChanged += _ => UpdateBackgroundElements();
Background.EnableUserDim.Value = true;
Task.Run(() =>