1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-14 04:02:59 +08:00

Add number of ready users to button

This commit is contained in:
smoogipoo 2020-12-20 18:49:39 +09:00
parent a07a36793a
commit b002c46666

View File

@ -69,8 +69,9 @@ namespace osu.Game.Screens.Multi.RealtimeMultiplayer
case MultiplayerUserState.Ready:
if (Room?.Host?.Equals(localUser) == true)
{
button.Text = "Let's go!";
updateButtonColour(Room.Users.All(u => u.State == MultiplayerUserState.Ready));
int countReady = Room.Users.Count(u => u.State == MultiplayerUserState.Ready);
button.Text = $"Start match ({countReady} / {Room.Users.Count} ready)";
updateButtonColour(true);
}
else
{