/// <summary> /// Initializes a new instance of UI_Manager /// </summary> /// <param name="Children">Array of child UI elements to be managed</param> public UI_Manager(UI_Element[] Children) { //Sort list by index first, and by time of insertion second. foreach (UI_Element child in Children) { children.Add(child, child.GetIndex()); } }
/// <summary> /// Adds a child element to the UI /// </summary> /// <param name="ChildElement">Child UI element to be added</param> public void AddChild(UI_Element ChildElement) { children.Add(ChildElement); }