aboutsummaryrefslogtreecommitdiff
path: root/doc/classes
diff options
context:
space:
mode:
authorGeorge Marques2018-02-13 19:21:19 -0200
committerHein-Pieter van Braam2018-02-19 22:18:22 +0100
commita39930c5b909fa0794af65a9127ebfa668a31bb9 (patch)
treefad781cb8236148b09c8a72e026106294e8578e2 /doc/classes
parentc94d8e65775a7a33531840fcd0af641a3be2dcd9 (diff)
downloadgodot-a39930c5b909fa0794af65a9127ebfa668a31bb9.tar.gz
godot-a39930c5b909fa0794af65a9127ebfa668a31bb9.tar.zst
godot-a39930c5b909fa0794af65a9127ebfa668a31bb9.zip
Add a function to remove controls from containers
Closes #5968 (cherry picked from commit da69a0625333304e81e5d706d13e15ccbd414a52)
Diffstat (limited to 'doc/classes')
-rw-r--r--doc/classes/EditorPlugin.xml11
1 files changed, 11 insertions, 0 deletions
diff --git a/doc/classes/EditorPlugin.xml b/doc/classes/EditorPlugin.xml
index 8f4784334..b3aca798a 100644
--- a/doc/classes/EditorPlugin.xml
+++ b/doc/classes/EditorPlugin.xml
@@ -274,6 +274,17 @@
Remove the control from the bottom panel. Don't forget to call this if you added one, so the editor can remove it cleanly.
</description>
</method>
+ <method name="remove_control_from_container">
+ <return type="void">
+ </return>
+ <argument index="0" name="container" type="int" enum="EditorPlugin.CustomControlContainer">
+ </argument>
+ <argument index="1" name="control" type="Control">
+ </argument>
+ <description>
+ Remove the control from the specified container. Use it when cleaning up after adding a control with [method add_control_to_container]. Note that you can simply free the control if you won't use it anymore.
+ </description>
+ </method>
<method name="remove_control_from_docks">
<return type="void">
</return>