We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a2a0e6 commit 78c2ae0Copy full SHA for 78c2ae0
gui/widgets/SquishyButton.gd
@@ -146,6 +146,11 @@ func _get_minimum_size() -> Vector2:
146
return min_size
147
148
149
+func _has_point(point: Vector2) -> bool:
150
+ var visual_rect := Rect2(Vector2.ZERO, size).expand(_panel_position)
151
+ return visual_rect.has_point(point)
152
+
153
154
func get_global_visual_rect() -> Rect2:
155
var visual_rect := Rect2(Vector2.ZERO, size).expand(_panel_position)
156
visual_rect.position += global_position
0 commit comments