mirror of
https://github.com/ppy/osu.git
synced 2024-12-05 10:33:22 +08:00
Rename recent participants
This commit is contained in:
parent
22862256c1
commit
085968dd7f
@ -60,7 +60,7 @@ namespace osu.Game.Online.Multiplayer
|
||||
|
||||
[Cached]
|
||||
[JsonProperty("recent_participants")]
|
||||
public BindableList<User> Participants { get; private set; } = new BindableList<User>();
|
||||
public BindableList<User> RecentParticipants { get; private set; } = new BindableList<User>();
|
||||
|
||||
[Cached]
|
||||
public Bindable<int> ParticipantCount { get; private set; } = new Bindable<int>();
|
||||
@ -133,10 +133,10 @@ namespace osu.Game.Online.Multiplayer
|
||||
Playlist.AddRange(other.Playlist);
|
||||
}
|
||||
|
||||
if (!Participants.SequenceEqual(other.Participants))
|
||||
if (!RecentParticipants.SequenceEqual(other.RecentParticipants))
|
||||
{
|
||||
Participants.Clear();
|
||||
Participants.AddRange(other.Participants);
|
||||
RecentParticipants.Clear();
|
||||
RecentParticipants.AddRange(other.RecentParticipants);
|
||||
}
|
||||
|
||||
Position = other.Position;
|
||||
|
@ -16,7 +16,7 @@ namespace osu.Game.Screens.Multi.Components
|
||||
}
|
||||
|
||||
public OverlinedParticipants(Direction direction)
|
||||
: base("Participants")
|
||||
: base("Recent participants")
|
||||
{
|
||||
OsuScrollContainer scroll;
|
||||
ParticipantsList list;
|
||||
|
@ -59,7 +59,7 @@ namespace osu.Game.Screens.Multi.Components
|
||||
[BackgroundDependencyLoader]
|
||||
private void load()
|
||||
{
|
||||
Participants.CollectionChanged += (_, __) => updateParticipants();
|
||||
RecentParticipants.CollectionChanged += (_, __) => updateParticipants();
|
||||
updateParticipants();
|
||||
}
|
||||
|
||||
@ -82,8 +82,8 @@ namespace osu.Game.Screens.Multi.Components
|
||||
Spacing = new Vector2(10)
|
||||
};
|
||||
|
||||
for (int i = 0; i < Participants.Count; i++)
|
||||
tiles.Add(new UserTile { User = Participants[i] });
|
||||
for (int i = 0; i < RecentParticipants.Count; i++)
|
||||
tiles.Add(new UserTile { User = RecentParticipants[i] });
|
||||
|
||||
AddInternal(tiles);
|
||||
|
||||
|
@ -31,7 +31,7 @@ namespace osu.Game.Screens.Multi
|
||||
protected BindableList<PlaylistItem> Playlist { get; private set; }
|
||||
|
||||
[Resolved(typeof(Room))]
|
||||
protected BindableList<User> Participants { get; private set; }
|
||||
protected BindableList<User> RecentParticipants { get; private set; }
|
||||
|
||||
[Resolved(typeof(Room))]
|
||||
protected Bindable<int> ParticipantCount { get; private set; }
|
||||
|
Loading…
Reference in New Issue
Block a user