Change CONNECTIONFAILED_PANEL title if server requires password
If the server requires a password, display Password Required instead of the usual Connection Error title.
This commit is contained in:
@@ -106,6 +106,9 @@ namespace OpenRA.Mods.Common.Widgets.Logic
|
||||
var connectionError = widget.Get<LabelWidget>("CONNECTION_ERROR");
|
||||
connectionError.GetText = () => orderManager.ServerError;
|
||||
|
||||
var panelTitle = widget.Get<LabelWidget>("TITLE");
|
||||
panelTitle.GetText = () => orderManager.AuthenticationFailed ? "Password Required" : "Connection Failed";
|
||||
|
||||
passwordField = panel.GetOrNull<PasswordFieldWidget>("PASSWORD");
|
||||
if (passwordField != null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user