First hack of build palette as a widget. Works, but needs a lot of polish.
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user