Explorar o código

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.
Jeffrey Steward %!s(int64=10) %!d(string=hai) anos
pai
achega
6e54fa3d47
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      tools/editor/editor_node.cpp

+ 1 - 1
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("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("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("play_pressed") );
 	ADD_SIGNAL( MethodInfo("pause_pressed") );
 	ADD_SIGNAL( MethodInfo("pause_pressed") );