1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 16:52:54 +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
commit 21a4e6a3f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 0 deletions

View File

@ -52,6 +52,7 @@ namespace osu.Game.Screens.Multi.RealtimeMultiplayer
{
AllowPause = false,
AllowRestart = false,
AllowSkippingIntro = false,
})
{
this.userIds = userIds;

View File

@ -381,6 +381,9 @@ namespace osu.Game.Screens.Play
}
};
if (!Configuration.AllowSkippingIntro)
skipOverlay.Expire();
if (Configuration.AllowRestart)
{
container.Add(new HotkeyRetryOverlay

View File

@ -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;
}
}