Merge pull request #11533 from HenrytheSlav/pword_UI

Password UI improvements
This commit is contained in:
Oliver Brakmann
2016-06-26 17:47:35 +02:00
committed by GitHub

View File

@@ -113,7 +113,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic
passwordField = panel.GetOrNull<PasswordFieldWidget>("PASSWORD");
if (passwordField != null)
{
passwordField.Text = orderManager.Password;
passwordField.TakeKeyboardFocus();
passwordField.IsVisible = () => orderManager.AuthenticationFailed;
var passwordLabel = widget.Get<LabelWidget>("PASSWORD_LABEL");
passwordLabel.IsVisible = passwordField.IsVisible;