classref: Use code markup for default values/overrides

Sync with godotengine/godot#35357.
Fixes #3071.
This commit is contained in:
Rémi Verschelde
2020-01-20 12:41:39 +01:00
parent 0ac1767a3f
commit 782dd64a19
410 changed files with 9572 additions and 9572 deletions
+25 -25
View File
@@ -34,19 +34,19 @@ Tutorials
Properties
----------
+-------------------------------+--------------------------------------------------------------------------+------------------+
| :ref:`Vector2<class_Vector2>` | :ref:`cast_to<class_RayCast2D_property_cast_to>` | Vector2( 0, 50 ) |
+-------------------------------+--------------------------------------------------------------------------+------------------+
| :ref:`bool<class_bool>` | :ref:`collide_with_areas<class_RayCast2D_property_collide_with_areas>` | false |
+-------------------------------+--------------------------------------------------------------------------+------------------+
| :ref:`bool<class_bool>` | :ref:`collide_with_bodies<class_RayCast2D_property_collide_with_bodies>` | true |
+-------------------------------+--------------------------------------------------------------------------+------------------+
| :ref:`int<class_int>` | :ref:`collision_mask<class_RayCast2D_property_collision_mask>` | 1 |
+-------------------------------+--------------------------------------------------------------------------+------------------+
| :ref:`bool<class_bool>` | :ref:`enabled<class_RayCast2D_property_enabled>` | false |
+-------------------------------+--------------------------------------------------------------------------+------------------+
| :ref:`bool<class_bool>` | :ref:`exclude_parent<class_RayCast2D_property_exclude_parent>` | true |
+-------------------------------+--------------------------------------------------------------------------+------------------+
+-------------------------------+--------------------------------------------------------------------------+----------------------+
| :ref:`Vector2<class_Vector2>` | :ref:`cast_to<class_RayCast2D_property_cast_to>` | ``Vector2( 0, 50 )`` |
+-------------------------------+--------------------------------------------------------------------------+----------------------+
| :ref:`bool<class_bool>` | :ref:`collide_with_areas<class_RayCast2D_property_collide_with_areas>` | ``false`` |
+-------------------------------+--------------------------------------------------------------------------+----------------------+
| :ref:`bool<class_bool>` | :ref:`collide_with_bodies<class_RayCast2D_property_collide_with_bodies>` | ``true`` |
+-------------------------------+--------------------------------------------------------------------------+----------------------+
| :ref:`int<class_int>` | :ref:`collision_mask<class_RayCast2D_property_collision_mask>` | ``1`` |
+-------------------------------+--------------------------------------------------------------------------+----------------------+
| :ref:`bool<class_bool>` | :ref:`enabled<class_RayCast2D_property_enabled>` | ``false`` |
+-------------------------------+--------------------------------------------------------------------------+----------------------+
| :ref:`bool<class_bool>` | :ref:`exclude_parent<class_RayCast2D_property_exclude_parent>` | ``true`` |
+-------------------------------+--------------------------------------------------------------------------+----------------------+
Methods
-------
@@ -86,13 +86,13 @@ Property Descriptions
- :ref:`Vector2<class_Vector2>` **cast_to**
+-----------+--------------------+
| *Default* | Vector2( 0, 50 ) |
+-----------+--------------------+
| *Setter* | set_cast_to(value) |
+-----------+--------------------+
| *Getter* | get_cast_to() |
+-----------+--------------------+
+-----------+----------------------+
| *Default* | ``Vector2( 0, 50 )`` |
+-----------+----------------------+
| *Setter* | set_cast_to(value) |
+-----------+----------------------+
| *Getter* | get_cast_to() |
+-----------+----------------------+
The ray's destination point, relative to the RayCast's ``position``.
@@ -103,7 +103,7 @@ The ray's destination point, relative to the RayCast's ``position``.
- :ref:`bool<class_bool>` **collide_with_areas**
+-----------+---------------------------------+
| *Default* | false |
| *Default* | ``false`` |
+-----------+---------------------------------+
| *Setter* | set_collide_with_areas(value) |
+-----------+---------------------------------+
@@ -119,7 +119,7 @@ If ``true``, collision with :ref:`Area2D<class_Area2D>`\ s will be reported.
- :ref:`bool<class_bool>` **collide_with_bodies**
+-----------+----------------------------------+
| *Default* | true |
| *Default* | ``true`` |
+-----------+----------------------------------+
| *Setter* | set_collide_with_bodies(value) |
+-----------+----------------------------------+
@@ -135,7 +135,7 @@ If ``true``, collision with :ref:`PhysicsBody2D<class_PhysicsBody2D>`\ s will be
- :ref:`int<class_int>` **collision_mask**
+-----------+---------------------------+
| *Default* | 1 |
| *Default* | ``1`` |
+-----------+---------------------------+
| *Setter* | set_collision_mask(value) |
+-----------+---------------------------+
@@ -151,7 +151,7 @@ The ray's collision mask. Only objects in at least one collision layer enabled i
- :ref:`bool<class_bool>` **enabled**
+-----------+--------------------+
| *Default* | false |
| *Default* | ``false`` |
+-----------+--------------------+
| *Setter* | set_enabled(value) |
+-----------+--------------------+
@@ -167,7 +167,7 @@ If ``true``, collisions will be reported.
- :ref:`bool<class_bool>` **exclude_parent**
+-----------+--------------------------------+
| *Default* | true |
| *Default* | ``true`` |
+-----------+--------------------------------+
| *Setter* | set_exclude_parent_body(value) |
+-----------+--------------------------------+