mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-04 14:11:02 +03:00
classref: Add property overview and setter/getter like in editor docs
Output from godotengine/godot#22013. Fixes #1729.
This commit is contained in:
@@ -8,6 +8,7 @@ VisualScriptClassConstant
|
||||
=========================
|
||||
|
||||
**Inherits:** :ref:`VisualScriptNode<class_VisualScriptNode>` **<** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
|
||||
|
||||
**Category:** Core
|
||||
|
||||
Brief Description
|
||||
@@ -15,6 +16,15 @@ Brief Description
|
||||
|
||||
Gets a constant from a given class.
|
||||
|
||||
Properties
|
||||
----------
|
||||
|
||||
+-----------------------------+-------------------------------------------------------------+
|
||||
| :ref:`String<class_String>` | :ref:`base_type<class_VisualScriptClassConstant_base_type>` |
|
||||
+-----------------------------+-------------------------------------------------------------+
|
||||
| :ref:`String<class_String>` | :ref:`constant<class_VisualScriptClassConstant_constant>` |
|
||||
+-----------------------------+-------------------------------------------------------------+
|
||||
|
||||
Description
|
||||
-----------
|
||||
|
||||
@@ -33,10 +43,25 @@ Property Descriptions
|
||||
|
||||
.. _class_VisualScriptClassConstant_base_type:
|
||||
|
||||
- :ref:`String<class_String>` **base_type** - The constant's parent class.
|
||||
- :ref:`String<class_String>` **base_type**
|
||||
|
||||
+----------+----------------------+
|
||||
| *Setter* | set_base_type(value) |
|
||||
+----------+----------------------+
|
||||
| *Getter* | get_base_type() |
|
||||
+----------+----------------------+
|
||||
|
||||
The constant's parent class.
|
||||
|
||||
.. _class_VisualScriptClassConstant_constant:
|
||||
|
||||
- :ref:`String<class_String>` **constant** - The constant to return. See the given class for its available constants.
|
||||
- :ref:`String<class_String>` **constant**
|
||||
|
||||
+----------+---------------------------+
|
||||
| *Setter* | set_class_constant(value) |
|
||||
+----------+---------------------------+
|
||||
| *Getter* | get_class_constant() |
|
||||
+----------+---------------------------+
|
||||
|
||||
The constant to return. See the given class for its available constants.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user