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:
parent
2562412125
commit
6b4b6de554
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user