connection dialogs show correct hostname/port

This commit is contained in:
Chris Forbes
2010-04-15 21:50:07 +12:00
parent d5ef617d2d
commit 1447946ea6
2 changed files with 6 additions and 8 deletions

View File

@@ -37,6 +37,12 @@ namespace OpenRA.Widgets.Delegates
Game.JoinServer(Game.CurrentHost, Game.CurrentPort);
return true;
};
r.GetWidget<LabelWidget>("CONNECTING_DESC").GetText = () =>
"Connecting to {0}:{1}...".F(Game.CurrentHost, Game.CurrentPort);
r.GetWidget<LabelWidget>("CONNECTION_FAILED_DESC").GetText = () =>
"Could not connect to {0}:{1}".F(Game.CurrentHost, Game.CurrentPort);
}
}
}