Merge pull request #10551 from RockyTV/rockytv

Change CONNECTIONFAILED_PANEL title if server requires password
This commit is contained in:
Oliver Brakmann
2016-01-31 16:14:21 +01:00
3 changed files with 5 additions and 4 deletions

View File

@@ -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)
{