mirror of
https://github.com/osukey/osukey.git
synced 2025-05-03 04:37:30 +09:00
Rename recent participants
This commit is contained in:
parent
22862256c1
commit
085968dd7f
@ -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;
|
||||||
|
@ -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;
|
||||||
|
@ -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);
|
||||||
|
|
||||||
|
@ -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; }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user