Checkboxes, Delegates, Create Server.

This commit is contained in:
Paul Chote
2010-03-17 22:00:44 +13:00
parent 2a1d9cba7f
commit 48370612a0
8 changed files with 159 additions and 60 deletions

View File

@@ -25,6 +25,10 @@ namespace OpenRA.Widgets
if (!Visible || !GetEventBounds().Contains(mi.Location.X,mi.Location.Y))
return base.HandleInput(mi);
if (base.HandleInput(mi))
return true;
// Give button focus only while the mouse is down
// This is a bit of a hack: it will become cleaner soonish
// It will also steal events from any potential children
@@ -36,7 +40,7 @@ namespace OpenRA.Widgets
return true;
}
return base.HandleInput(mi);
return false;
}
public override void Draw()