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:27 +01:00
parent 0ac1767a3f
commit 782dd64a19
410 changed files with 9572 additions and 9572 deletions

View File

@@ -21,17 +21,17 @@ Provides a 2D collision polygon to a :ref:`CollisionObject2D<class_CollisionObje
Properties
----------
+-----------------------------------------------------+---------------------------------------------------------------------------------------------+----------------------+
| :ref:`BuildMode<enum_CollisionPolygon2D_BuildMode>` | :ref:`build_mode<class_CollisionPolygon2D_property_build_mode>` | 0 |
+-----------------------------------------------------+---------------------------------------------------------------------------------------------+----------------------+
| :ref:`bool<class_bool>` | :ref:`disabled<class_CollisionPolygon2D_property_disabled>` | false |
+-----------------------------------------------------+---------------------------------------------------------------------------------------------+----------------------+
| :ref:`bool<class_bool>` | :ref:`one_way_collision<class_CollisionPolygon2D_property_one_way_collision>` | false |
+-----------------------------------------------------+---------------------------------------------------------------------------------------------+----------------------+
| :ref:`float<class_float>` | :ref:`one_way_collision_margin<class_CollisionPolygon2D_property_one_way_collision_margin>` | 1.0 |
+-----------------------------------------------------+---------------------------------------------------------------------------------------------+----------------------+
| :ref:`PoolVector2Array<class_PoolVector2Array>` | :ref:`polygon<class_CollisionPolygon2D_property_polygon>` | PoolVector2Array( ) |
+-----------------------------------------------------+---------------------------------------------------------------------------------------------+----------------------+
+-----------------------------------------------------+---------------------------------------------------------------------------------------------+--------------------------+
| :ref:`BuildMode<enum_CollisionPolygon2D_BuildMode>` | :ref:`build_mode<class_CollisionPolygon2D_property_build_mode>` | ``0`` |
+-----------------------------------------------------+---------------------------------------------------------------------------------------------+--------------------------+
| :ref:`bool<class_bool>` | :ref:`disabled<class_CollisionPolygon2D_property_disabled>` | ``false`` |
+-----------------------------------------------------+---------------------------------------------------------------------------------------------+--------------------------+
| :ref:`bool<class_bool>` | :ref:`one_way_collision<class_CollisionPolygon2D_property_one_way_collision>` | ``false`` |
+-----------------------------------------------------+---------------------------------------------------------------------------------------------+--------------------------+
| :ref:`float<class_float>` | :ref:`one_way_collision_margin<class_CollisionPolygon2D_property_one_way_collision_margin>` | ``1.0`` |
+-----------------------------------------------------+---------------------------------------------------------------------------------------------+--------------------------+
| :ref:`PoolVector2Array<class_PoolVector2Array>` | :ref:`polygon<class_CollisionPolygon2D_property_polygon>` | ``PoolVector2Array( )`` |
+-----------------------------------------------------+---------------------------------------------------------------------------------------------+--------------------------+
Enumerations
------------
@@ -56,7 +56,7 @@ Property Descriptions
- :ref:`BuildMode<enum_CollisionPolygon2D_BuildMode>` **build_mode**
+-----------+-----------------------+
| *Default* | 0 |
| *Default* | ``0`` |
+-----------+-----------------------+
| *Setter* | set_build_mode(value) |
+-----------+-----------------------+
@@ -72,7 +72,7 @@ Collision build mode. Use one of the :ref:`BuildMode<enum_CollisionPolygon2D_Bui
- :ref:`bool<class_bool>` **disabled**
+-----------+---------------------+
| *Default* | false |
| *Default* | ``false`` |
+-----------+---------------------+
| *Setter* | set_disabled(value) |
+-----------+---------------------+
@@ -88,7 +88,7 @@ If ``true``, no collisions will be detected.
- :ref:`bool<class_bool>` **one_way_collision**
+-----------+--------------------------------+
| *Default* | false |
| *Default* | ``false`` |
+-----------+--------------------------------+
| *Setter* | set_one_way_collision(value) |
+-----------+--------------------------------+
@@ -104,7 +104,7 @@ If ``true``, only edges that face up, relative to ``CollisionPolygon2D``'s rotat
- :ref:`float<class_float>` **one_way_collision_margin**
+-----------+-------------------------------------+
| *Default* | 1.0 |
| *Default* | ``1.0`` |
+-----------+-------------------------------------+
| *Setter* | set_one_way_collision_margin(value) |
+-----------+-------------------------------------+
@@ -117,13 +117,13 @@ If ``true``, only edges that face up, relative to ``CollisionPolygon2D``'s rotat
- :ref:`PoolVector2Array<class_PoolVector2Array>` **polygon**
+-----------+----------------------+
| *Default* | PoolVector2Array( ) |
+-----------+----------------------+
| *Setter* | set_polygon(value) |
+-----------+----------------------+
| *Getter* | get_polygon() |
+-----------+----------------------+
+-----------+--------------------------+
| *Default* | ``PoolVector2Array( )`` |
+-----------+--------------------------+
| *Setter* | set_polygon(value) |
+-----------+--------------------------+
| *Getter* | get_polygon() |
+-----------+--------------------------+
The polygon's list of vertices. The final point will be connected to the first. The returned value is a clone of the :ref:`PoolVector2Array<class_PoolVector2Array>`, not a reference.