public UIElement GetElementAt(Vector2 point) { UIElement uIElement = null; for (int num = Elements.Count - 1; num >= 0; num--) { UIElement uIElement2 = Elements[num]; if (!uIElement2.IgnoresMouseInteraction && uIElement2.ContainsPoint(point)) { uIElement = uIElement2; break; } } if (uIElement != null) { return(uIElement.GetElementAt(point)); } if (IgnoresMouseInteraction) { return(null); } if (ContainsPoint(point)) { return(this); } return(null); }
public UIElement GetElementAt(Vector2 point) { UIElement uiElement1 = (UIElement)null; foreach (UIElement uiElement2 in this.Elements) { if (uiElement2.ContainsPoint(point)) { uiElement1 = uiElement2; break; } } if (uiElement1 != null) { return(uiElement1.GetElementAt(point)); } if (this.ContainsPoint(point)) { return(this); } return((UIElement)null); }
public UIElement GetElementAt(Vector2 point) { UIElement uiElement = (UIElement)null; foreach (UIElement element in this.Elements) { if (element.ContainsPoint(point)) { uiElement = element; break; } } if (uiElement != null) { return(uiElement.GetElementAt(point)); } if (this.ContainsPoint(point)) { return(this); } return((UIElement)null); }
// Token: 0x06000C28 RID: 3112 RVA: 0x003D8658 File Offset: 0x003D6858 public UIElement GetElementAt(Vector2 point) { UIElement uIElement = null; foreach (UIElement current in this.Elements) { if (current.ContainsPoint(point)) { uIElement = current; break; } } if (uIElement != null) { return(uIElement.GetElementAt(point)); } if (this.ContainsPoint(point)) { return(this); } return(null); }
public UIElement GetElementAt(Vector2 point) { UIElement uiElement = (UIElement)null; for (int index = this.Elements.Count - 1; index >= 0; --index) { UIElement element = this.Elements[index]; if (!element.IgnoresMouseInteraction && element.ContainsPoint(point)) { uiElement = element; break; } } if (uiElement != null) { return(uiElement.GetElementAt(point)); } if (this.IgnoresMouseInteraction) { return((UIElement)null); } return(this.ContainsPoint(point) ? this : (UIElement)null); }