1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-25 03:49:55 +08:00

Fix test gameplay starting in a hidden state

This commit is contained in:
Bartłomiej Dach
2021-11-12 13:51:02 +01:00
Unverified
parent 2562412125
commit 6b4b6de554
@@ -44,6 +44,16 @@ namespace osu.Game.Screens.Edit.GameplayTest
protected override bool CheckModsAllowFailure() => false; // never fail.
public override void OnEntering(IScreen last)
{
base.OnEntering(last);
// finish alpha transforms on entering to avoid gameplay starting in a half-hidden state.
// the finish calls are purposefully not propagated to children to avoid messing up their state.
FinishTransforms();
GameplayClockContainer.FinishTransforms(false, nameof(Alpha));
}
public override bool OnExiting(IScreen next)
{
musicController.Stop();