public virtual void AddActor(Actor actor) { actor.Remove(); Children.Add(actor); actor.Parent = this; actor.Stage = Stage; ChildrenChanged(); }
public virtual void AddActorBefore(Actor actorBefore, Actor actor) { actor.Remove(); int index = Children.IndexOf(actorBefore); Children.Insert(index, actor); actor.Parent = this; actor.Stage = Stage; ChildrenChanged(); }
public virtual void AddActorAt(int index, Actor actor) { actor.Remove(); if (index >= Children.Count) { Children.Add(actor); } else { Children.Insert(index, actor); } actor.Parent = this; actor.Stage = Stage; ChildrenChanged(); }
public virtual void AddActorAfter(Actor actorAfter, Actor actor) { actor.Remove(); int index = Children.IndexOf(actorAfter); if (index == Children.Count) { Children.Add(actor); } else { Children.Insert(index + 1, actor); } actor.Parent = this; actor.Stage = Stage; ChildrenChanged(); }
public virtual void AddActor(Actor actor) { actor.Remove(); Children.Add(actor); actor.Parent = this; actor.Stage = Stage; ChildrenChanged(); }
public virtual void AddActorBefore(Actor actorBefore, Actor actor) { actor.Remove(); int index = Children.IndexOf(actorBefore); Children.Insert(index, actor); actor.Parent = this; actor.Stage = Stage; ChildrenChanged(); }
public virtual void AddActorAt(int index, Actor actor) { actor.Remove(); if (index >= Children.Count) Children.Add(actor); else Children.Insert(index, actor); actor.Parent = this; actor.Stage = Stage; ChildrenChanged(); }
public virtual void AddActorAfter(Actor actorAfter, Actor actor) { actor.Remove(); int index = Children.IndexOf(actorAfter); if (index == Children.Count) Children.Add(actor); else Children.Insert(index + 1, actor); actor.Parent = this; actor.Stage = Stage; ChildrenChanged(); }