Add a "Game Name" textfield to server creation
This commit is contained in:
@@ -54,7 +54,6 @@ namespace OpenRA.GameRules
|
||||
public string PlayerName = null;
|
||||
public readonly string[] InitialMods = { "ra" };
|
||||
|
||||
public readonly string GameName = "OpenRA Game";
|
||||
public readonly int ListenPort = 1234;
|
||||
public readonly int ExternalPort = 1234;
|
||||
public readonly bool InternetServer = true;
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user