Better listbox rows

This commit is contained in:
Paul Chote
2010-07-12 21:10:00 +12:00
parent e23ee6d892
commit 7d2a5d6f42
6 changed files with 41 additions and 34 deletions

View File

@@ -36,7 +36,7 @@ namespace OpenRA.Widgets
public string Width = "0";
public string Height = "0";
public string Delegate = null;
public bool ClickThrough = false;
public bool ClickThrough = true;
public bool Visible = true;
public readonly List<Widget> Children = new List<Widget>();
@@ -173,7 +173,7 @@ namespace OpenRA.Widgets
return true;
}
public virtual bool HandleInput(MouseInput mi) { return false; }
public virtual bool HandleInput(MouseInput mi) { return !ClickThrough; }
public bool HandleMouseInputOuter(MouseInput mi)
{
// Are we able to handle this event?