1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-18 16:50:21 +08:00

Merge pull request #11282 from peppy/disallow-skipping

Disallow skipping in multiplayer
This commit is contained in:
Dean Herbert
2020-12-24 21:31:02 +09:00
committed by GitHub
Unverified
3 changed files with 9 additions and 0 deletions
@@ -52,6 +52,7 @@ namespace osu.Game.Screens.Multi.RealtimeMultiplayer
{
AllowPause = false,
AllowRestart = false,
AllowSkippingIntro = false,
})
{
this.userIds = userIds;
+3
View File
@@ -381,6 +381,9 @@ namespace osu.Game.Screens.Play
}
};
if (!Configuration.AllowSkippingIntro)
skipOverlay.Expire();
if (Configuration.AllowRestart)
{
container.Add(new HotkeyRetryOverlay
@@ -19,5 +19,10 @@ namespace osu.Game.Screens.Play
/// Whether the player should be allowed to trigger a restart.
/// </summary>
public bool AllowRestart { get; set; } = true;
/// <summary>
/// Whether the player should be allowed to skip the intro, advancing to the start of gameplay.
/// </summary>
public bool AllowSkippingIntro { get; set; } = true;
}
}