From 65b93d177e334aaa11db9c6cf9350d5280a76afe Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Sat, 10 Sep 2016 17:34:27 -0300 Subject: -Added bindings to the resource filesystem for editor -Added set_child_rect, which was unavailable for script --- tools/editor/editor_plugin.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tools/editor/editor_plugin.cpp') diff --git a/tools/editor/editor_plugin.cpp b/tools/editor/editor_plugin.cpp index 0cfb9c083..55f0e52c8 100644 --- a/tools/editor/editor_plugin.cpp +++ b/tools/editor/editor_plugin.cpp @@ -320,6 +320,10 @@ void EditorPlugin::inspect_object(Object *p_obj,const String& p_for_property) { EditorNode::get_singleton()->push_item(p_obj,p_for_property); } +EditorFileSystem *EditorPlugin::get_resource_file_system() { + return EditorFileSystem::get_singleton(); +} + void EditorPlugin::_bind_methods() { ObjectTypeDB::bind_method(_MD("add_control_to_container","container","control:Control"),&EditorPlugin::add_control_to_container); @@ -337,6 +341,7 @@ void EditorPlugin::_bind_methods() { ObjectTypeDB::bind_method(_MD("remove_export_plugin","plugin:EditorExportPlugin"),&EditorPlugin::remove_export_plugin); ObjectTypeDB::bind_method(_MD("get_resource_previewer:EditorResourcePreview"),&EditorPlugin::get_resource_previewer); + ObjectTypeDB::bind_method(_MD("get_resource_filesystem:EditorFileSystem"),&EditorPlugin::get_resource_file_system); ObjectTypeDB::bind_method(_MD("inspect_object","object","for_property"),&EditorPlugin::inspect_object,DEFVAL(String())); ObjectTypeDB::bind_method(_MD("update_canvas"),&EditorPlugin::update_canvas); -- cgit v1.2.3-70-g09d2