1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-18 05:42:56 +08:00

Playing -> PlayingState

This commit is contained in:
Dean Herbert 2025-01-17 17:11:40 +09:00
parent ee9998d8c8
commit f59762f0cb
No known key found for this signature in database
2 changed files with 5 additions and 5 deletions

View File

@ -72,7 +72,7 @@ namespace osu.Game.Screens.Play
/// <summary>
/// The local user's playing state (whether actively playing, paused, or not playing due to watching a replay or similar).
/// </summary>
public IBindable<LocalUserPlayingState> Playing { get; } = new Bindable<LocalUserPlayingState>();
public IBindable<LocalUserPlayingState> PlayingState { get; } = new Bindable<LocalUserPlayingState>();
public GameplayState(
IBeatmap beatmap,
@ -82,7 +82,7 @@ namespace osu.Game.Screens.Play
ScoreProcessor? scoreProcessor = null,
HealthProcessor? healthProcessor = null,
Storyboard? storyboard = null,
IBindable<LocalUserPlayingState>? localUserPlaying = null)
IBindable<LocalUserPlayingState>? localUserPlayingState = null)
{
Beatmap = beatmap;
Ruleset = ruleset;
@ -99,8 +99,8 @@ namespace osu.Game.Screens.Play
HealthProcessor = healthProcessor ?? ruleset.CreateHealthProcessor(beatmap.HitObjects[0].StartTime);
Storyboard = storyboard ?? new Storyboard();
if (localUserPlaying != null)
Playing.BindTo(localUserPlaying);
if (localUserPlayingState != null)
PlayingState.BindTo(localUserPlayingState);
}
/// <summary>

View File

@ -245,7 +245,7 @@ namespace osu.Game.Screens.Play.HUD
private void load(SpectatorClient client, GameplayState gameplayState)
{
((IBindableList<SpectatorUser>)Spectators).BindTo(client.WatchingUsers);
((IBindable<LocalUserPlayingState>)UserPlayingState).BindTo(gameplayState.Playing);
((IBindable<LocalUserPlayingState>)UserPlayingState).BindTo(gameplayState.PlayingState);
}
}
}