Disconnect button in lobby (#191)

This commit is contained in:
Paul Chote
2010-05-26 21:39:06 +12:00
parent 49b1870eaa
commit c792ce5686
3 changed files with 16 additions and 3 deletions

View File

@@ -44,9 +44,14 @@ namespace OpenRA.Widgets.Delegates
r.OpenWindow("MAP_CHOOSER");
return true;
};
mapButton.IsVisible = () => mapButton.Visible && Game.IsHost;
var disconnectButton = lobby.GetWidget("DISCONNECT_BUTTON");
disconnectButton.OnMouseUp = mi => {
Game.Disconnect();
return true;
};
Game.LobbyInfoChanged += UpdatePlayerList;
}