2020-12-20 23:04:06 +08:00
|
|
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
|
|
|
// See the LICENCE file in the repository root for full licence text.
|
|
|
|
|
2022-06-17 15:37:17 +08:00
|
|
|
#nullable disable
|
|
|
|
|
2020-12-20 23:04:06 +08:00
|
|
|
using osu.Framework.Allocation;
|
2020-12-25 12:38:11 +08:00
|
|
|
using osu.Game.Online.Multiplayer;
|
2022-01-28 12:53:48 +08:00
|
|
|
using osu.Game.Resources.Localisation.Web;
|
2020-12-25 23:50:00 +08:00
|
|
|
using osu.Game.Screens.OnlinePlay.Components;
|
2020-12-20 23:04:06 +08:00
|
|
|
|
2020-12-25 23:50:00 +08:00
|
|
|
namespace osu.Game.Screens.OnlinePlay.Multiplayer.Participants
|
2020-12-20 23:04:06 +08:00
|
|
|
{
|
|
|
|
public class ParticipantsListHeader : OverlinedHeader
|
|
|
|
{
|
|
|
|
[Resolved]
|
2021-05-20 14:39:45 +08:00
|
|
|
private MultiplayerClient client { get; set; }
|
2020-12-20 23:04:06 +08:00
|
|
|
|
|
|
|
public ParticipantsListHeader()
|
2022-01-28 12:53:48 +08:00
|
|
|
: base(RankingsStrings.SpotlightParticipants)
|
2020-12-20 23:04:06 +08:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
protected override void Update()
|
|
|
|
{
|
|
|
|
base.Update();
|
|
|
|
|
|
|
|
var room = client.Room;
|
|
|
|
if (room == null)
|
|
|
|
return;
|
|
|
|
|
|
|
|
Details.Value = room.Users.Count.ToString();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|