diff --git a/classes/class_acceptdialog.rst b/classes/class_acceptdialog.rst index 2941fac48..cc128201c 100644 --- a/classes/class_acceptdialog.rst +++ b/classes/class_acceptdialog.rst @@ -64,7 +64,7 @@ Member Function Description Add custom button to the dialog and return the created button. -The button titled with *text* and the *action* will be passed to :ref:`custom_action` signal when it is pressed. +The button titled with *text* and the *action* will be passed to custom_action signal when it is pressed. .. _class_AcceptDialog_add_cancel: diff --git a/classes/class_array.rst b/classes/class_array.rst index 3c86d06c1..e805d0a81 100644 --- a/classes/class_array.rst +++ b/classes/class_array.rst @@ -188,7 +188,14 @@ Returns the first element of the array if the array is not empty (size>0). - :ref:`bool` **has** **(** var value **)** -Return true if the array contains given value. ``:ref:` "inside", 7 `.has("inside") == true, :ref:` "inside", 7 `.has("outside") == false, :ref:` "inside", 7 `.has(7) == true, :ref:` "inside", 7 `.has("7") == false`` +Return true if the array contains given value. + +:: + + [ "inside", 7 ].has("inside") == true + [ "inside", 7 ].has("outside") == false + [ "inside", 7 ].has(7) == true + [ "inside", 7 ].has("7") == false .. _class_Array_hash: diff --git a/classes/class_astar.rst b/classes/class_astar.rst index 7c97275d1..0dabe3bcc 100644 --- a/classes/class_astar.rst +++ b/classes/class_astar.rst @@ -47,6 +47,8 @@ Member Functions +------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`float` | :ref:`get_point_weight_scale` **(** :ref:`int` id **)** const | +------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| :ref:`bool` | :ref:`has_point` **(** :ref:`int` id **)** const | ++------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`remove_point` **(** :ref:`int` id **)** | +------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------+ @@ -111,6 +113,10 @@ Add a new point at the given position. The ``weight_scale`` has to be 1 or large - :ref:`float` **get_point_weight_scale** **(** :ref:`int` id **)** const +.. _class_AStar_has_point: + +- :ref:`bool` **has_point** **(** :ref:`int` id **)** const + .. _class_AStar_remove_point: - void **remove_point** **(** :ref:`int` id **)** diff --git a/classes/class_control.rst b/classes/class_control.rst index c3e8f089c..42595ee62 100644 --- a/classes/class_control.rst +++ b/classes/class_control.rst @@ -331,7 +331,7 @@ Override a single icon (:ref:`Texture`) in the theme of this Cont - void **add_style_override** **(** :ref:`String` name, :ref:`StyleBox` stylebox **)** -Override a single stylebox (:ref:`Stylebox`) in the theme of this Control. If stylebox is empty, override is cleared. +Override a single stylebox (Stylebox) in the theme of this Control. If stylebox is empty, override is cleared. .. _class_Control_can_drop_data: @@ -491,7 +491,7 @@ Return position and size of the Control, relative to the top-left corner of the - :ref:`Vector2` **get_size** **(** **)** const -Returns the size of the Control, computed from all margins, however the size returned will **never be smaller than the minimum size reported by :ref:`get_minimum_size`**. This means that even if end position of the Control rectangle is smaller than the begin position, the Control will still display and interact correctly. (see description, :ref:`get_minimum_size`, :ref:`set_margin`, :ref:`set_anchor`). +Returns the size of the Control, computed from all margins, however the size returned will **never be smaller than the minimum size reported by** :ref:`get_minimum_size`. This means that even if end position of the Control rectangle is smaller than the begin position, the Control will still display and interact correctly. (see description, :ref:`get_minimum_size`, :ref:`set_margin`, :ref:`set_anchor`). .. _class_Control_get_stretch_ratio: diff --git a/classes/class_dictionary.rst b/classes/class_dictionary.rst index 5f4bff6cb..6f91f5c96 100644 --- a/classes/class_dictionary.rst +++ b/classes/class_dictionary.rst @@ -94,7 +94,9 @@ Return the list of keys in the :ref:`Dictionary`. - :ref:`int` **parse_json** **(** :ref:`String` json **)** -Parse json text to the dictionary. Return OK when successed or the error code when failed. +Parse JSON text to the dictionary. Return OK when successed or the error code when failed. + +Be aware that the JSON specification does not define integer or float types, but only a number type. Therefore, parsing a JSON text will convert every numerical values to :ref:`float` types. .. _class_Dictionary_size: diff --git a/classes/class_editorspatialgizmo.rst b/classes/class_editorspatialgizmo.rst index 1ddaff972..225e8bb8c 100644 --- a/classes/class_editorspatialgizmo.rst +++ b/classes/class_editorspatialgizmo.rst @@ -62,7 +62,7 @@ Member Function Description - void **add_collision_triangles** **(** TriangleMesh triangles **)** -Add collision triangles to the gizmo for picking. A :ref:`TriangleMesh` can be generated from a regular :ref:`Mesh` too. Call this function during :ref:`redraw`. +Add collision triangles to the gizmo for picking. A TriangleMesh can be generated from a regular :ref:`Mesh` too. Call this function during :ref:`redraw`. .. _class_EditorSpatialGizmo_add_handles: diff --git a/classes/class_filedialog.rst b/classes/class_filedialog.rst index 522ce1a90..1b25acc81 100644 --- a/classes/class_filedialog.rst +++ b/classes/class_filedialog.rst @@ -157,7 +157,7 @@ Return true if the diaog allows show hidden files. - void **set_access** **(** :ref:`int` access **)** -Set the file access permission of the dialog(Must be one of :ref:`ACCESS_RESOURCES`, :ref:`ACCESS_USERDATA` or :ref:`ACCESS_FILESYSTEM`). +Set the file access permission of the dialog(Must be one of ACCESS_RESOURCES, ACCESS_USERDATA or ACCESS_FILESYSTEM). .. _class_FileDialog_set_current_dir: diff --git a/classes/class_graphedit.rst b/classes/class_graphedit.rst index 300bc0171..a2224eb98 100644 --- a/classes/class_graphedit.rst +++ b/classes/class_graphedit.rst @@ -125,6 +125,6 @@ Enable the disconnection of existing connections in the visual GraphEdit by left - void **set_zoom** **(** :ref:`float` p_zoom **)** -Set the zoom value of the GraphEdit. Zoom value is between :ref:`0.01; 1.728`. +Set the zoom value of the GraphEdit. Zoom value is between 0.01; 1.728. diff --git a/classes/class_httpclient.rst b/classes/class_httpclient.rst index 7b970b613..d36e3b7d3 100644 --- a/classes/class_httpclient.rst +++ b/classes/class_httpclient.rst @@ -256,7 +256,7 @@ To create a POST request with query strings to push to the server, do: var fields = {"username" : "user", "password" : "pass"} var queryString = httpClient.query_string_from_dict(fields) - var headers = :ref:`"Content-Type: application/x-www-form-urlencoded", "Content-Length: " + str(queryString.length())` + var headers = ["Content-Type: application/x-www-form-urlencoded", "Content-Length: " + str(queryString.length())] var result = httpClient.request(httpClient.METHOD_POST, "index.php", headers, queryString) .. _class_HTTPClient_request_raw: diff --git a/classes/class_image.rst b/classes/class_image.rst index aa779fa4d..7d447fd70 100644 --- a/classes/class_image.rst +++ b/classes/class_image.rst @@ -16,49 +16,55 @@ Image datatype. Member Functions ---------------- -+----------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ -| :ref:`Image` | :ref:`Image` **(** :ref:`int` width, :ref:`int` height, :ref:`bool` mipmaps, :ref:`int` format **)** | -+----------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ -| void | :ref:`blend_rect` **(** :ref:`Image` src, :ref:`Rect2` src_rect, :ref:`Vector2` dest=0 **)** | -+----------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ -| void | :ref:`blit_rect` **(** :ref:`Image` src, :ref:`Rect2` src_rect, :ref:`Vector2` dest=0 **)** | -+----------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ -| void | :ref:`brush_transfer` **(** :ref:`Image` src, :ref:`Image` brush, :ref:`Vector2` pos=0 **)** | -+----------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ -| :ref:`Image` | :ref:`brushed` **(** :ref:`Image` src, :ref:`Image` brush, :ref:`Vector2` pos=0 **)** | -+----------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ -| :ref:`Image` | :ref:`compressed` **(** :ref:`int` format=0 **)** | -+----------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ -| :ref:`Image` | :ref:`converted` **(** :ref:`int` format=0 **)** | -+----------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ -| :ref:`Image` | :ref:`decompressed` **(** **)** | -+----------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ -| :ref:`bool` | :ref:`empty` **(** **)** | -+----------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ -| void | :ref:`fix_alpha_edges` **(** **)** | -+----------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ -| :ref:`RawArray` | :ref:`get_data` **(** **)** | -+----------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ -| :ref:`int` | :ref:`get_format` **(** **)** | -+----------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ -| :ref:`int` | :ref:`get_height` **(** **)** | -+----------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ -| :ref:`Color` | :ref:`get_pixel` **(** :ref:`int` x, :ref:`int` y, :ref:`int` mipmap_level=0 **)** | -+----------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ -| :ref:`Image` | :ref:`get_rect` **(** :ref:`Rect2` area=0 **)** | -+----------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ -| :ref:`Rect2` | :ref:`get_used_rect` **(** **)** | -+----------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ -| :ref:`int` | :ref:`get_width` **(** **)** | -+----------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ -| :ref:`int` | :ref:`load` **(** :ref:`String` path=0 **)** | -+----------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ -| void | :ref:`put_pixel` **(** :ref:`int` x, :ref:`int` y, :ref:`Color` color, :ref:`int` mipmap_level=0 **)** | -+----------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ -| :ref:`Image` | :ref:`resized` **(** :ref:`int` x, :ref:`int` y, :ref:`int` interpolation=1 **)** | -+----------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ -| :ref:`int` | :ref:`save_png` **(** :ref:`String` path=0 **)** | -+----------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ ++----------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| :ref:`Image` | :ref:`Image` **(** :ref:`int` width, :ref:`int` height, :ref:`bool` mipmaps, :ref:`int` format **)** | ++----------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| void | :ref:`blend_rect` **(** :ref:`Image` src, :ref:`Rect2` src_rect, :ref:`Vector2` dest=0 **)** | ++----------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| void | :ref:`blend_rect_mask` **(** :ref:`Image` src, :ref:`Image` mask, :ref:`Rect2` src_rect, :ref:`Vector2` dest=0 **)** | ++----------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| void | :ref:`blit_rect` **(** :ref:`Image` src, :ref:`Rect2` src_rect, :ref:`Vector2` dest=0 **)** | ++----------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| void | :ref:`blit_rect_mask` **(** :ref:`Image` src, :ref:`Image` mask, :ref:`Rect2` src_rect, :ref:`Vector2` dest=0 **)** | ++----------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| void | :ref:`brush_transfer` **(** :ref:`Image` src, :ref:`Image` brush, :ref:`Vector2` pos=0 **)** | ++----------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| :ref:`Image` | :ref:`brushed` **(** :ref:`Image` src, :ref:`Image` brush, :ref:`Vector2` pos=0 **)** | ++----------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| :ref:`Image` | :ref:`compressed` **(** :ref:`int` format=0 **)** | ++----------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| :ref:`Image` | :ref:`converted` **(** :ref:`int` format=0 **)** | ++----------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| :ref:`Image` | :ref:`decompressed` **(** **)** | ++----------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| :ref:`bool` | :ref:`empty` **(** **)** | ++----------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| void | :ref:`fill` **(** :ref:`Color` color=0 **)** | ++----------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| void | :ref:`fix_alpha_edges` **(** **)** | ++----------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| :ref:`RawArray` | :ref:`get_data` **(** **)** | ++----------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| :ref:`int` | :ref:`get_format` **(** **)** | ++----------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| :ref:`int` | :ref:`get_height` **(** **)** | ++----------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| :ref:`Color` | :ref:`get_pixel` **(** :ref:`int` x, :ref:`int` y, :ref:`int` mipmap_level=0 **)** | ++----------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| :ref:`Image` | :ref:`get_rect` **(** :ref:`Rect2` area=0 **)** | ++----------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| :ref:`Rect2` | :ref:`get_used_rect` **(** **)** | ++----------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| :ref:`int` | :ref:`get_width` **(** **)** | ++----------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| :ref:`int` | :ref:`load` **(** :ref:`String` path=0 **)** | ++----------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| void | :ref:`put_pixel` **(** :ref:`int` x, :ref:`int` y, :ref:`Color` color, :ref:`int` mipmap_level=0 **)** | ++----------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| :ref:`Image` | :ref:`resized` **(** :ref:`int` x, :ref:`int` y, :ref:`int` interpolation=1 **)** | ++----------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| :ref:`int` | :ref:`save_png` **(** :ref:`String` path=0 **)** | ++----------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ Numeric Constants ----------------- @@ -114,12 +120,24 @@ Create an empty image of a specific size and format. Alpha-blends a "src_rect" :ref:`Rect2` from "src" :ref:`Image` to this :ref:`Image` on coordinates "dest". +.. _class_Image_blend_rect_mask: + +- void **blend_rect_mask** **(** :ref:`Image` src, :ref:`Image` mask, :ref:`Rect2` src_rect, :ref:`Vector2` dest=0 **)** + +Alpha-blends a "src_rect" :ref:`Rect2` from "src" :ref:`Image` to this :ref:`Image` using a "mask" :ref:`Image` on coordinates "dest". Alpha channels are required for both "src" and "mask", dest pixels and src pixels will blend if the corresponding mask pixel's alpha value is not 0. "src" :ref:`Image` and "mask" :ref:`Image` \*must\* have the same size (width and height) but they can have different formats + .. _class_Image_blit_rect: - void **blit_rect** **(** :ref:`Image` src, :ref:`Rect2` src_rect, :ref:`Vector2` dest=0 **)** Copy a "src_rect" :ref:`Rect2` from "src" :ref:`Image` to this :ref:`Image` on coordinates "dest". +.. _class_Image_blit_rect_mask: + +- void **blit_rect_mask** **(** :ref:`Image` src, :ref:`Image` mask, :ref:`Rect2` src_rect, :ref:`Vector2` dest=0 **)** + +Blits a "src_rect" :ref:`Rect2` from "src" :ref:`Image` to this :ref:`Image` using a "mask" :ref:`Image` on coordinates "dest". Alpha channel is required for "mask", will copy src pixel onto dest if the corresponding mask pixel's alpha value is not 0. "src" :ref:`Image` and "mask" :ref:`Image` \*must\* have the same size (width and height) but they can have different formats + .. _class_Image_brush_transfer: - void **brush_transfer** **(** :ref:`Image` src, :ref:`Image` brush, :ref:`Vector2` pos=0 **)** @@ -156,6 +174,12 @@ Return a new decompressed :ref:`Image`. Return whether this :ref:`Image` is empty(no data). +.. _class_Image_fill: + +- void **fill** **(** :ref:`Color` color=0 **)** + +Fills an :ref:`Image` with a specified :ref:`Color` + .. _class_Image_fix_alpha_edges: - void **fix_alpha_edges** **(** **)** diff --git a/classes/class_imagetexture.rst b/classes/class_imagetexture.rst index 9a9a2d8ea..4310abaf7 100644 --- a/classes/class_imagetexture.rst +++ b/classes/class_imagetexture.rst @@ -113,7 +113,7 @@ Return the storage type. One of :ref:`ImageTexture`.STORAGE\ - void **load** **(** :ref:`String` path **)** -Load an :ref:`ImageTexure`. +Load an ImageTexure. .. _class_ImageTexture_normal_to_xy: diff --git a/classes/class_kinematicbody2d.rst b/classes/class_kinematicbody2d.rst index b12d0a3cf..7645f72e8 100644 --- a/classes/class_kinematicbody2d.rst +++ b/classes/class_kinematicbody2d.rst @@ -18,37 +18,47 @@ Kinematic body 2D node. Member Functions ---------------- -+--------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------+ -| :ref:`Variant` | :ref:`get_collider` **(** **)** const | -+--------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------+ -| :ref:`Variant` | :ref:`get_collider_metadata` **(** **)** const | -+--------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------+ -| :ref:`int` | :ref:`get_collider_shape` **(** **)** const | -+--------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------+ -| :ref:`Vector2` | :ref:`get_collider_velocity` **(** **)** const | -+--------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------+ -| :ref:`float` | :ref:`get_collision_margin` **(** **)** const | -+--------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------+ -| :ref:`Vector2` | :ref:`get_collision_normal` **(** **)** const | -+--------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------+ -| :ref:`Vector2` | :ref:`get_collision_pos` **(** **)** const | -+--------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------+ -| :ref:`Vector2` | :ref:`get_travel` **(** **)** const | -+--------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------+ -| :ref:`bool` | :ref:`is_colliding` **(** **)** const | -+--------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------+ -| :ref:`Vector2` | :ref:`move` **(** :ref:`Vector2` rel_vec **)** | -+--------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------+ -| :ref:`Vector2` | :ref:`move_to` **(** :ref:`Vector2` position **)** | -+--------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------+ -| void | :ref:`revert_motion` **(** **)** | -+--------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------+ -| void | :ref:`set_collision_margin` **(** :ref:`float` pixels **)** | -+--------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------+ -| :ref:`bool` | :ref:`test_move` **(** :ref:`Vector2` rel_vec **)** | -+--------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------+ -| :ref:`bool` | :ref:`test_move_from` **(** :ref:`Matrix32` from, :ref:`Vector2` rel_vec **)** | -+--------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------+ ++--------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| :ref:`Variant` | :ref:`get_collider` **(** **)** const | ++--------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| :ref:`Variant` | :ref:`get_collider_metadata` **(** **)** const | ++--------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| :ref:`int` | :ref:`get_collider_shape` **(** **)** const | ++--------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| :ref:`Vector2` | :ref:`get_collider_velocity` **(** **)** const | ++--------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| :ref:`float` | :ref:`get_collision_margin` **(** **)** const | ++--------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| :ref:`Vector2` | :ref:`get_collision_normal` **(** **)** const | ++--------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| :ref:`Vector2` | :ref:`get_collision_pos` **(** **)** const | ++--------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| :ref:`Array` | :ref:`get_move_and_slide_colliders` **(** **)** const | ++--------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| :ref:`Vector2` | :ref:`get_travel` **(** **)** const | ++--------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| :ref:`bool` | :ref:`is_colliding` **(** **)** const | ++--------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| :ref:`bool` | :ref:`is_move_and_slide_on_ceiling` **(** **)** const | ++--------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| :ref:`bool` | :ref:`is_move_and_slide_on_floor` **(** **)** const | ++--------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| :ref:`bool` | :ref:`is_move_and_slide_on_wall` **(** **)** const | ++--------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| :ref:`Vector2` | :ref:`move` **(** :ref:`Vector2` rel_vec **)** | ++--------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| :ref:`Vector2` | :ref:`move_and_slide` **(** :ref:`Vector2` linear_velocity, :ref:`Vector2` floor_normal=Vector2(0, 0), :ref:`float` slope_stop_min_velocity=5, :ref:`int` max_bounces=4 **)** | ++--------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| :ref:`Vector2` | :ref:`move_to` **(** :ref:`Vector2` position **)** | ++--------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| void | :ref:`revert_motion` **(** **)** | ++--------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| void | :ref:`set_collision_margin` **(** :ref:`float` pixels **)** | ++--------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| :ref:`bool` | :ref:`test_move` **(** :ref:`Vector2` rel_vec **)** | ++--------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| :ref:`bool` | :ref:`test_move_from` **(** :ref:`Matrix32` from, :ref:`Vector2` rel_vec **)** | ++--------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ Description ----------- @@ -104,6 +114,10 @@ Return the normal of the surface the body collided with. This is useful to imple Return the point in space where the body is touching another. If there is no collision, this method will return (0,0), so collisions must be checked first with :ref:`is_colliding`. +.. _class_KinematicBody2D_get_move_and_slide_colliders: + +- :ref:`Array` **get_move_and_slide_colliders** **(** **)** const + .. _class_KinematicBody2D_get_travel: - :ref:`Vector2` **get_travel** **(** **)** const @@ -116,12 +130,28 @@ Return the last movement done by the body. Return whether the body is colliding with another. +.. _class_KinematicBody2D_is_move_and_slide_on_ceiling: + +- :ref:`bool` **is_move_and_slide_on_ceiling** **(** **)** const + +.. _class_KinematicBody2D_is_move_and_slide_on_floor: + +- :ref:`bool` **is_move_and_slide_on_floor** **(** **)** const + +.. _class_KinematicBody2D_is_move_and_slide_on_wall: + +- :ref:`bool` **is_move_and_slide_on_wall** **(** **)** const + .. _class_KinematicBody2D_move: - :ref:`Vector2` **move** **(** :ref:`Vector2` rel_vec **)** Move the body in the given direction, stopping if there is an obstacle. The returned vector is how much movement was remaining before being stopped. +.. _class_KinematicBody2D_move_and_slide: + +- :ref:`Vector2` **move_and_slide** **(** :ref:`Vector2` linear_velocity, :ref:`Vector2` floor_normal=Vector2(0, 0), :ref:`float` slope_stop_min_velocity=5, :ref:`int` max_bounces=4 **)** + .. _class_KinematicBody2D_move_to: - :ref:`Vector2` **move_to** **(** :ref:`Vector2` position **)** diff --git a/classes/class_margincontainer.rst b/classes/class_margincontainer.rst index 9a5908c19..026479d7e 100644 --- a/classes/class_margincontainer.rst +++ b/classes/class_margincontainer.rst @@ -18,5 +18,5 @@ Simple margin container. Description ----------- -Simple margin container. Adds a left margin to anything contained. +Simple margin container. Adds custom margins to anything contained. diff --git a/classes/class_mutex.rst b/classes/class_mutex.rst index 910a4e06c..a5b9e9edf 100644 --- a/classes/class_mutex.rst +++ b/classes/class_mutex.rst @@ -44,7 +44,7 @@ Lock this :ref:`Mutex`, blocks until it is unlocked by the current - Error **try_lock** **(** **)** -Try locking this :ref:`Mutex`, does not block. Returns :ref:`OK` on success else :ref:`ERR_BUSY`. +Try locking this :ref:`Mutex`, does not block. Returns OK on success else ERR_BUSY. .. _class_Mutex_unlock: diff --git a/classes/class_navigationmesh.rst b/classes/class_navigationmesh.rst index c3e5e4ac8..40de6d37e 100644 --- a/classes/class_navigationmesh.rst +++ b/classes/class_navigationmesh.rst @@ -23,6 +23,8 @@ Member Functions +------------------------------------------+-----------------------------------------------------------------------------------------------------------------------+ | void | :ref:`clear_polygons` **(** **)** | +------------------------------------------+-----------------------------------------------------------------------------------------------------------------------+ +| void | :ref:`create_from_mesh` **(** :ref:`Object` mesh **)** | ++------------------------------------------+-----------------------------------------------------------------------------------------------------------------------+ | :ref:`IntArray` | :ref:`get_polygon` **(** :ref:`int` idx **)** | +------------------------------------------+-----------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_polygon_count` **(** **)** const | @@ -43,6 +45,10 @@ Member Function Description - void **clear_polygons** **(** **)** +.. _class_NavigationMesh_create_from_mesh: + +- void **create_from_mesh** **(** :ref:`Object` mesh **)** + .. _class_NavigationMesh_get_polygon: - :ref:`IntArray` **get_polygon** **(** :ref:`int` idx **)** diff --git a/classes/class_node.rst b/classes/class_node.rst index c1a7333f4..f1314c352 100644 --- a/classes/class_node.rst +++ b/classes/class_node.rst @@ -8,7 +8,7 @@ Node **Inherits:** :ref:`Object` -**Inherited By:** :ref:`Viewport`, :ref:`Timer`, :ref:`CanvasLayer`, :ref:`EventPlayer`, :ref:`SoundRoomParams`, :ref:`Spatial`, :ref:`AnimationPlayer`, :ref:`EditorPlugin`, :ref:`ResourcePreloader`, :ref:`AnimationTreePlayer`, :ref:`SamplePlayer`, :ref:`InstancePlaceholder`, :ref:`HTTPRequest`, :ref:`StreamPlayer`, :ref:`CanvasItem`, :ref:`Tween` +**Inherited By:** :ref:`Viewport`, :ref:`Timer`, :ref:`CanvasLayer`, :ref:`EventPlayer`, :ref:`SoundRoomParams`, :ref:`Tween`, :ref:`Spatial`, :ref:`AnimationPlayer`, :ref:`EditorPlugin`, :ref:`ResourcePreloader`, :ref:`AnimationTreePlayer`, :ref:`SamplePlayer`, :ref:`InstancePlaceholder`, :ref:`HTTPRequest`, :ref:`StreamPlayer`, :ref:`CanvasItem` **Category:** Core diff --git a/classes/class_object.rst b/classes/class_object.rst index 6836b629c..709792c32 100644 --- a/classes/class_object.rst +++ b/classes/class_object.rst @@ -53,7 +53,7 @@ Member Functions +----------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_instance_ID` **(** **)** const | +----------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ -| void | :ref:`get_meta` **(** :ref:`String` name **)** const | +| :ref:`Variant` | :ref:`get_meta` **(** :ref:`String` name **)** const | +----------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`StringArray` | :ref:`get_meta_list` **(** **)** const | +----------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ @@ -228,7 +228,7 @@ Return the instance ID. All objects have a unique instance ID. .. _class_Object_get_meta: -- void **get_meta** **(** :ref:`String` name **)** const +- :ref:`Variant` **get_meta** **(** :ref:`String` name **)** const Return a metadata from the object. diff --git a/classes/class_os.rst b/classes/class_os.rst index 70b4d2abe..f3e02f430 100644 --- a/classes/class_os.rst +++ b/classes/class_os.rst @@ -376,7 +376,7 @@ Returns the value of the commandline argument "-level". - :ref:`String` **get_data_dir** **(** **)** const -Return the absolute directory path of user data path(:ref:`user://`). +Return the absolute directory path of user data path(user://). .. _class_OS_get_date: diff --git a/classes/class_packetpeerudp.rst b/classes/class_packetpeerudp.rst index c341677a5..3ddadd826 100644 --- a/classes/class_packetpeerudp.rst +++ b/classes/class_packetpeerudp.rst @@ -37,7 +37,7 @@ Member Functions Description ----------- -UDP packet peer. Can be used to send raw UDP packets as well as :ref:`Variant`s. +UDP packet peer. Can be used to send raw UDP packets as well as :ref:`Variant`\ s. Member Function Description --------------------------- diff --git a/classes/class_physics2ddirectspacestate.rst b/classes/class_physics2ddirectspacestate.rst index 29e8b5e59..2aa957310 100644 --- a/classes/class_physics2ddirectspacestate.rst +++ b/classes/class_physics2ddirectspacestate.rst @@ -104,7 +104,7 @@ collider: Object the point is inside of. rid: :ref:`RID` of the object the point is in. -Additionally, the method can take an array of objects or :ref:`RID`s that are to be excluded from collisions, a bitmask representing the physics layers to check in, and another bitmask for the types of objects to check (see TYPE_MASK\_\* constants). +Additionally, the method can take an array of objects or :ref:`RID`\ s that are to be excluded from collisions, a bitmask representing the physics layers to check in, and another bitmask for the types of objects to check (see TYPE_MASK\_\* constants). .. _class_Physics2DDirectSpaceState_intersect_ray: @@ -128,7 +128,7 @@ rid: :ref:`RID` of the object against which the ray was stopped. If the ray did not intersect anything, then an empty dictionary (dir.empty()==true) is returned instead. -Additionally, the method can take an array of objects or :ref:`RID`s that are to be excluded from collisions, a bitmask representing the physics layers to check in, and another bitmask for the types of objects to check (see TYPE_MASK\_\* constants). +Additionally, the method can take an array of objects or :ref:`RID`\ s that are to be excluded from collisions, a bitmask representing the physics layers to check in, and another bitmask for the types of objects to check (see TYPE_MASK\_\* constants). .. _class_Physics2DDirectSpaceState_intersect_shape: diff --git a/classes/class_physics2dserver.rst b/classes/class_physics2dserver.rst index 24839238a..a8542b2ec 100644 --- a/classes/class_physics2dserver.rst +++ b/classes/class_physics2dserver.rst @@ -621,13 +621,13 @@ Set whether a body uses a callback function to calculate its own physics (see :r - void **body_set_one_way_collision_direction** **(** :ref:`RID` body, :ref:`Vector2` normal **)** -Set a direction in which bodies can go through the given one. If this value is different from (0,0), any movement within 90 degrees of this vector is considered a valid movement. Set this direction to (0,0) to disable one-way collisions. +Set a direction from which bodies can go through the given one; that is, the passed vector is the normal of the pass-through side of the surface. If this value is different from (0,0), any movement within 90 degrees of the opposite of this vector is considered an valid movement. Set this direction to (0,0) to disable one-way collisions. .. _class_Physics2DServer_body_set_one_way_collision_max_depth: - void **body_set_one_way_collision_max_depth** **(** :ref:`RID` body, :ref:`float` depth **)** -Set how far a body can go through the given one, if it allows one-way collisions (see :ref:`body_set_one_way_collision_direction`). +Set how deep at most a body can be with respect to the given one for the physics server to force it to a non-overlapping position, if it allows one-way collisions (see :ref:`body_set_one_way_collision_direction`). .. _class_Physics2DServer_body_set_param: diff --git a/classes/class_physics2dshapequeryparameters.rst b/classes/class_physics2dshapequeryparameters.rst index e88a2f09e..93adff61b 100644 --- a/classes/class_physics2dshapequeryparameters.rst +++ b/classes/class_physics2dshapequeryparameters.rst @@ -62,7 +62,7 @@ Member Function Description - :ref:`Array` **get_exclude** **(** **)** const -Return the list of objects, or object :ref:`RID`s, that will be excluded from collisions. +Return the list of objects, or object :ref:`RID`\ s, that will be excluded from collisions. .. _class_Physics2DShapeQueryParameters_get_layer_mask: @@ -104,7 +104,7 @@ Return the transform matrix of the shape queried. - void **set_exclude** **(** :ref:`Array` exclude **)** -Set the list of objects, or object :ref:`RID`s, that will be excluded from collisions. +Set the list of objects, or object :ref:`RID`\ s, that will be excluded from collisions. .. _class_Physics2DShapeQueryParameters_set_layer_mask: diff --git a/classes/class_physicsbody2d.rst b/classes/class_physicsbody2d.rst index d0fcbe7d8..473d085d2 100644 --- a/classes/class_physicsbody2d.rst +++ b/classes/class_physicsbody2d.rst @@ -138,12 +138,12 @@ Set/clear individual bits on the layer mask. This makes getting a body in/out of - void **set_one_way_collision_direction** **(** :ref:`Vector2` dir **)** -Set a direction in which bodies can go through this one. If this value is different from (0,0), any movement within 90 degrees of this vector is considered a valid movement. Set this direction to (0,0) to disable one-way collisions. +Set a direction from which bodies can go through this one; that is, the passed vector is the normal of the pass-through side of the surface. If this value is different from (0,0), any movement within 90 degrees of the opposite of this vector is considered an valid movement. Set this direction to (0,0) to disable one-way collisions. .. _class_PhysicsBody2D_set_one_way_collision_max_depth: - void **set_one_way_collision_max_depth** **(** :ref:`float` depth **)** -Set how far a body can go through this one, when it allows one-way collisions (see :ref:`set_one_way_collision_direction`). +Set how deep at most a body can be with respect to this one for the physics server to force it to a non-overlapping position, if it allows one-way collisions (see :ref:`body_set_one_way_collision_direction`). diff --git a/classes/class_rect2.rst b/classes/class_rect2.rst index b5c45c129..3314a834c 100644 --- a/classes/class_rect2.rst +++ b/classes/class_rect2.rst @@ -16,29 +16,33 @@ Brief Description Member Functions ---------------- -+----------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ -| :ref:`Rect2` | :ref:`Rect2` **(** :ref:`Vector2` pos, :ref:`Vector2` size **)** | -+----------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ -| :ref:`Rect2` | :ref:`Rect2` **(** :ref:`float` x, :ref:`float` y, :ref:`float` width, :ref:`float` height **)** | -+----------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ -| :ref:`Rect2` | :ref:`clip` **(** :ref:`Rect2` b **)** | -+----------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ -| :ref:`bool` | :ref:`encloses` **(** :ref:`Rect2` b **)** | -+----------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ -| :ref:`Rect2` | :ref:`expand` **(** :ref:`Vector2` to **)** | -+----------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ -| :ref:`float` | :ref:`get_area` **(** **)** | -+----------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ -| :ref:`Rect2` | :ref:`grow` **(** :ref:`float` by **)** | -+----------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ -| :ref:`bool` | :ref:`has_no_area` **(** **)** | -+----------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ -| :ref:`bool` | :ref:`has_point` **(** :ref:`Vector2` point **)** | -+----------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ -| :ref:`bool` | :ref:`intersects` **(** :ref:`Rect2` b **)** | -+----------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ -| :ref:`Rect2` | :ref:`merge` **(** :ref:`Rect2` b **)** | -+----------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ ++----------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| :ref:`Rect2` | :ref:`Rect2` **(** :ref:`Vector2` pos, :ref:`Vector2` size **)** | ++----------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| :ref:`Rect2` | :ref:`Rect2` **(** :ref:`float` x, :ref:`float` y, :ref:`float` width, :ref:`float` height **)** | ++----------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| :ref:`Rect2` | :ref:`clip` **(** :ref:`Rect2` b **)** | ++----------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| :ref:`bool` | :ref:`encloses` **(** :ref:`Rect2` b **)** | ++----------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| :ref:`Rect2` | :ref:`expand` **(** :ref:`Vector2` to **)** | ++----------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| :ref:`float` | :ref:`get_area` **(** **)** | ++----------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| :ref:`Rect2` | :ref:`grow` **(** :ref:`float` by **)** | ++----------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| :ref:`Rect2` | :ref:`grow_individual` **(** :ref:`float` left, :ref:`float` top, :ref:`float` right, :ref:`float` bottom **)** | ++----------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| :ref:`Rect2` | :ref:`grow_margin` **(** :ref:`int` margin, :ref:`float` by **)** | ++----------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| :ref:`bool` | :ref:`has_no_area` **(** **)** | ++----------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| :ref:`bool` | :ref:`has_point` **(** :ref:`Vector2` point **)** | ++----------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| :ref:`bool` | :ref:`intersects` **(** :ref:`Rect2` b **)** | ++----------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| :ref:`Rect2` | :ref:`merge` **(** :ref:`Rect2` b **)** | ++----------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ Member Variables ---------------- @@ -97,6 +101,14 @@ Get the area of the :ref:`Rect2`. Return a copy of the :ref:`Rect2` grown a given amount of units towards all the sides. +.. _class_Rect2_grow_individual: + +- :ref:`Rect2` **grow_individual** **(** :ref:`float` left, :ref:`float` top, :ref:`float` right, :ref:`float` bottom **)** + +.. _class_Rect2_grow_margin: + +- :ref:`Rect2` **grow_margin** **(** :ref:`int` margin, :ref:`float` by **)** + .. _class_Rect2_has_no_area: - :ref:`bool` **has_no_area** **(** **)** diff --git a/classes/class_regex.rst b/classes/class_regex.rst index 7c969861c..5133f1806 100644 --- a/classes/class_regex.rst +++ b/classes/class_regex.rst @@ -51,9 +51,9 @@ would be read by RegEx as ``\d+`` Similarly: -``exp.compile("\"(?:\\\\.|:ref:`^\"`)\*\"")`` +``exp.compile("\"(?:\\\\.|[^\"])\*\"")`` -would be read as ``"(?:\\.|:ref:`^"`)\*"`` +would be read as ``"(?:\\.|[^"])\*"`` Currently supported features: @@ -63,7 +63,7 @@ Currently supported features: \* Shorthand character classes ``\w \W \s \S \d \D`` -\* User-defined character classes such as ``:ref:`A-Za-z``` +\* User-defined character classes such as ``[A-Za-z]`` \* Simple quantifiers ``?``, ``\*`` and ``+`` @@ -77,7 +77,7 @@ Currently supported features: \* Backreferences ``\1`` and ``\g{1}`` -\* POSIX character classes ``:ref:`[:alnum:`]`` +\* POSIX character classes ``[[:alnum:]]`` \* Lookahead ``(?=)``, ``(?!)`` and lookbehind ``(?<=)``, ``(?` **<** :ref:`Object` -**Inherited By:** :ref:`Theme`, :ref:`AudioStream`, :ref:`EventStream`, :ref:`CubeMap`, :ref:`DynamicFontData`, :ref:`Translation`, :ref:`Curve2D`, :ref:`Shape`, :ref:`Shape2D`, :ref:`Shader`, :ref:`ColorRamp`, :ref:`StyleBox`, :ref:`Environment`, :ref:`Material`, :ref:`VideoStream`, :ref:`RoomBounds`, :ref:`PackedScene`, :ref:`Texture`, :ref:`Script`, :ref:`OccluderPolygon2D`, :ref:`Mesh`, :ref:`TileSet`, :ref:`ShortCut`, :ref:`BitMap`, :ref:`Animation`, :ref:`Sample`, :ref:`PolygonPathFinder`, :ref:`BakedLight`, :ref:`World`, :ref:`SampleLibrary`, :ref:`World2D`, :ref:`Font`, :ref:`SpriteFrames`, :ref:`MeshLibrary`, :ref:`Curve3D`, :ref:`NavigationPolygon`, :ref:`EditorSettings`, :ref:`MultiMesh`, :ref:`CanvasItemMaterial`, :ref:`PackedDataContainer`, :ref:`NavigationMesh` +**Inherited By:** :ref:`Theme`, :ref:`AudioStream`, :ref:`EventStream`, :ref:`CubeMap`, :ref:`DynamicFontData`, :ref:`Translation`, :ref:`Curve2D`, :ref:`Shape`, :ref:`Shape2D`, :ref:`Shader`, :ref:`ColorRamp`, :ref:`StyleBox`, :ref:`Material`, :ref:`VideoStream`, :ref:`RoomBounds`, :ref:`PackedScene`, :ref:`Texture`, :ref:`Script`, :ref:`OccluderPolygon2D`, :ref:`Mesh`, :ref:`TileSet`, :ref:`ShortCut`, :ref:`BitMap`, :ref:`Animation`, :ref:`Sample`, :ref:`PolygonPathFinder`, :ref:`BakedLight`, :ref:`World`, :ref:`SampleLibrary`, :ref:`World2D`, :ref:`Font`, :ref:`SpriteFrames`, :ref:`MeshLibrary`, :ref:`Curve3D`, :ref:`NavigationPolygon`, :ref:`EditorSettings`, :ref:`Environment`, :ref:`MultiMesh`, :ref:`CanvasItemMaterial`, :ref:`PackedDataContainer`, :ref:`NavigationMesh` **Category:** Core diff --git a/classes/class_richtextlabel.rst b/classes/class_richtextlabel.rst index 5f7a14d9f..1193e2498 100644 --- a/classes/class_richtextlabel.rst +++ b/classes/class_richtextlabel.rst @@ -18,83 +18,89 @@ Label that displays rich text. Member Functions ---------------- -+------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ -| void | :ref:`add_image` **(** :ref:`Texture` image **)** | -+------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ -| void | :ref:`add_text` **(** :ref:`String` text **)** | -+------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ -| :ref:`int` | :ref:`append_bbcode` **(** :ref:`String` bbcode **)** | -+------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ -| void | :ref:`clear` **(** **)** | -+------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ -| :ref:`String` | :ref:`get_bbcode` **(** **)** const | -+------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ -| :ref:`int` | :ref:`get_tab_size` **(** **)** const | -+------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ -| :ref:`String` | :ref:`get_text` **(** **)** | -+------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ -| :ref:`int` | :ref:`get_total_character_count` **(** **)** const | -+------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ -| :ref:`Object` | :ref:`get_v_scroll` **(** **)** | -+------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ -| :ref:`int` | :ref:`get_visible_characters` **(** **)** const | -+------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ -| :ref:`bool` | :ref:`is_meta_underlined` **(** **)** const | -+------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ -| :ref:`bool` | :ref:`is_scroll_active` **(** **)** const | -+------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ -| :ref:`bool` | :ref:`is_scroll_following` **(** **)** const | -+------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ -| :ref:`bool` | :ref:`is_selection_enabled` **(** **)** const | -+------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ -| :ref:`bool` | :ref:`is_using_bbcode` **(** **)** const | -+------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ -| void | :ref:`newline` **(** **)** | -+------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ -| :ref:`int` | :ref:`parse_bbcode` **(** :ref:`String` bbcode **)** | -+------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ -| void | :ref:`pop` **(** **)** | -+------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ -| void | :ref:`push_align` **(** :ref:`int` align **)** | -+------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ -| void | :ref:`push_cell` **(** **)** | -+------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ -| void | :ref:`push_color` **(** :ref:`Color` color **)** | -+------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ -| void | :ref:`push_font` **(** :ref:`Object` font **)** | -+------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ -| void | :ref:`push_indent` **(** :ref:`int` level **)** | -+------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ -| void | :ref:`push_list` **(** :ref:`int` type **)** | -+------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ -| void | :ref:`push_meta` **(** :ref:`Variant` data **)** | -+------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ -| void | :ref:`push_table` **(** :ref:`int` columns **)** | -+------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ -| void | :ref:`push_underline` **(** **)** | -+------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ -| :ref:`bool` | :ref:`remove_line` **(** :ref:`int` arg0 **)** | -+------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ -| void | :ref:`scroll_to_line` **(** :ref:`int` line **)** | -+------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ -| void | :ref:`set_bbcode` **(** :ref:`String` text **)** | -+------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ -| void | :ref:`set_meta_underline` **(** :ref:`bool` enable **)** | -+------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ -| void | :ref:`set_scroll_active` **(** :ref:`bool` active **)** | -+------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ -| void | :ref:`set_scroll_follow` **(** :ref:`bool` follow **)** | -+------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ -| void | :ref:`set_selection_enabled` **(** :ref:`bool` enabled **)** | -+------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ -| void | :ref:`set_tab_size` **(** :ref:`int` spaces **)** | -+------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ -| void | :ref:`set_table_column_expand` **(** :ref:`int` column, :ref:`bool` expand, :ref:`int` ratio **)** | -+------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ -| void | :ref:`set_use_bbcode` **(** :ref:`bool` enable **)** | -+------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ -| void | :ref:`set_visible_characters` **(** :ref:`int` amount **)** | -+------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ ++--------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| void | :ref:`add_image` **(** :ref:`Texture` image **)** | ++--------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| void | :ref:`add_text` **(** :ref:`String` text **)** | ++--------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| :ref:`int` | :ref:`append_bbcode` **(** :ref:`String` bbcode **)** | ++--------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| void | :ref:`clear` **(** **)** | ++--------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| :ref:`String` | :ref:`get_bbcode` **(** **)** const | ++--------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| :ref:`float` | :ref:`get_percent_visible` **(** **)** const | ++--------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| :ref:`int` | :ref:`get_tab_size` **(** **)** const | ++--------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| :ref:`String` | :ref:`get_text` **(** **)** | ++--------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| :ref:`int` | :ref:`get_total_character_count` **(** **)** const | ++--------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| :ref:`VScrollBar` | :ref:`get_v_scroll` **(** **)** | ++--------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| :ref:`int` | :ref:`get_visible_characters` **(** **)** const | ++--------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| :ref:`bool` | :ref:`is_meta_underlined` **(** **)** const | ++--------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| :ref:`bool` | :ref:`is_scroll_active` **(** **)** const | ++--------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| :ref:`bool` | :ref:`is_scroll_following` **(** **)** const | ++--------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| :ref:`bool` | :ref:`is_selection_enabled` **(** **)** const | ++--------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| :ref:`bool` | :ref:`is_using_bbcode` **(** **)** const | ++--------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| void | :ref:`newline` **(** **)** | ++--------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| :ref:`int` | :ref:`parse_bbcode` **(** :ref:`String` bbcode **)** | ++--------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| void | :ref:`pop` **(** **)** | ++--------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| void | :ref:`push_align` **(** :ref:`int` align **)** | ++--------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| void | :ref:`push_cell` **(** **)** | ++--------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| void | :ref:`push_color` **(** :ref:`Color` color **)** | ++--------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| void | :ref:`push_font` **(** :ref:`Font` font **)** | ++--------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| void | :ref:`push_indent` **(** :ref:`int` level **)** | ++--------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| void | :ref:`push_list` **(** :ref:`int` type **)** | ++--------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| void | :ref:`push_meta` **(** :ref:`Variant` data **)** | ++--------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| void | :ref:`push_table` **(** :ref:`int` columns **)** | ++--------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| void | :ref:`push_underline` **(** **)** | ++--------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| :ref:`bool` | :ref:`remove_line` **(** :ref:`int` arg0 **)** | ++--------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| void | :ref:`scroll_to_line` **(** :ref:`int` line **)** | ++--------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| void | :ref:`set_bbcode` **(** :ref:`String` text **)** | ++--------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| void | :ref:`set_meta_underline` **(** :ref:`bool` enable **)** | ++--------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| void | :ref:`set_percent_visible` **(** :ref:`float` percent_visible **)** | ++--------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| void | :ref:`set_scroll_active` **(** :ref:`bool` active **)** | ++--------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| void | :ref:`set_scroll_follow` **(** :ref:`bool` follow **)** | ++--------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| void | :ref:`set_selection_enabled` **(** :ref:`bool` enabled **)** | ++--------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| void | :ref:`set_tab_size` **(** :ref:`int` spaces **)** | ++--------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| void | :ref:`set_table_column_expand` **(** :ref:`int` column, :ref:`bool` expand, :ref:`int` ratio **)** | ++--------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| void | :ref:`set_text` **(** :ref:`String` text **)** | ++--------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| void | :ref:`set_use_bbcode` **(** :ref:`bool` enable **)** | ++--------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| void | :ref:`set_visible_characters` **(** :ref:`int` amount **)** | ++--------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ Signals ------- @@ -151,6 +157,10 @@ Member Function Description - :ref:`String` **get_bbcode** **(** **)** const +.. _class_RichTextLabel_get_percent_visible: + +- :ref:`float` **get_percent_visible** **(** **)** const + .. _class_RichTextLabel_get_tab_size: - :ref:`int` **get_tab_size** **(** **)** const @@ -167,7 +177,7 @@ Returns the raw text, stripping out the formatting information. .. _class_RichTextLabel_get_v_scroll: -- :ref:`Object` **get_v_scroll** **(** **)** +- :ref:`VScrollBar` **get_v_scroll** **(** **)** .. _class_RichTextLabel_get_visible_characters: @@ -221,7 +231,7 @@ Return true if selecting the text inside this richtext is allowed. .. _class_RichTextLabel_push_font: -- void **push_font** **(** :ref:`Object` font **)** +- void **push_font** **(** :ref:`Font` font **)** .. _class_RichTextLabel_push_indent: @@ -259,6 +269,10 @@ Return true if selecting the text inside this richtext is allowed. - void **set_meta_underline** **(** :ref:`bool` enable **)** +.. _class_RichTextLabel_set_percent_visible: + +- void **set_percent_visible** **(** :ref:`float` percent_visible **)** + .. _class_RichTextLabel_set_scroll_active: - void **set_scroll_active** **(** :ref:`bool` active **)** @@ -281,6 +295,10 @@ Set to true if selecting the text inside this richtext is allowed. - void **set_table_column_expand** **(** :ref:`int` column, :ref:`bool` expand, :ref:`int` ratio **)** +.. _class_RichTextLabel_set_text: + +- void **set_text** **(** :ref:`String` text **)** + .. _class_RichTextLabel_set_use_bbcode: - void **set_use_bbcode** **(** :ref:`bool` enable **)** diff --git a/classes/class_scrollcontainer.rst b/classes/class_scrollcontainer.rst index 35e8565e5..ad982e69d 100644 --- a/classes/class_scrollcontainer.rst +++ b/classes/class_scrollcontainer.rst @@ -39,7 +39,7 @@ Member Functions Description ----------- -A ScrollContainer node with a :ref:`Control` child and scrollbar child (:ref:`HScrollbar`, :ref:`VScrollBar`, or both) will only draw the Control within the ScrollContainer area. Scrollbars will automatically be drawn at the right (for vertical) or bottom (for horizontal) and will enable dragging to move the viewable Control (and its children) within the ScrollContainer. Scrollbars will also automatically resize the grabber based on the minimum_size of the Control relative to the ScrollContainer. Works great with a :ref:`Panel` control. You can set EXPAND on children size flags, so they will upscale to ScrollContainer size if ScrollContainer size is bigger (scroll is invisible for chosen dimension). +A ScrollContainer node with a :ref:`Control` child and scrollbar child (HScrollbar, :ref:`VScrollBar`, or both) will only draw the Control within the ScrollContainer area. Scrollbars will automatically be drawn at the right (for vertical) or bottom (for horizontal) and will enable dragging to move the viewable Control (and its children) within the ScrollContainer. Scrollbars will also automatically resize the grabber based on the minimum_size of the Control relative to the ScrollContainer. Works great with a :ref:`Panel` control. You can set EXPAND on children size flags, so they will upscale to ScrollContainer size if ScrollContainer size is bigger (scroll is invisible for chosen dimension). Member Function Description --------------------------- diff --git a/classes/class_splitcontainer.rst b/classes/class_splitcontainer.rst index f6477814b..38ec4829e 100644 --- a/classes/class_splitcontainer.rst +++ b/classes/class_splitcontainer.rst @@ -60,7 +60,7 @@ Member Function Description - :ref:`int` **get_dragger_visibility** **(** **)** const -Return visibility of the split dragger(One of :ref:`DRAGGER_VISIBLE`, :ref:`DRAGGER_HIDDEN` or :ref:`DRAGGER_HIDDEN_COLLAPSED`). +Return visibility of the split dragger(One of DRAGGER_VISIBLE, DRAGGER_HIDDEN or DRAGGER_HIDDEN_COLLAPSED). .. _class_SplitContainer_get_split_offset: @@ -84,7 +84,7 @@ Set if the split must be collapsed. - void **set_dragger_visibility** **(** :ref:`int` mode **)** -Set visibility of the split dragger(*mode* must be one of :ref:`DRAGGER_VISIBLE`, :ref:`DRAGGER_HIDDEN` or :ref:`DRAGGER_HIDDEN_COLLAPSED`). +Set visibility of the split dragger(*mode* must be one of DRAGGER_VISIBLE, DRAGGER_HIDDEN or DRAGGER_HIDDEN_COLLAPSED). .. _class_SplitContainer_set_split_offset: diff --git a/classes/class_spritebase3d.rst b/classes/class_spritebase3d.rst index 124ac4596..8be93717a 100644 --- a/classes/class_spritebase3d.rst +++ b/classes/class_spritebase3d.rst @@ -69,7 +69,9 @@ Numeric Constants - **FLAG_TRANSPARENT** = **0** - **FLAG_SHADED** = **1** -- **FLAG_MAX** = **2** +- **FLAG_DOUBLE_SIDED** = **2** +- **FLAG_ONTOP** = **3** +- **FLAG_MAX** = **4** - **ALPHA_CUT_DISABLED** = **0** - **ALPHA_CUT_DISCARD** = **1** - **ALPHA_CUT_OPAQUE_PREPASS** = **2** diff --git a/classes/class_staticbody.rst b/classes/class_staticbody.rst index d85a9f18b..cea2c7d17 100644 --- a/classes/class_staticbody.rst +++ b/classes/class_staticbody.rst @@ -39,7 +39,7 @@ Member Functions Description ----------- -Static body for 3D Physics. A static body is a simple body that is not intended to move. They don't consume any CPU resources in contrast to a :ref:`RigidBody3D` so they are great for scenario collision. +Static body for 3D Physics. A static body is a simple body that is not intended to move. They don't consume any CPU resources in contrast to a RigidBody3D so they are great for scenario collision. A static body can also be animated by using simulated motion mode. This is useful for implementing functionalities such as moving platforms. When this mode is active the body can be animated and automatically computes linear and angular velocity to apply in that frame and to influence other bodies. diff --git a/classes/class_streampeer.rst b/classes/class_streampeer.rst index 95d720856..7d1462383 100644 --- a/classes/class_streampeer.rst +++ b/classes/class_streampeer.rst @@ -8,7 +8,7 @@ StreamPeer **Inherits:** :ref:`Reference` **<** :ref:`Object` -**Inherited By:** :ref:`StreamPeerSSL`, :ref:`StreamPeerTCP` +**Inherited By:** :ref:`StreamPeerBuffer`, :ref:`StreamPeerSSL`, :ref:`StreamPeerTCP` **Category:** Core diff --git a/classes/class_streampeerbuffer.rst b/classes/class_streampeerbuffer.rst new file mode 100644 index 000000000..e8d435059 --- /dev/null +++ b/classes/class_streampeerbuffer.rst @@ -0,0 +1,74 @@ +.. Generated automatically by doc/tools/makerst.py in Godot's source tree. +.. DO NOT EDIT THIS FILE, but the doc/base/classes.xml source instead. + +.. _class_StreamPeerBuffer: + +StreamPeerBuffer +================ + +**Inherits:** :ref:`StreamPeer` **<** :ref:`Reference` **<** :ref:`Object` + +**Category:** Core + +Brief Description +----------------- + + + +Member Functions +---------------- + ++----------------------------------+-----------------------------------------------------------------------------------------------------------------+ +| void | :ref:`clear` **(** **)** | ++----------------------------------+-----------------------------------------------------------------------------------------------------------------+ +| :ref:`Object` | :ref:`duplicate` **(** **)** const | ++----------------------------------+-----------------------------------------------------------------------------------------------------------------+ +| :ref:`RawArray` | :ref:`get_data_array` **(** **)** const | ++----------------------------------+-----------------------------------------------------------------------------------------------------------------+ +| :ref:`int` | :ref:`get_pos` **(** **)** const | ++----------------------------------+-----------------------------------------------------------------------------------------------------------------+ +| :ref:`int` | :ref:`get_size` **(** **)** const | ++----------------------------------+-----------------------------------------------------------------------------------------------------------------+ +| void | :ref:`resize` **(** :ref:`int` size **)** | ++----------------------------------+-----------------------------------------------------------------------------------------------------------------+ +| void | :ref:`seek` **(** :ref:`int` pos **)** | ++----------------------------------+-----------------------------------------------------------------------------------------------------------------+ +| void | :ref:`set_data_array` **(** :ref:`RawArray` data **)** | ++----------------------------------+-----------------------------------------------------------------------------------------------------------------+ + +Member Function Description +--------------------------- + +.. _class_StreamPeerBuffer_clear: + +- void **clear** **(** **)** + +.. _class_StreamPeerBuffer_duplicate: + +- :ref:`Object` **duplicate** **(** **)** const + +.. _class_StreamPeerBuffer_get_data_array: + +- :ref:`RawArray` **get_data_array** **(** **)** const + +.. _class_StreamPeerBuffer_get_pos: + +- :ref:`int` **get_pos** **(** **)** const + +.. _class_StreamPeerBuffer_get_size: + +- :ref:`int` **get_size** **(** **)** const + +.. _class_StreamPeerBuffer_resize: + +- void **resize** **(** :ref:`int` size **)** + +.. _class_StreamPeerBuffer_seek: + +- void **seek** **(** :ref:`int` pos **)** + +.. _class_StreamPeerBuffer_set_data_array: + +- void **set_data_array** **(** :ref:`RawArray` data **)** + + diff --git a/classes/class_streampeertcp.rst b/classes/class_streampeertcp.rst index 469894533..8eee379cb 100644 --- a/classes/class_streampeertcp.rst +++ b/classes/class_streampeertcp.rst @@ -52,7 +52,7 @@ Member Function Description - :ref:`int` **connect** **(** :ref:`String` host, :ref:`int` port **)** -Connect to the specified host:port pair. A hostname will be resolved if valid. Returns :ref:`OK` on success or :ref:`FAILED` on failure. +Connect to the specified host:port pair. A hostname will be resolved if valid. Returns OK on success or FAILED on failure. .. _class_StreamPeerTCP_disconnect: diff --git a/classes/class_string.rst b/classes/class_string.rst index ce34366fc..5b0d97332 100644 --- a/classes/class_string.rst +++ b/classes/class_string.rst @@ -95,6 +95,8 @@ Member Functions +----------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`findn` **(** :ref:`String` what, :ref:`int` from=0 **)** | +----------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------+ +| :ref:`String` | :ref:`format` **(** var values, :ref:`String` placeholder={_} **)** | ++----------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`String` | :ref:`get_base_dir` **(** **)** | +----------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`String` | :ref:`get_file` **(** **)** | @@ -384,6 +386,10 @@ Find the last occurrence of a substring, return the starting position of the sub Find the first occurrence of a substring but search as case-insensitive, return the starting position of the substring or -1 if not found. Optionally, the initial search index can be passed. +.. _class_String_format: + +- :ref:`String` **format** **(** var values, :ref:`String` placeholder={_} **)** + .. _class_String_get_base_dir: - :ref:`String` **get_base_dir** **(** **)** @@ -602,13 +608,13 @@ Return the similarity index of the text compared to this string. 1 means totally - :ref:`StringArray` **split** **(** :ref:`String` divisor, :ref:`bool` allow_empty=True **)** -Split the string by a divisor string, return an array of the substrings. Example "One,Two,Three" will return :ref:`"One","Two","Three"` if split by ",". +Split the string by a divisor string, return an array of the substrings. Example "One,Two,Three" will return "One","Two","Three" if split by ",". .. _class_String_split_floats: - :ref:`RealArray` **split_floats** **(** :ref:`String` divisor, :ref:`bool` allow_empty=True **)** -Split the string in floats by using a divisor string, return an array of the substrings. Example "1,2.5,3" will return :ref:`1,2.5,3` if split by ",". +Split the string in floats by using a divisor string, return an array of the substrings. Example "1,2.5,3" will return 1,2.5,3 if split by ",". .. _class_String_strip_edges: diff --git a/classes/class_surfacetool.rst b/classes/class_surfacetool.rst index 9ffb5d08a..cfaa9782a 100644 --- a/classes/class_surfacetool.rst +++ b/classes/class_surfacetool.rst @@ -31,6 +31,8 @@ Member Functions +--------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`add_tangent` **(** :ref:`Plane` tangent **)** | +--------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| void | :ref:`add_to_format` **(** :ref:`int` flags **)** | ++--------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`add_triangle_fan` **(** :ref:`Vector3Array` vertexes, :ref:`Vector2Array` uvs=Vector2Array([]), :ref:`ColorArray` colors=ColorArray([ColorArray]), :ref:`Vector2Array` uv2s=Vector2Array([]), :ref:`Vector3Array` normals=Vector3Array([]), :ref:`Array` tangents=Array() **)** | +--------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`add_uv` **(** :ref:`Vector2` uv **)** | @@ -41,16 +43,22 @@ Member Functions +--------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`add_weights` **(** :ref:`RealArray` weights **)** | +--------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| void | :ref:`append_from` **(** :ref:`Mesh` existing, :ref:`int` surface, :ref:`Transform` transform **)** | ++--------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`begin` **(** :ref:`int` primitive **)** | +--------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`clear` **(** **)** | +--------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Mesh` | :ref:`commit` **(** :ref:`Mesh` existing=NULL **)** | +--------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| void | :ref:`create_from` **(** :ref:`Mesh` existing, :ref:`int` surface **)** | ++--------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`deindex` **(** **)** | +--------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`generate_normals` **(** **)** | +--------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| void | :ref:`generate_tangents` **(** **)** | ++--------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`index` **(** **)** | +--------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_material` **(** :ref:`Material` material **)** | @@ -112,6 +120,10 @@ Specify whether current Vertex (if using only Vertex arrays) or current index (i Specify a Tangent for the next Vertex to use. +.. _class_SurfaceTool_add_to_format: + +- void **add_to_format** **(** :ref:`int` flags **)** + .. _class_SurfaceTool_add_triangle_fan: - void **add_triangle_fan** **(** :ref:`Vector3Array` vertexes, :ref:`Vector2Array` uvs=Vector2Array([]), :ref:`ColorArray` colors=ColorArray([ColorArray]), :ref:`Vector2Array` uv2s=Vector2Array([]), :ref:`Vector3Array` normals=Vector3Array([]), :ref:`Array` tangents=Array() **)** @@ -142,6 +154,10 @@ Specify position of current Vertex. Should be called after specifying other vert Specify weight value for next Vertex to use. +.. _class_SurfaceTool_append_from: + +- void **append_from** **(** :ref:`Mesh` existing, :ref:`int` surface, :ref:`Transform` transform **)** + .. _class_SurfaceTool_begin: - void **begin** **(** :ref:`int` primitive **)** @@ -160,6 +176,10 @@ Clear all information passed into the surface tool so far. Returns a constructed :ref:`Mesh` from current information passed in. If an existing :ref:`Mesh` is passed in as an argument, will add an extra surface to the existing :ref:`Mesh`. +.. _class_SurfaceTool_create_from: + +- void **create_from** **(** :ref:`Mesh` existing, :ref:`int` surface **)** + .. _class_SurfaceTool_deindex: - void **deindex** **(** **)** @@ -172,6 +192,10 @@ Removes index array by expanding Vertex array. Generates normals from Vertices so you do not have to do it manually. +.. _class_SurfaceTool_generate_tangents: + +- void **generate_tangents** **(** **)** + .. _class_SurfaceTool_index: - void **index** **(** **)** diff --git a/classes/class_tabcontainer.rst b/classes/class_tabcontainer.rst index f9fa1eb9f..521140b6a 100644 --- a/classes/class_tabcontainer.rst +++ b/classes/class_tabcontainer.rst @@ -57,7 +57,7 @@ Signals - **pre_popup_pressed** **(** **)** - **tab_changed** **(** :ref:`int` tab **)** -Emitted when a tab gets selected. Same behavior as :ref:`tab_selected` signal for backward compatibility. Note: In Godot v3.0+ this will change to be only emitted when tab gets changed. +Emitted when a tab gets selected. Same behavior as tab_selected signal for backward compatibility. Note: In Godot v3.0+ this will change to be only emitted when tab gets changed. - **tab_selected** **(** :ref:`int` tab **)** Emitted when a tab is being selected, even if it is the same tab. diff --git a/classes/class_tabs.rst b/classes/class_tabs.rst index 7dfe2500f..40f6c246d 100644 --- a/classes/class_tabs.rst +++ b/classes/class_tabs.rst @@ -18,31 +18,31 @@ Tabs Control. Member Functions ---------------- -+--------------------------------+-------------------------------------------------------------------------------------------------------------------------------+ -| void | :ref:`add_tab` **(** :ref:`String` title, :ref:`Texture` icon **)** | -+--------------------------------+-------------------------------------------------------------------------------------------------------------------------------+ -| void | :ref:`ensure_tab_visible` **(** :ref:`int` idx **)** | -+--------------------------------+-------------------------------------------------------------------------------------------------------------------------------+ -| :ref:`int` | :ref:`get_current_tab` **(** **)** const | -+--------------------------------+-------------------------------------------------------------------------------------------------------------------------------+ -| :ref:`int` | :ref:`get_tab_align` **(** **)** const | -+--------------------------------+-------------------------------------------------------------------------------------------------------------------------------+ -| :ref:`int` | :ref:`get_tab_count` **(** **)** const | -+--------------------------------+-------------------------------------------------------------------------------------------------------------------------------+ -| :ref:`Texture` | :ref:`get_tab_icon` **(** :ref:`int` tab_idx **)** const | -+--------------------------------+-------------------------------------------------------------------------------------------------------------------------------+ -| :ref:`String` | :ref:`get_tab_title` **(** :ref:`int` tab_idx **)** const | -+--------------------------------+-------------------------------------------------------------------------------------------------------------------------------+ -| void | :ref:`remove_tab` **(** :ref:`int` tab_idx **)** | -+--------------------------------+-------------------------------------------------------------------------------------------------------------------------------+ -| void | :ref:`set_current_tab` **(** :ref:`int` tab_idx **)** | -+--------------------------------+-------------------------------------------------------------------------------------------------------------------------------+ -| void | :ref:`set_tab_align` **(** :ref:`int` align **)** | -+--------------------------------+-------------------------------------------------------------------------------------------------------------------------------+ -| void | :ref:`set_tab_icon` **(** :ref:`int` tab_idx, :ref:`Texture` icon **)** | -+--------------------------------+-------------------------------------------------------------------------------------------------------------------------------+ -| void | :ref:`set_tab_title` **(** :ref:`int` tab_idx, :ref:`String` title **)** | -+--------------------------------+-------------------------------------------------------------------------------------------------------------------------------+ ++--------------------------------+--------------------------------------------------------------------------------------------------------------------------------+ +| void | :ref:`add_tab` **(** :ref:`String` title="", :ref:`Texture` icon=NULL **)** | ++--------------------------------+--------------------------------------------------------------------------------------------------------------------------------+ +| void | :ref:`ensure_tab_visible` **(** :ref:`int` idx **)** | ++--------------------------------+--------------------------------------------------------------------------------------------------------------------------------+ +| :ref:`int` | :ref:`get_current_tab` **(** **)** const | ++--------------------------------+--------------------------------------------------------------------------------------------------------------------------------+ +| :ref:`int` | :ref:`get_tab_align` **(** **)** const | ++--------------------------------+--------------------------------------------------------------------------------------------------------------------------------+ +| :ref:`int` | :ref:`get_tab_count` **(** **)** const | ++--------------------------------+--------------------------------------------------------------------------------------------------------------------------------+ +| :ref:`Texture` | :ref:`get_tab_icon` **(** :ref:`int` tab_idx **)** const | ++--------------------------------+--------------------------------------------------------------------------------------------------------------------------------+ +| :ref:`String` | :ref:`get_tab_title` **(** :ref:`int` tab_idx **)** const | ++--------------------------------+--------------------------------------------------------------------------------------------------------------------------------+ +| void | :ref:`remove_tab` **(** :ref:`int` tab_idx **)** | ++--------------------------------+--------------------------------------------------------------------------------------------------------------------------------+ +| void | :ref:`set_current_tab` **(** :ref:`int` tab_idx **)** | ++--------------------------------+--------------------------------------------------------------------------------------------------------------------------------+ +| void | :ref:`set_tab_align` **(** :ref:`int` align **)** | ++--------------------------------+--------------------------------------------------------------------------------------------------------------------------------+ +| void | :ref:`set_tab_icon` **(** :ref:`int` tab_idx, :ref:`Texture` icon **)** | ++--------------------------------+--------------------------------------------------------------------------------------------------------------------------------+ +| void | :ref:`set_tab_title` **(** :ref:`int` tab_idx, :ref:`String` title **)** | ++--------------------------------+--------------------------------------------------------------------------------------------------------------------------------+ Signals ------- @@ -71,7 +71,7 @@ Member Function Description .. _class_Tabs_add_tab: -- void **add_tab** **(** :ref:`String` title, :ref:`Texture` icon **)** +- void **add_tab** **(** :ref:`String` title="", :ref:`Texture` icon=NULL **)** .. _class_Tabs_ensure_tab_visible: diff --git a/classes/class_thread.rst b/classes/class_thread.rst index fb33247a8..710338158 100644 --- a/classes/class_thread.rst +++ b/classes/class_thread.rst @@ -38,7 +38,7 @@ Numeric Constants Description ----------- -A unit of execution in a process. Can run methods on :ref:`Object`s simultaneously. The use of synchronization via :ref:`Mutex`, :ref:`Semaphore` is advised if working with shared objects. +A unit of execution in a process. Can run methods on :ref:`Object`\ s simultaneously. The use of synchronization via :ref:`Mutex`, :ref:`Semaphore` is advised if working with shared objects. Member Function Description --------------------------- diff --git a/classes/class_tilemap.rst b/classes/class_tilemap.rst index 37d993c2a..9867b657c 100644 --- a/classes/class_tilemap.rst +++ b/classes/class_tilemap.rst @@ -61,6 +61,8 @@ Member Functions +----------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Array` | :ref:`get_used_cells` **(** **)** const | +----------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| :ref:`Array` | :ref:`get_used_cells_by_id` **(** :ref:`int` id **)** const | ++----------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Rect2` | :ref:`get_used_rect` **(** **)** | +----------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`is_cell_transposed` **(** :ref:`int` x, :ref:`int` y **)** const | @@ -267,6 +269,10 @@ Return the current tileset. Return an array of all cells containing a tile from the tileset (i.e. a tile index different from -1). +.. _class_TileMap_get_used_cells_by_id: + +- :ref:`Array` **get_used_cells_by_id** **(** :ref:`int` id **)** const + .. _class_TileMap_get_used_rect: - :ref:`Rect2` **get_used_rect** **(** **)** diff --git a/classes/class_tween.rst b/classes/class_tween.rst index e94f32d8a..3989b2623 100644 --- a/classes/class_tween.rst +++ b/classes/class_tween.rst @@ -174,7 +174,7 @@ Call ``callback`` of ``object`` after ``times_in_sec``. ``arg1``-``arg5`` are ar - :ref:`bool` **interpolate_deferred_callback** **(** :ref:`Object` object, :ref:`float` times_in_sec, :ref:`String` callback, :ref:`Variant` arg1=NULL, :ref:`Variant` arg2=NULL, :ref:`Variant` arg3=NULL, :ref:`Variant` arg4=NULL, :ref:`Variant` arg5=NULL **)** -Call ``callback`` of ``object`` after ``times_in_sec`` on the main thread (similar to :ref:`methog Object.call_deferred). [code`arg1``-``arg5`` are arguments to be passed to the callback. +Call ``callback`` of ``object`` after ``times_in_sec`` on the main thread (similar to methog Object.call_deferred). [codearg1``-``arg5`` are arguments to be passed to the callback. .. _class_Tween_interpolate_method: diff --git a/classes/class_vector2.rst b/classes/class_vector2.rst index ec748f66a..ab6b4cbdf 100644 --- a/classes/class_vector2.rst +++ b/classes/class_vector2.rst @@ -88,6 +88,8 @@ Constructs a new Vector2 from the given x and y. - :ref:`Vector2` **abs** **(** **)** +Returns a new vector with all components in absolute values (i.e. positive). + .. _class_Vector2_angle: - :ref:`float` **angle** **(** **)** @@ -112,6 +114,8 @@ Returns the angle in radians between the line connecting the two points and the - :ref:`Vector2` **clamped** **(** :ref:`float` length **)** +Returns the vector with a maximum length. + .. _class_Vector2_cubic_interpolate: - :ref:`Vector2` **cubic_interpolate** **(** :ref:`Vector2` b, :ref:`Vector2` pre_a, :ref:`Vector2` post_b, :ref:`float` t **)** diff --git a/classes/class_vector3.rst b/classes/class_vector3.rst index 96aa8cfc2..edc7a56fc 100644 --- a/classes/class_vector3.rst +++ b/classes/class_vector3.rst @@ -92,7 +92,7 @@ Returns a Vector3 with the given components. - :ref:`Vector3` **abs** **(** **)** -Returns a new vector with all components in absolute values (e.g. positive). +Returns a new vector with all components in absolute values (i.e. positive). .. _class_Vector3_angle_to: diff --git a/classes/class_viewport.rst b/classes/class_viewport.rst index 09359168e..fe6247a46 100644 --- a/classes/class_viewport.rst +++ b/classes/class_viewport.rst @@ -389,7 +389,7 @@ Set the viewport's render target mode. - void **set_canvas_transform** **(** :ref:`Matrix32` xform **)** -Set the canvas transform of the viewport, useful for changing the on-screen positions of all child :ref:`CanvasItem`s. This is relative to the global canvas transform of the viewport. +Set the canvas transform of the viewport, useful for changing the on-screen positions of all child :ref:`CanvasItem`\ s. This is relative to the global canvas transform of the viewport. .. _class_Viewport_set_disable_input: diff --git a/classes/class_viewportsprite.rst b/classes/class_viewportsprite.rst index 97b11a81a..31c1260da 100644 --- a/classes/class_viewportsprite.rst +++ b/classes/class_viewportsprite.rst @@ -39,7 +39,7 @@ Member Functions Description ----------- -Used to display a :ref:`Viewport` node at some position in the world, without having to mess with :ref:`RenderTargetTexture`s. +Used to display a :ref:`Viewport` node at some position in the world, without having to mess with :ref:`RenderTargetTexture`\ s. Member Function Description --------------------------- diff --git a/classes/class_visualserver.rst b/classes/class_visualserver.rst index 69385c3fe..9ad4aaf6e 100644 --- a/classes/class_visualserver.rst +++ b/classes/class_visualserver.rst @@ -297,6 +297,8 @@ Member Functions +------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_default_clear_color` **(** :ref:`Color` arg0 **)** | +------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| void | :ref:`set_time_scale` **(** :ref:`float` arg0 **)** | ++------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`RID` | :ref:`shader_create` **(** :ref:`int` mode=0 **)** | +------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`shader_set_mode` **(** :ref:`RID` shader, :ref:`int` mode **)** | @@ -1030,6 +1032,10 @@ Member Function Description - void **set_default_clear_color** **(** :ref:`Color` arg0 **)** +.. _class_VisualServer_set_time_scale: + +- void **set_time_scale** **(** :ref:`float` arg0 **)** + .. _class_VisualServer_shader_create: - :ref:`RID` **shader_create** **(** :ref:`int` mode=0 **)**