From 6e54fa3d4755242f70e7ee21389bf679724eb4f2 Mon Sep 17 00:00:00 2001 From: Jeffrey Steward Date: Tue, 10 Feb 2015 11:17:48 -0700 Subject: Added get_gui_base to the EditorNode class to allow for import plugins to create centered Popups. This is the function used by all the built-in import plugins. Without this, the only alternative is to add it to the EditorNode itself which messes up auto-centering and sizing. --- tools/editor/editor_node.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools') diff --git a/tools/editor/editor_node.cpp b/tools/editor/editor_node.cpp index ea903804c5..464911e5a7 100644 --- a/tools/editor/editor_node.cpp +++ b/tools/editor/editor_node.cpp @@ -3180,7 +3180,7 @@ void EditorNode::_bind_methods() { ObjectTypeDB::bind_method(_MD("add_editor_import_plugin", "plugin"), &EditorNode::add_editor_import_plugin); ObjectTypeDB::bind_method(_MD("remove_editor_import_plugin", "plugin"), &EditorNode::remove_editor_import_plugin); - + ObjectTypeDB::bind_method(_MD("get_gui_base"), &EditorNode::get_gui_base); ADD_SIGNAL( MethodInfo("play_pressed") ); ADD_SIGNAL( MethodInfo("pause_pressed") ); -- cgit v1.2.3