diff options
author | Jeffrey Steward <nulifier@gmail.com> | 2015-02-10 11:17:48 -0700 |
---|---|---|
committer | Jeffrey Steward <nulifier@gmail.com> | 2015-02-10 11:17:48 -0700 |
commit | 6e54fa3d4755242f70e7ee21389bf679724eb4f2 (patch) | |
tree | 1a4d578e1fb01f82c1f06e7b9704a2b1f69acfec /tools | |
parent | 13dc6f53cabe0f56f6530e104747d70927f62234 (diff) |
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.
Diffstat (limited to 'tools')
-rw-r--r-- | tools/editor/editor_node.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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") ); |