Hide the join slot buttons when ready.

This commit is contained in:
Paul Chote
2010-11-28 15:11:57 +13:00
parent 9c7759d131
commit 745df591e0

View File

@@ -365,7 +365,7 @@ namespace OpenRA.Widgets.Delegates
if (join != null)
{
join.OnMouseUp = _ => { orderManager.IssueOrder(Order.Command("slot " + s.Index)); return true; };
join.IsVisible = () => !s.Closed && s.Bot == null;
join.IsVisible = () => !s.Closed && s.Bot == null && orderManager.LocalClient.State != Session.ClientState.Ready;
}
var bot = template.GetWidget<LabelWidget>("BOT");