1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 11:37:28 +08:00

Reduce "wait time" in case restarting the map

This commit is contained in:
BlauFx 2022-08-05 23:04:43 +02:00
parent 99e07aa09a
commit d8d7423698
No known key found for this signature in database
GPG Key ID: BB73374479D2AA97

View File

@ -384,9 +384,10 @@ namespace osu.Game.Screens.Play
private void contentIn()
{
MetadataInfo.Loading = true;
int scaleContentTime = restartCount > 0 ? 65 : 650;
content.FadeInFromZero(400);
content.ScaleTo(1, 650, Easing.OutQuint).Then().Schedule(prepareNewPlayer);
content.ScaleTo(1, scaleContentTime, Easing.OutQuint).Then().Schedule(prepareNewPlayer);
lowPassFilter.CutoffTo(1000, 650, Easing.OutQuint);
highPassFilter.CutoffTo(300).Then().CutoffTo(0, 1250); // 1250 is to line up with the appearance of MetadataInfo (750 delay + 500 fade-in)
@ -468,7 +469,7 @@ namespace osu.Game.Screens.Play
else
this.Exit();
});
}, 500);
}, CurrentPlayer?.RestartCount > 0 ? 50 : 500);
}
private void cancelLoad()