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:
commit
21a4e6a3f9
@ -52,6 +52,7 @@ namespace osu.Game.Screens.Multi.RealtimeMultiplayer
|
||||
{
|
||||
AllowPause = false,
|
||||
AllowRestart = false,
|
||||
AllowSkippingIntro = false,
|
||||
})
|
||||
{
|
||||
this.userIds = userIds;
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user