1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-15 02:17:46 +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
parent 2562412125
commit 6b4b6de554
No known key found for this signature in database
GPG Key ID: BCECCD4FA41F6497

View File

@ -44,6 +44,16 @@ namespace osu.Game.Screens.Edit.GameplayTest
protected override bool CheckModsAllowFailure() => false; // never fail. 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) public override bool OnExiting(IScreen next)
{ {
musicController.Stop(); musicController.Stop();