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