1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-13 14:53:21 +08:00

Skip intro if the map gets restarted

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

View File

@ -441,6 +441,12 @@ namespace osu.Game.Screens.Play
},
};
skipIntroOverlay.IsSkippable.ValueChanged += (e) =>
{
if (RestartCount > 0 && e.NewValue)
skipIntroOverlay.RequestSkip.Invoke();
};
if (!Configuration.AllowSkipping || !DrawableRuleset.AllowGameplayOverlays)
{
skipIntroOverlay.Expire();