Rename recent participants

This commit is contained in:
smoogipoo 2020-02-27 19:42:28 +09:00
parent 22862256c1
commit 085968dd7f
4 changed files with 9 additions and 9 deletions

View File

@ -60,7 +60,7 @@ namespace osu.Game.Online.Multiplayer
[Cached] [Cached]
[JsonProperty("recent_participants")] [JsonProperty("recent_participants")]
public BindableList<User> Participants { get; private set; } = new BindableList<User>(); public BindableList<User> RecentParticipants { get; private set; } = new BindableList<User>();
[Cached] [Cached]
public Bindable<int> ParticipantCount { get; private set; } = new Bindable<int>(); public Bindable<int> ParticipantCount { get; private set; } = new Bindable<int>();
@ -133,10 +133,10 @@ namespace osu.Game.Online.Multiplayer
Playlist.AddRange(other.Playlist); Playlist.AddRange(other.Playlist);
} }
if (!Participants.SequenceEqual(other.Participants)) if (!RecentParticipants.SequenceEqual(other.RecentParticipants))
{ {
Participants.Clear(); RecentParticipants.Clear();
Participants.AddRange(other.Participants); RecentParticipants.AddRange(other.RecentParticipants);
} }
Position = other.Position; Position = other.Position;

View File

@ -16,7 +16,7 @@ namespace osu.Game.Screens.Multi.Components
} }
public OverlinedParticipants(Direction direction) public OverlinedParticipants(Direction direction)
: base("Participants") : base("Recent participants")
{ {
OsuScrollContainer scroll; OsuScrollContainer scroll;
ParticipantsList list; ParticipantsList list;

View File

@ -59,7 +59,7 @@ namespace osu.Game.Screens.Multi.Components
[BackgroundDependencyLoader] [BackgroundDependencyLoader]
private void load() private void load()
{ {
Participants.CollectionChanged += (_, __) => updateParticipants(); RecentParticipants.CollectionChanged += (_, __) => updateParticipants();
updateParticipants(); updateParticipants();
} }
@ -82,8 +82,8 @@ namespace osu.Game.Screens.Multi.Components
Spacing = new Vector2(10) Spacing = new Vector2(10)
}; };
for (int i = 0; i < Participants.Count; i++) for (int i = 0; i < RecentParticipants.Count; i++)
tiles.Add(new UserTile { User = Participants[i] }); tiles.Add(new UserTile { User = RecentParticipants[i] });
AddInternal(tiles); AddInternal(tiles);

View File

@ -31,7 +31,7 @@ namespace osu.Game.Screens.Multi
protected BindableList<PlaylistItem> Playlist { get; private set; } protected BindableList<PlaylistItem> Playlist { get; private set; }
[Resolved(typeof(Room))] [Resolved(typeof(Room))]
protected BindableList<User> Participants { get; private set; } protected BindableList<User> RecentParticipants { get; private set; }
[Resolved(typeof(Room))] [Resolved(typeof(Room))]
protected Bindable<int> ParticipantCount { get; private set; } protected Bindable<int> ParticipantCount { get; private set; }