Add a "Game Name" textfield to server creation

This commit is contained in:
Paul Chote
2010-07-11 00:04:42 +12:00
parent 3296cc2ec1
commit b6fc28023d
3 changed files with 28 additions and 14 deletions

View File

@@ -50,8 +50,7 @@ namespace OpenRA.Widgets.Delegates
// TODO: Get this from a mod chooser
var mods = Game.Settings.InitialMods;
// TODO: Get this from a textbox
var gameName = Game.Settings.GameName;
var gameName = r.GetWidget<TextFieldWidget>("GAME_TITLE").Text;
Server.Server.ServerMain(AdvertiseServerOnline, Game.Settings.MasterServer,
gameName, Game.Settings.ListenPort,