Convert remaining two flags to ctor parameters

This commit is contained in:
Dean Herbert
2019-03-26 16:53:44 +09:00
parent 83863d35c3
commit a88f23e555
8 changed files with 41 additions and 39 deletions

View File

@ -257,9 +257,8 @@ namespace osu.Game.Tests.Visual.Background
AddStep("Start player loader", () =>
{
songSelect.Push(playerLoader = new TestPlayerLoader(player = new TestPlayer
songSelect.Push(playerLoader = new TestPlayerLoader(player = new TestPlayer(allowPause)
{
AllowPause = allowPause,
Ready = true,
}));
});
@ -357,6 +356,11 @@ namespace osu.Game.Tests.Visual.Background
public readonly Bindable<bool> ReplacesBackground = new Bindable<bool>();
public readonly Bindable<bool> IsPaused = new Bindable<bool>();
public TestPlayer(bool allowPause = true)
: base(allowPause)
{
}
public bool IsStoryboardVisible() => ((TestUserDimContainer)CurrentStoryboardContainer).CurrentAlpha == 1;
public bool IsStoryboardInvisible() => ((TestUserDimContainer)CurrentStoryboardContainer).CurrentAlpha <= 1;