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:
parent
ae8a1adae8
commit
8d45f86bd3
@ -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;
|
||||
}
|
||||
|
@ -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.
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user