|
@@ -44,9 +44,9 @@ void EditorPlugin::remove_custom_type(const String& p_type){
|
|
|
}
|
|
|
|
|
|
|
|
|
-void EditorPlugin::add_control_to_bottom_panel(Control *p_control, const String &p_title) {
|
|
|
+ToolButton * EditorPlugin::add_control_to_bottom_panel(Control *p_control, const String &p_title) {
|
|
|
|
|
|
- EditorNode::get_singleton()->add_bottom_panel_item(p_title,p_control);
|
|
|
+ return EditorNode::get_singleton()->add_bottom_panel_item(p_title,p_control);
|
|
|
}
|
|
|
|
|
|
void EditorPlugin::add_control_to_dock(DockSlot p_slot,Control *p_control) {
|
|
@@ -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);
|