From b39edc74450fe4e7eebc94aa11f59924e03d3a52 Mon Sep 17 00:00:00 2001 From: Chris Forbes Date: Mon, 18 Jan 2010 18:12:20 +1300 Subject: [PATCH] connect dialog tweaks --- OpenRa.Game/Graphics/Viewport.cs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/OpenRa.Game/Graphics/Viewport.cs b/OpenRa.Game/Graphics/Viewport.cs index 14e080b2a1..beac26dcd5 100644 --- a/OpenRa.Game/Graphics/Viewport.cs +++ b/OpenRa.Game/Graphics/Viewport.cs @@ -1,8 +1,8 @@ using System.Collections.Generic; using System.Linq; -using System.Windows.Forms; -using OpenRa.Traits; +using OpenRa.FileFormats; using OpenRa.Orders; +using OpenRa.Traits; namespace OpenRa.Graphics { @@ -56,13 +56,15 @@ namespace OpenRa.Graphics } else { + // what a hack. as soon as we have some real chrome stuff... + if (Game.orderManager.IsNetplay) { var nos = Game.orderManager.Sources.OfType().First(); switch (nos.State) { case ConnectionState.Connecting: - Game.chrome.DrawDialog("Connecting to server..."); + Game.chrome.DrawDialog("Connecting to {0}:{1}".F( Game.Settings.NetworkHost, Game.Settings.NetworkPort )); break; case ConnectionState.NotConnected: Game.chrome.DrawDialog("Connection failed.");