doc: Sync classref with current source
This commit is contained in:
@ -4,13 +4,13 @@
|
|||||||
Plugin for adding custom property editors on inspector.
|
Plugin for adding custom property editors on inspector.
|
||||||
</brief_description>
|
</brief_description>
|
||||||
<description>
|
<description>
|
||||||
This plugins allows adding custom property editors to [EditorInspector].
|
This plugins allows adding custom property editors to [EditorInspector].
|
||||||
Plugins are registered via [method EditorPlugin.add_inspector_plugin].
|
Plugins are registered via [method EditorPlugin.add_inspector_plugin].
|
||||||
When an object is edited, the [method can_handle] function is called and must return true if the object type is supported.
|
When an object is edited, the [method can_handle] function is called and must return true if the object type is supported.
|
||||||
If supported, the function [method parse_begin] will be called, allowing to place custom controls at the beginning of the class.
|
If supported, the function [method parse_begin] will be called, allowing to place custom controls at the beginning of the class.
|
||||||
Subsequently, the [method parse_category] and [method parse_property] are called for every category and property. They offer the ability to add custom controls to the inspector too.
|
Subsequently, the [method parse_category] and [method parse_property] are called for every category and property. They offer the ability to add custom controls to the inspector too.
|
||||||
Finally [method parse_end] will be called.
|
Finally [method parse_end] will be called.
|
||||||
On each of these calls, the "add" functions can be called.
|
On each of these calls, the "add" functions can be called.
|
||||||
</description>
|
</description>
|
||||||
<tutorials>
|
<tutorials>
|
||||||
</tutorials>
|
</tutorials>
|
||||||
|
|||||||
@ -15,7 +15,7 @@
|
|||||||
<argument index="0" name="control" type="Control">
|
<argument index="0" name="control" type="Control">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
If any of the controls added can gain keyboard focus, add it here. This ensures that focus will be restored if the inspector is refreshed.
|
If any of the controls added can gain keyboard focus, add it here. This ensures that focus will be restored if the inspector is refreshed.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="emit_changed">
|
<method name="emit_changed">
|
||||||
@ -60,7 +60,7 @@
|
|||||||
<argument index="0" name="editor" type="Control">
|
<argument index="0" name="editor" type="Control">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
Add controls with this function if you want them on the bottom (below the label).
|
Add controls with this function if you want them on the bottom (below the label).
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="update_property" qualifiers="virtual">
|
<method name="update_property" qualifiers="virtual">
|
||||||
|
|||||||
@ -1,10 +1,10 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" ?>
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
<class name="MeshTexture" inherits="Texture" category="Core" version="3.2">
|
<class name="MeshTexture" inherits="Texture" category="Core" version="3.2">
|
||||||
<brief_description>
|
<brief_description>
|
||||||
Simple texture that uses a mesh to draw itself.
|
Simple texture that uses a mesh to draw itself.
|
||||||
</brief_description>
|
</brief_description>
|
||||||
<description>
|
<description>
|
||||||
Simple texture that uses a mesh to draw itself. It's limited because flags can't be changed and region drawing is not supported.
|
Simple texture that uses a mesh to draw itself. It's limited because flags can't be changed and region drawing is not supported.
|
||||||
</description>
|
</description>
|
||||||
<tutorials>
|
<tutorials>
|
||||||
</tutorials>
|
</tutorials>
|
||||||
@ -12,13 +12,13 @@
|
|||||||
</methods>
|
</methods>
|
||||||
<members>
|
<members>
|
||||||
<member name="base_texture" type="Texture" setter="set_base_texture" getter="get_base_texture">
|
<member name="base_texture" type="Texture" setter="set_base_texture" getter="get_base_texture">
|
||||||
Set the base texture that the Mesh will use to draw.
|
Set the base texture that the Mesh will use to draw.
|
||||||
</member>
|
</member>
|
||||||
<member name="image_size" type="Vector2" setter="set_image_size" getter="get_image_size">
|
<member name="image_size" type="Vector2" setter="set_image_size" getter="get_image_size">
|
||||||
Set the size of the image, needed for reference.
|
Set the size of the image, needed for reference.
|
||||||
</member>
|
</member>
|
||||||
<member name="mesh" type="Mesh" setter="set_mesh" getter="get_mesh">
|
<member name="mesh" type="Mesh" setter="set_mesh" getter="get_mesh">
|
||||||
Set the mesh used to draw. It must be a mesh using 2D vertices.
|
Set the mesh used to draw. It must be a mesh using 2D vertices.
|
||||||
</member>
|
</member>
|
||||||
</members>
|
</members>
|
||||||
<constants>
|
<constants>
|
||||||
|
|||||||
Reference in New Issue
Block a user