/// <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)); }
/// <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)); }