Add interface for plugins to enable/disable other plugins

This commit is contained in:
George Marques
2018-01-30 20:11:07 -02:00
parent 20a52aa39d
commit 87be0bc110
3 changed files with 34 additions and 0 deletions

View File

@@ -100,6 +100,15 @@
Shows the given property on the given [code]object[/code] in the Editor's Inspector dock.
</description>
</method>
<method name="is_plugin_enabled" qualifiers="const">
<return type="bool">
</return>
<argument index="0" name="plugin" type="String">
</argument>
<description>
Returns the enabled status of a plugin. The plugin name is the same as its directory name.
</description>
</method>
<method name="make_mesh_previews">
<return type="Array">
</return>
@@ -155,6 +164,17 @@
<description>
</description>
</method>
<method name="set_plugin_enabled">
<return type="void">
</return>
<argument index="0" name="plugin" type="String">
</argument>
<argument index="1" name="enabled" type="bool">
</argument>
<description>
Sets the enabled status of a plugin. The plugin name is the same as its directory name.
</description>
</method>
</methods>
<constants>
</constants>