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

@ -37,11 +37,8 @@ namespace osu.Game.Screens.Play
public override void OnEntering(IScreen last)
{
// We need to update on dim here because player still needs to know if it needs to dim the storyboard
base.OnEntering(last);
DimLevel.ValueChanged += _ => UpdateBackgroundElements();
BlurLevel.ValueChanged += _ => UpdateBackgroundElements();
ShowStoryboard.ValueChanged += _ => UpdateBackgroundElements();
InitializeBackgroundElements();
}