diff --git a/src/Misc.gd b/src/Misc.gd index 36b1a51..a7e9fbc 100644 --- a/src/Misc.gd +++ b/src/Misc.gd @@ -80,5 +80,5 @@ func stringarray_to_array(array: Array[String]) -> Array: return output -func center_object(parent_size: Vector2, child_size: Vector2) -> Vector2: +func get_center(parent_size: Vector2, child_size: Vector2) -> Vector2: return Vector2(parent_size.x/2-child_size.x/2, parent_size.y/2-child_size.y/2)