Fixed #4697 - Added lobby disconnect hotkey, and renamed the button for single player.

Fixed #4697 - Corrected a misspelled hotkey.
This commit is contained in:
joncloud
2014-03-16 13:45:01 -07:00
parent 26e75621c3
commit cd43bf118b
3 changed files with 5 additions and 0 deletions

View File

@@ -441,6 +441,9 @@ namespace OpenRA.Mods.RA.Widgets.Logic
var disconnectButton = lobby.Get<ButtonWidget>("DISCONNECT_BUTTON");
disconnectButton.OnClick = () => { CloseWindow(); onExit(); };
if (this.skirmishMode)
disconnectButton.Text = "Cancel";
bool teamChat = false;
var chatLabel = lobby.Get<LabelWidget>("LABEL_CHATTYPE");
var chatTextField = lobby.Get<TextFieldWidget>("CHAT_TEXTFIELD");