public void Add(UIObject uiObject) { uiObject.Parent = this; uiObject.GUIManager = GUIManager; uiObject.Initialize(); Elements.Add(uiObject); }
private void OnLeftMouseButtonDown() { FocusedElement = Elements.FoundFocus(MouseHelper.X, MouseHelper.Y); if (FocusedElement != null) FocusedElement.LeftMouseButtonDown(); }
public void Add(UIObject uiobject) { Elements.Add(uiobject); }
public void SetToFront(UIObject uiobject) { Elements.Remove(uiobject); Elements.Insert(0, uiobject); if (Parent != null) Parent.SetToFront(this); }
public void Remove(UIObject uiObject) { Elements.Remove(uiObject); }
public bool Exist(UIObject uiObject) { return Elements.Any(u => u == uiObject); }