diff options
author | MarianoGNU <marianognu.easyrpg@gmail.com> | 2016-07-24 18:05:05 -0300 |
---|---|---|
committer | MarianoGNU <marianognu.easyrpg@gmail.com> | 2016-07-24 18:09:56 -0300 |
commit | 23a20791d1f0c0760c0e22d51c0450b58b0e05f1 (patch) | |
tree | b863205fc83012c7b5d85d6d48cb95736e3907b0 | |
parent | ed094d52a9a281fc0735f633b02adc7f2cf11cf8 (diff) |
Update documentation.
-rw-r--r-- | doc/base/classes.xml | 2 | ||||
-rw-r--r-- | tools/editor/editor_plugin.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/doc/base/classes.xml b/doc/base/classes.xml index 4c2a0fe7ba..d70b11b5ae 100644 --- a/doc/base/classes.xml +++ b/doc/base/classes.xml @@ -11281,7 +11281,7 @@ <argument index="1" name="title" type="String"> </argument> <description> - Add a control to the bottom panel (together with Output, Debug, Animation, etc). If your plugin is being removed, also make sure to remove your control by calling [method remove_control_from_bottom_panel]. + Add a control to the bottom panel (together with Output, Debug, Animation, etc). Returns a reference to the button added. It's up to you to hide/show the button when needed. If your plugin is being removed, also make sure to remove your control by calling [method remove_control_from_bottom_panel]. </description> </method> <method name="add_control_to_container"> diff --git a/tools/editor/editor_plugin.cpp b/tools/editor/editor_plugin.cpp index 2bdd4caebe..0d162cbe56 100644 --- a/tools/editor/editor_plugin.cpp +++ b/tools/editor/editor_plugin.cpp @@ -284,7 +284,7 @@ Control *EditorPlugin::get_base_control() { void EditorPlugin::_bind_methods() { ObjectTypeDB::bind_method(_MD("add_control_to_container","container","control:Control"),&EditorPlugin::add_control_to_container); - ObjectTypeDB::bind_method(_MD("add_control_to_bottom_panel","control:Control","title"),&EditorPlugin::add_control_to_bottom_panel); + ObjectTypeDB::bind_method(_MD("add_control_to_bottom_panel:ToolButton","control:Control","title"),&EditorPlugin::add_control_to_bottom_panel); ObjectTypeDB::bind_method(_MD("add_control_to_dock","slot","control:Control"),&EditorPlugin::add_control_to_dock); ObjectTypeDB::bind_method(_MD("remove_control_from_docks","control:Control"),&EditorPlugin::remove_control_from_docks); ObjectTypeDB::bind_method(_MD("remove_control_from_bottom_panel","control:Control"),&EditorPlugin::remove_control_from_bottom_panel); |