don't crash on in-game connection loss either

This commit is contained in:
Chris Forbes
2010-01-18 18:32:03 +13:00
parent 893dc15d81
commit 1b0187b089
3 changed files with 32 additions and 14 deletions

View File

@@ -217,6 +217,9 @@ namespace OpenRa
var r = new Rectangle((Game.viewport.Width - w) / 2, (Game.viewport.Height - h) / 2, w, h);
DrawDialogBackground(r, optionsSprites, true);
DrawCentered(text, new int2(Game.viewport.Width / 2, Game.viewport.Height / 2 - 8), Color.White);
// don't allow clicks through the dialog
AddButton(r, _ => { });
}
public void DrawLobby()
@@ -260,6 +263,9 @@ namespace OpenRa
DrawDialogBackground(chatBox, panelSprites, false);
DrawChat(typingBox, chatBox);
// block clicks `through` the dialog
AddButton(r, _ => { });
}
public void TickRadarAnimation()