classref: Add property overview and setter/getter like in editor docs

Output from godotengine/godot#22013.
Fixes #1729.
This commit is contained in:
Rémi Verschelde
2018-09-13 11:06:52 +02:00
parent f9caa4be29
commit ab3f908221
578 changed files with 33831 additions and 6706 deletions

View File

@@ -8,6 +8,7 @@ LightOccluder2D
===============
**Inherits:** :ref:`Node2D<class_Node2D>` **<** :ref:`CanvasItem<class_CanvasItem>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
**Category:** Core
Brief Description
@@ -15,6 +16,15 @@ Brief Description
Occludes light cast by a Light2D, casting shadows.
Properties
----------
+---------------------------------------------------+-----------------------------------------------------+
| :ref:`int<class_int>` | :ref:`light_mask<class_LightOccluder2D_light_mask>` |
+---------------------------------------------------+-----------------------------------------------------+
| :ref:`OccluderPolygon2D<class_OccluderPolygon2D>` | :ref:`occluder<class_LightOccluder2D_occluder>` |
+---------------------------------------------------+-----------------------------------------------------+
Description
-----------
@@ -25,10 +35,25 @@ Property Descriptions
.. _class_LightOccluder2D_light_mask:
- :ref:`int<class_int>` **light_mask** - The LightOccluder2D's light mask. The LightOccluder2D will cast shadows only from Light2D(s) that have the same light mask(s).
- :ref:`int<class_int>` **light_mask**
+----------+--------------------------------+
| *Setter* | set_occluder_light_mask(value) |
+----------+--------------------------------+
| *Getter* | get_occluder_light_mask() |
+----------+--------------------------------+
The LightOccluder2D's light mask. The LightOccluder2D will cast shadows only from Light2D(s) that have the same light mask(s).
.. _class_LightOccluder2D_occluder:
- :ref:`OccluderPolygon2D<class_OccluderPolygon2D>` **occluder** - The :ref:`OccluderPolygon2D<class_OccluderPolygon2D>` used to compute the shadow.
- :ref:`OccluderPolygon2D<class_OccluderPolygon2D>` **occluder**
+----------+-----------------------------+
| *Setter* | set_occluder_polygon(value) |
+----------+-----------------------------+
| *Getter* | get_occluder_polygon() |
+----------+-----------------------------+
The :ref:`OccluderPolygon2D<class_OccluderPolygon2D>` used to compute the shadow.