1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-14 17:52:56 +08:00

Rename variable to better reflect its purpose

This commit is contained in:
Dean Herbert 2021-08-16 16:48:40 +09:00
parent ae8a1adae8
commit 8d45f86bd3
3 changed files with 4 additions and 4 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, new PlayerConfiguration { AllowSeeking = false })
: base(score, new PlayerConfiguration { AllowUserInteraction = false })
{
this.spectatorPlayerClock = spectatorPlayerClock;
}

View File

@ -21,9 +21,9 @@ namespace osu.Game.Screens.Play
public bool AllowRestart { get; set; } = true;
/// <summary>
/// Whether the player should be allowed to seek in a displayed replay.
/// Whether the player should be able to interact with this player instance.
/// </summary>
public bool AllowSeeking { get; set; } = true;
public bool AllowUserInteraction { get; set; } = true;
/// <summary>
/// Whether the player should be allowed to skip intros/outros, advancing to the start of gameplay or the end of a storyboard.

View File

@ -119,7 +119,7 @@ namespace osu.Game.Screens.Play
if (drawableRuleset != null)
{
if (player?.Configuration.AllowSeeking == true)
if (player?.Configuration.AllowUserInteraction == true)
((IBindable<bool>)AllowSeeking).BindTo(drawableRuleset.HasReplayLoaded);
referenceClock = drawableRuleset.FrameStableClock;