1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 08:22:56 +08:00

Move IsSkippable event into load method

This commit is contained in:
BlauFx 2022-08-05 23:21:03 +02:00
parent 0b886a79f1
commit 445f921756
No known key found for this signature in database
GPG Key ID: BB73374479D2AA97

View File

@ -365,6 +365,12 @@ namespace osu.Game.Screens.Play
IsBreakTime.BindTo(breakTracker.IsBreakTime);
IsBreakTime.BindValueChanged(onBreakTimeChanged, true);
skipIntroOverlay.IsSkippable.ValueChanged += (e) =>
{
if (RestartCount > 0 && e.NewValue)
skipIntroOverlay.RequestSkip.Invoke();
};
}
protected virtual GameplayClockContainer CreateGameplayClockContainer(WorkingBeatmap beatmap, double gameplayStart) => new MasterGameplayClockContainer(beatmap, gameplayStart);
@ -441,12 +447,6 @@ namespace osu.Game.Screens.Play
},
};
skipIntroOverlay.IsSkippable.ValueChanged += (e) =>
{
if (RestartCount > 0 && e.NewValue)
skipIntroOverlay.RequestSkip.Invoke();
};
if (!Configuration.AllowSkipping || !DrawableRuleset.AllowGameplayOverlays)
{
skipIntroOverlay.Expire();