Пример #1
0
 private bool IsMouseOverOccludingElement(GuiElement element, Vector2 mousePositionInScreenSpace)
 {
     if (!element.Showing)
     {
         return(false);
     }
     else
     {
         Rect elementRect = new Rect(0.0f, 0.0f, element.Size.x, element.Size.y);
         return(elementRect.Contains(element.GetWidgetPosition(mousePositionInScreenSpace)));
     }
 }