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:
parent
a07a36793a
commit
b002c46666
@ -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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user