Disable the button/order when there aren't enough clients to assign
This commit is contained in:
@@ -163,7 +163,8 @@ namespace OpenRA.Mods.RA.Widgets.Logic
|
||||
if (assignTeams != null)
|
||||
{
|
||||
assignTeams.IsVisible = () => Game.IsHost;
|
||||
assignTeams.IsDisabled = () => gameStarting || orderManager.LocalClient == null || orderManager.LocalClient.IsReady;
|
||||
assignTeams.IsDisabled = () => gameStarting || orderManager.LobbyInfo.Clients.Count < 2
|
||||
|| orderManager.LocalClient == null || orderManager.LocalClient.IsReady;
|
||||
|
||||
assignTeams.OnMouseDown = _ =>
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user