Reimplement server browser

This commit is contained in:
Paul Chote
2011-05-18 20:25:47 +12:00
parent 6e3a88f670
commit 845b32281d
10 changed files with 580 additions and 505 deletions

View File

@@ -26,6 +26,7 @@ namespace OpenRA.Widgets
public string Width = "0";
public string Height = "0";
public string Delegate = null;
public IWidgetDelegate DelegateObject {get; private set;}
public bool Visible = true;
public readonly List<Widget> Children = new List<Widget>();
@@ -127,8 +128,8 @@ namespace OpenRA.Widgets
args["widget"] = this;
var iwd = Game.modData.ObjectCreator.CreateObject<IWidgetDelegate>(Delegate, args)
as IWidgetDelegateEx;
DelegateObject = Game.modData.ObjectCreator.CreateObject<IWidgetDelegate>(Delegate, args);
var iwd = DelegateObject as IWidgetDelegateEx;
if (iwd != null)
iwd.Init();