Added latest version information underneath current version in main menu.

This commit is contained in:
Matthew Bowra-Dean
2010-09-29 14:13:22 +13:00
committed by Chris Forbes
parent d8d987f844
commit 92fece01de
5 changed files with 45 additions and 12 deletions

View File

@@ -9,6 +9,7 @@
#endregion
using OpenRA.FileFormats;
using OpenRA.Server;
namespace OpenRA.Widgets.Delegates
{
@@ -31,6 +32,8 @@ namespace OpenRA.Widgets.Delegates
var s = FileSystem.Open("VERSION");
version.Text = s.ReadAllText();
s.Close();
MasterServerQuery.OnVersion += v => { version.Text += "\nLatest: " + v; };
MasterServerQuery.GetCurrentVersion(Game.Settings.Server.MasterServer);
}
}
}