public static ElementIcon Create(Element element = Element.NONE) { ElementIcon icon = (ElementIcon)template.Instance(); icon.Configure(element); return(icon); }
public void SetElements(List <Element> elements) { this.QueueFreeChildren(); foreach (Element e in elements) { AddChild(ElementIcon.Create(e)); } }