mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 18:42:56 +08:00
Move IsSkippable event into load method
This commit is contained in:
parent
0b886a79f1
commit
445f921756
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user