fix bug preventing joins

This commit is contained in:
Chris Forbes
2010-04-12 21:50:56 +12:00
parent abdd7b9f08
commit f95230162d

View File

@@ -52,6 +52,8 @@ namespace OpenRA.Widgets
public Func<MouseInput,bool> OnMouseMove = mi => {return false;};
public Func<bool> IsVisible;
public Widget() { IsVisible = () => Visible; }
public virtual void Initialize()
{
// Parse the YAML equations to find the widget bounds
@@ -74,7 +76,6 @@ namespace OpenRA.Widgets
height);
// Non-static func definitions
IsVisible = () => {return Visible;};
if (Delegate != null && !Delegates.Contains(Delegate))
Delegates.Add(Delegate);