First hack of build palette as a widget. Works, but needs a lot of polish.

This commit is contained in:
Paul Chote
2010-04-11 23:27:22 +12:00
committed by Chris Forbes
parent 55352d7df9
commit d7bd5e6ee8
7 changed files with 506 additions and 405 deletions

View File

@@ -53,7 +53,7 @@ namespace OpenRA.Widgets
public override bool HandleInput(MouseInput mi)
{
// Are we able to handle this event?
if (!Visible || !GetEventBounds().Contains(mi.Location.X,mi.Location.Y))
if (!IsVisible() || !GetEventBounds().Contains(mi.Location.X,mi.Location.Y))
return base.HandleInput(mi);
if (base.HandleInput(mi))