Fixed #4697 - Added lobby disconnect hotkey, and renamed the button for single player.
Fixed #4697 - Corrected a misspelled hotkey.
This commit is contained in:
@@ -441,6 +441,9 @@ namespace OpenRA.Mods.RA.Widgets.Logic
|
|||||||
var disconnectButton = lobby.Get<ButtonWidget>("DISCONNECT_BUTTON");
|
var disconnectButton = lobby.Get<ButtonWidget>("DISCONNECT_BUTTON");
|
||||||
disconnectButton.OnClick = () => { CloseWindow(); onExit(); };
|
disconnectButton.OnClick = () => { CloseWindow(); onExit(); };
|
||||||
|
|
||||||
|
if (this.skirmishMode)
|
||||||
|
disconnectButton.Text = "Cancel";
|
||||||
|
|
||||||
bool teamChat = false;
|
bool teamChat = false;
|
||||||
var chatLabel = lobby.Get<LabelWidget>("LABEL_CHATTYPE");
|
var chatLabel = lobby.Get<LabelWidget>("LABEL_CHATTYPE");
|
||||||
var chatTextField = lobby.Get<TextFieldWidget>("CHAT_TEXTFIELD");
|
var chatTextField = lobby.Get<TextFieldWidget>("CHAT_TEXTFIELD");
|
||||||
|
|||||||
@@ -161,6 +161,7 @@ Container@SERVER_LOBBY:
|
|||||||
Width:140
|
Width:140
|
||||||
Height:35
|
Height:35
|
||||||
Text:Leave Game
|
Text:Leave Game
|
||||||
|
Key: escape
|
||||||
Button@MUSIC_BUTTON:
|
Button@MUSIC_BUTTON:
|
||||||
X:450
|
X:450
|
||||||
Y:499
|
Y:499
|
||||||
|
|||||||
@@ -164,4 +164,5 @@ Background@SERVER_LOBBY:
|
|||||||
Height:25
|
Height:25
|
||||||
Text:Disconnect
|
Text:Disconnect
|
||||||
Font:Bold
|
Font:Bold
|
||||||
|
Key: escape
|
||||||
TooltipContainer@TOOLTIP_CONTAINER:
|
TooltipContainer@TOOLTIP_CONTAINER:
|
||||||
Reference in New Issue
Block a user