2018-05-28 20:53:15 +08:00
<?xml version="1.0" encoding="UTF-8" ?>
2019-04-01 18:33:56 +08:00
<class name= "EditorInspectorPlugin" inherits= "Reference" category= "Core" version= "3.2" >
2018-05-28 20:53:15 +08:00
<brief_description >
2019-04-24 03:39:09 +08:00
Plugin for adding custom property editors on inspector.
2018-05-28 20:53:15 +08:00
</brief_description>
<description >
2019-04-24 03:39:09 +08:00
This plugins allows adding custom property editors to [EditorInspector].
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.
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.
Finally [method parse_end] will be called.
On each of these calls, the "add" functions can be called.
2018-05-28 20:53:15 +08:00
</description>
<tutorials >
</tutorials>
<methods >
<method name= "add_custom_control" >
<return type= "void" >
</return>
<argument index= "0" name= "control" type= "Control" >
</argument>
<description >
2019-04-24 03:39:09 +08:00
Add a custom control, not necesarily a property editor.
2018-05-28 20:53:15 +08:00
</description>
</method>
<method name= "add_property_editor" >
<return type= "void" >
</return>
<argument index= "0" name= "property" type= "String" >
</argument>
<argument index= "1" name= "editor" type= "Control" >
</argument>
<description >
2019-04-24 03:39:09 +08:00
Add a property editor, this must inherit [EditorProperty].
2018-05-28 20:53:15 +08:00
</description>
</method>
<method name= "add_property_editor_for_multiple_properties" >
<return type= "void" >
</return>
<argument index= "0" name= "label" type= "String" >
</argument>
<argument index= "1" name= "properties" type= "PoolStringArray" >
</argument>
<argument index= "2" name= "editor" type= "Control" >
</argument>
<description >
2019-04-24 03:39:09 +08:00
Add am editor that allows modifying multiple properties, this must inherit [EditorProperty].
2018-05-28 20:53:15 +08:00
</description>
</method>
<method name= "can_handle" qualifiers= "virtual" >
2018-05-28 22:28:09 +08:00
<return type= "bool" >
2018-05-28 20:53:15 +08:00
</return>
<argument index= "0" name= "object" type= "Object" >
</argument>
<description >
2019-04-24 03:39:09 +08:00
Return true if this object can be handled by this plugin.
2018-05-28 20:53:15 +08:00
</description>
</method>
<method name= "parse_begin" qualifiers= "virtual" >
<return type= "void" >
</return>
<argument index= "0" name= "object" type= "Object" >
</argument>
<description >
2019-04-24 03:39:09 +08:00
Called to allow adding controls at the beginning of the list.
2018-05-28 20:53:15 +08:00
</description>
</method>
<method name= "parse_category" qualifiers= "virtual" >
<return type= "void" >
</return>
<argument index= "0" name= "object" type= "Object" >
</argument>
<argument index= "1" name= "category" type= "String" >
</argument>
<description >
2019-04-24 03:39:09 +08:00
Called to allow adding controls at the beginning of the category.
2018-05-28 20:53:15 +08:00
</description>
</method>
<method name= "parse_end" qualifiers= "virtual" >
<return type= "void" >
</return>
<description >
2019-04-24 03:39:09 +08:00
Called to allow adding controls at the end of the list.
2018-05-28 20:53:15 +08:00
</description>
</method>
<method name= "parse_property" qualifiers= "virtual" >
<return type= "bool" >
</return>
<argument index= "0" name= "object" type= "Object" >
</argument>
<argument index= "1" name= "type" type= "int" >
</argument>
<argument index= "2" name= "path" type= "String" >
</argument>
<argument index= "3" name= "hint" type= "int" >
</argument>
<argument index= "4" name= "hint_text" type= "String" >
</argument>
<argument index= "5" name= "usage" type= "int" >
</argument>
<description >
2019-04-24 03:39:09 +08:00
Called to allow adding property specific editors to the inspector. Usually these inherit [EditorProperty]
2018-05-28 20:53:15 +08:00
</description>
</method>
</methods>
<constants >
</constants>
</class>