Show an error dialog if disconnected from the server.

This commit is contained in:
Paul Chote
2014-01-31 20:50:26 +13:00
parent 7e8e427449
commit a32d440b05
6 changed files with 51 additions and 0 deletions

View File

@@ -88,7 +88,10 @@ namespace OpenRA.Mods.RA.Widgets.Logic
var abortButton = panel.Get<ButtonWidget>("ABORT_BUTTON");
var retryButton = panel.Get<ButtonWidget>("RETRY_BUTTON");
abortButton.Visible = onAbort != null;
abortButton.OnClick = () => { Ui.CloseWindow(); onAbort(); };
retryButton.Visible = onRetry != null;
retryButton.OnClick = () =>
{
var password = passwordField != null && passwordField.IsVisible() ? passwordField.Text : orderManager.Password;