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

@@ -138,6 +138,13 @@ namespace OpenRA.Widgets
child.Draw(world);
}
public virtual void Tick(World world)
{
if (IsVisible())
foreach (var child in Children)
child.Tick(world);
}
public void AddChild(Widget child)
{
child.Parent = this;