mirror of https://github.com/ppy/osu
33 lines
895 B
C#
33 lines
895 B
C#
// 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.
|
|
|
|
using osu.Framework.Allocation;
|
|
using osu.Game.Online.Multiplayer;
|
|
using osu.Game.Resources.Localisation.Web;
|
|
using osu.Game.Screens.OnlinePlay.Components;
|
|
|
|
namespace osu.Game.Screens.OnlinePlay.Multiplayer.Participants
|
|
{
|
|
public partial class ParticipantsListHeader : OverlinedHeader
|
|
{
|
|
[Resolved]
|
|
private MultiplayerClient client { get; set; } = null!;
|
|
|
|
public ParticipantsListHeader()
|
|
: base(RankingsStrings.SpotlightParticipants)
|
|
{
|
|
}
|
|
|
|
protected override void Update()
|
|
{
|
|
base.Update();
|
|
|
|
var room = client.Room;
|
|
if (room == null)
|
|
return;
|
|
|
|
Details.Value = room.Users.Count.ToString();
|
|
}
|
|
}
|
|
}
|