Use PlayerConfiguration to convey no-seek state

This commit is contained in:
Dean Herbert
2021-08-16 16:16:02 +09:00
parent 53c3eccfb5
commit 81480ac4fc
4 changed files with 12 additions and 8 deletions

View File

@ -25,7 +25,7 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer.Spectate
/// <param name="score">The score containing the player's replay.</param>
/// <param name="spectatorPlayerClock">The clock controlling the gameplay running state.</param>
public MultiSpectatorPlayer([NotNull] Score score, [NotNull] ISpectatorPlayerClock spectatorPlayerClock)
: base(score)
: base(score, new PlayerConfiguration { AllowSeeking = false })
{
this.spectatorPlayerClock = spectatorPlayerClock;
}
@ -35,8 +35,6 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer.Spectate
{
spectatorPlayerClock.WaitingOnFrames.BindTo(waitingOnFrames);
AllowUserSeekingState.Value = false;
AllowUserSeekingState.Disabled = true;
HUDOverlay.PlayerSettingsOverlay.Expire();
HUDOverlay.HoldToQuit.Expire();
}