Пример #1
0
 /// <summary>
 /// Check if a point overlaps with the button
 /// </summary>
 /// <param name="point"></param>
 /// <returns></returns>
 public bool checkOverlap(Vector2f point)
 {
     return(MathLib2D.isPointInRect(recButtonBackground.GetGlobalBounds(), point));
 }
Пример #2
0
 /// <summary>
 /// Check if a point overlaps with the bounds of the text
 /// </summary>
 /// <param name="point"></param>
 /// <returns></returns>
 public bool checkOverlap(Vector2f point)
 {
     return(MathLib2D.isPointInRect(text.GetGlobalBounds(), point));
 }