Add a news panel to each mod
This commit is contained in:
@@ -31,6 +31,7 @@ namespace OpenRA
|
||||
public readonly MiniYaml LobbyDefaults;
|
||||
public readonly Dictionary<string, Pair<string, int>> Fonts;
|
||||
public readonly Size TileSize = new Size(24, 24);
|
||||
public readonly string NewsUrl;
|
||||
|
||||
public Manifest(string mod)
|
||||
{
|
||||
@@ -82,6 +83,9 @@ namespace OpenRA
|
||||
compat.Add(c.Trim());
|
||||
|
||||
MapCompatibility = compat.ToArray();
|
||||
|
||||
if (yaml.ContainsKey("NewsUrl"))
|
||||
NewsUrl = yaml["NewsUrl"].Value;
|
||||
}
|
||||
|
||||
static string[] YamlList(Dictionary<string, MiniYaml> yaml, string key)
|
||||
|
||||
Reference in New Issue
Block a user