| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | /*************************************************************************/ | 
					
						
							|  |  |  | /*  editor_node.h                                                        */ | 
					
						
							|  |  |  | /*************************************************************************/ | 
					
						
							|  |  |  | /*                       This file is part of:                           */ | 
					
						
							|  |  |  | /*                           GODOT ENGINE                                */ | 
					
						
							| 
									
										
										
										
											2017-08-27 14:16:55 +02:00
										 |  |  | /*                      https://godotengine.org                          */ | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | /*************************************************************************/ | 
					
						
							| 
									
										
										
										
											2021-01-01 20:13:46 +01:00
										 |  |  | /* Copyright (c) 2007-2021 Juan Linietsky, Ariel Manzur.                 */ | 
					
						
							|  |  |  | /* Copyright (c) 2014-2021 Godot Engine contributors (cf. AUTHORS.md).   */ | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | /*                                                                       */ | 
					
						
							|  |  |  | /* Permission is hereby granted, free of charge, to any person obtaining */ | 
					
						
							|  |  |  | /* a copy of this software and associated documentation files (the       */ | 
					
						
							|  |  |  | /* "Software"), to deal in the Software without restriction, including   */ | 
					
						
							|  |  |  | /* without limitation the rights to use, copy, modify, merge, publish,   */ | 
					
						
							|  |  |  | /* distribute, sublicense, and/or sell copies of the Software, and to    */ | 
					
						
							|  |  |  | /* permit persons to whom the Software is furnished to do so, subject to */ | 
					
						
							|  |  |  | /* the following conditions:                                             */ | 
					
						
							|  |  |  | /*                                                                       */ | 
					
						
							|  |  |  | /* The above copyright notice and this permission notice shall be        */ | 
					
						
							|  |  |  | /* included in all copies or substantial portions of the Software.       */ | 
					
						
							|  |  |  | /*                                                                       */ | 
					
						
							|  |  |  | /* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,       */ | 
					
						
							|  |  |  | /* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF    */ | 
					
						
							|  |  |  | /* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.*/ | 
					
						
							|  |  |  | /* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY  */ | 
					
						
							|  |  |  | /* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,  */ | 
					
						
							|  |  |  | /* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE     */ | 
					
						
							|  |  |  | /* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.                */ | 
					
						
							|  |  |  | /*************************************************************************/ | 
					
						
							| 
									
										
										
										
											2018-01-05 00:50:27 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | #ifndef EDITOR_NODE_H
 | 
					
						
							|  |  |  | #define EDITOR_NODE_H
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-02-10 19:22:13 +01:00
										 |  |  | #include "core/templates/safe_refcount.h"
 | 
					
						
							| 
									
										
										
										
											2017-03-05 14:21:25 +01:00
										 |  |  | #include "editor/editor_data.h"
 | 
					
						
							| 
									
										
										
										
											2020-03-16 09:37:43 +01:00
										 |  |  | #include "editor/editor_export.h"
 | 
					
						
							| 
									
										
										
										
											2018-10-29 16:36:31 -03:00
										 |  |  | #include "editor/editor_folding.h"
 | 
					
						
							| 
									
										
										
										
											2021-01-05 20:01:50 -03:00
										 |  |  | #include "editor/editor_native_shader_source_visualizer.h"
 | 
					
						
							| 
									
										
										
										
											2017-03-05 14:21:25 +01:00
										 |  |  | #include "editor/editor_run.h"
 | 
					
						
							| 
									
										
										
										
											2018-05-17 01:01:47 -05:00
										 |  |  | #include "editor/inspector_dock.h"
 | 
					
						
							| 
									
										
										
										
											2017-03-05 16:44:50 +01:00
										 |  |  | #include "editor/property_editor.h"
 | 
					
						
							| 
									
										
										
										
											2017-08-26 17:46:49 +02:00
										 |  |  | #include "editor/scene_tree_dock.h"
 | 
					
						
							| 
									
										
										
										
											2019-05-30 20:16:40 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-02-25 09:31:47 -03:00
										 |  |  | typedef void (*EditorNodeInitCallback)(); | 
					
						
							| 
									
										
										
										
											2016-08-06 19:00:54 -03:00
										 |  |  | typedef void (*EditorPluginInitializeCallback)(); | 
					
						
							| 
									
										
										
										
											2017-08-29 23:59:20 +02:00
										 |  |  | typedef bool (*EditorBuildCallback)(); | 
					
						
							| 
									
										
										
										
											2014-02-25 09:31:47 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-12-24 15:17:23 +08:00
										 |  |  | class AcceptDialog; | 
					
						
							|  |  |  | class AudioStreamPreviewGenerator; | 
					
						
							|  |  |  | class BackgroundProgress; | 
					
						
							|  |  |  | class CenterContainer; | 
					
						
							|  |  |  | class ConfirmationDialog; | 
					
						
							|  |  |  | class Control; | 
					
						
							|  |  |  | class DependencyEditor; | 
					
						
							|  |  |  | class DependencyErrorDialog; | 
					
						
							|  |  |  | class EditorAbout; | 
					
						
							|  |  |  | class EditorExport; | 
					
						
							|  |  |  | class EditorFeatureProfileManager; | 
					
						
							|  |  |  | class EditorFileServer; | 
					
						
							|  |  |  | class EditorInspector; | 
					
						
							|  |  |  | class EditorLayoutsDialog; | 
					
						
							|  |  |  | class EditorLog; | 
					
						
							|  |  |  | class EditorPlugin; | 
					
						
							| 
									
										
										
										
											2016-03-29 20:02:53 -03:00
										 |  |  | class EditorPluginList; | 
					
						
							| 
									
										
										
										
											2019-12-24 15:17:23 +08:00
										 |  |  | class EditorQuickOpen; | 
					
						
							|  |  |  | class EditorResourcePreview; | 
					
						
							|  |  |  | class EditorRunNative; | 
					
						
							|  |  |  | class EditorSettingsDialog; | 
					
						
							|  |  |  | class ExportTemplateManager; | 
					
						
							|  |  |  | class FileSystemDock; | 
					
						
							|  |  |  | class HSplitContainer; | 
					
						
							|  |  |  | class ImportDock; | 
					
						
							|  |  |  | class MenuButton; | 
					
						
							|  |  |  | class NodeDock; | 
					
						
							|  |  |  | class OrphanResourcesDialog; | 
					
						
							|  |  |  | class Panel; | 
					
						
							|  |  |  | class PanelContainer; | 
					
						
							|  |  |  | class PluginConfigDialog; | 
					
						
							|  |  |  | class ProgressDialog; | 
					
						
							|  |  |  | class ProjectExportDialog; | 
					
						
							|  |  |  | class ProjectSettingsEditor; | 
					
						
							|  |  |  | class RunSettingsDialog; | 
					
						
							|  |  |  | class ScriptCreateDialog; | 
					
						
							|  |  |  | class TabContainer; | 
					
						
							|  |  |  | class Tabs; | 
					
						
							| 
									
										
										
										
											2020-12-14 21:10:09 +01:00
										 |  |  | class TextureProgressBar; | 
					
						
							| 
									
										
										
										
											2020-06-19 20:49:04 +02:00
										 |  |  | class Button; | 
					
						
							| 
									
										
										
										
											2019-12-24 15:17:23 +08:00
										 |  |  | class VSplitContainer; | 
					
						
							| 
									
										
										
										
											2020-03-03 22:51:12 -03:00
										 |  |  | class Window; | 
					
						
							|  |  |  | class SubViewport; | 
					
						
							| 
									
										
										
										
											2021-03-19 09:57:52 -03:00
										 |  |  | class SceneImportSettings; | 
					
						
							| 
									
										
										
										
											2015-06-13 22:12:53 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | class EditorNode : public Node { | 
					
						
							| 
									
										
										
										
											2017-03-05 16:44:50 +01:00
										 |  |  | 	GDCLASS(EditorNode, Node); | 
					
						
							| 
									
										
										
										
											2015-11-27 21:42:48 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-02-27 23:10:44 -03:00
										 |  |  | public: | 
					
						
							|  |  |  | 	enum DockSlot { | 
					
						
							|  |  |  | 		DOCK_SLOT_LEFT_UL, | 
					
						
							|  |  |  | 		DOCK_SLOT_LEFT_BL, | 
					
						
							|  |  |  | 		DOCK_SLOT_LEFT_UR, | 
					
						
							|  |  |  | 		DOCK_SLOT_LEFT_BR, | 
					
						
							|  |  |  | 		DOCK_SLOT_RIGHT_UL, | 
					
						
							|  |  |  | 		DOCK_SLOT_RIGHT_BL, | 
					
						
							|  |  |  | 		DOCK_SLOT_RIGHT_UR, | 
					
						
							|  |  |  | 		DOCK_SLOT_RIGHT_BR, | 
					
						
							|  |  |  | 		DOCK_SLOT_MAX | 
					
						
							|  |  |  | 	}; | 
					
						
							| 
									
										
										
										
											2017-03-05 16:44:50 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-04-07 15:46:52 -03:00
										 |  |  | 	struct ExecuteThreadArgs { | 
					
						
							|  |  |  | 		String path; | 
					
						
							|  |  |  | 		List<String> args; | 
					
						
							|  |  |  | 		String output; | 
					
						
							| 
									
										
										
										
											2021-01-19 13:29:41 +01:00
										 |  |  | 		Thread execute_output_thread; | 
					
						
							| 
									
										
										
										
											2020-02-26 11:28:13 +01:00
										 |  |  | 		Mutex execute_output_mutex; | 
					
						
							| 
									
										
										
										
											2020-11-24 10:12:55 +01:00
										 |  |  | 		int exitcode = 0; | 
					
						
							| 
									
										
										
										
											2021-02-10 19:22:13 +01:00
										 |  |  | 		SafeFlag done; | 
					
						
							| 
									
										
										
										
											2019-04-07 15:46:52 -03:00
										 |  |  | 	}; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-02-27 23:10:44 -03:00
										 |  |  | private: | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 	enum { | 
					
						
							| 
									
										
										
										
											2017-03-05 16:44:50 +01:00
										 |  |  | 		HISTORY_SIZE = 64 | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 	}; | 
					
						
							| 
									
										
										
										
											2015-11-27 21:42:48 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 	enum MenuOptions { | 
					
						
							|  |  |  | 		FILE_NEW_SCENE, | 
					
						
							| 
									
										
										
										
											2015-10-10 09:09:09 -03:00
										 |  |  | 		FILE_NEW_INHERITED_SCENE, | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 		FILE_OPEN_SCENE, | 
					
						
							|  |  |  | 		FILE_SAVE_SCENE, | 
					
						
							|  |  |  | 		FILE_SAVE_AS_SCENE, | 
					
						
							| 
									
										
										
										
											2016-06-26 00:54:17 -03:00
										 |  |  | 		FILE_SAVE_ALL_SCENES, | 
					
						
							| 
									
										
										
										
											2015-01-06 15:28:25 -07:00
										 |  |  | 		FILE_SAVE_AND_RUN, | 
					
						
							| 
									
										
										
										
											2018-09-13 19:06:40 +02:00
										 |  |  | 		FILE_SHOW_IN_FILESYSTEM, | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 		FILE_EXPORT_PROJECT, | 
					
						
							|  |  |  | 		FILE_EXPORT_MESH_LIBRARY, | 
					
						
							| 
									
										
										
										
											2019-04-07 15:46:52 -03:00
										 |  |  | 		FILE_INSTALL_ANDROID_SOURCE, | 
					
						
							|  |  |  | 		FILE_EXPLORE_ANDROID_BUILD_TEMPLATES, | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 		FILE_EXPORT_TILESET, | 
					
						
							|  |  |  | 		FILE_SAVE_OPTIMIZED, | 
					
						
							|  |  |  | 		FILE_OPEN_RECENT, | 
					
						
							|  |  |  | 		FILE_OPEN_OLD_SCENE, | 
					
						
							| 
									
										
										
										
											2019-05-09 22:06:35 +02:00
										 |  |  | 		FILE_QUICK_OPEN, | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 		FILE_QUICK_OPEN_SCENE, | 
					
						
							|  |  |  | 		FILE_QUICK_OPEN_SCRIPT, | 
					
						
							|  |  |  | 		FILE_OPEN_PREV, | 
					
						
							| 
									
										
										
										
											2015-06-22 00:03:19 -03:00
										 |  |  | 		FILE_CLOSE, | 
					
						
							| 
									
										
										
										
											2019-04-21 11:44:21 +02:00
										 |  |  | 		FILE_CLOSE_OTHERS, | 
					
						
							|  |  |  | 		FILE_CLOSE_RIGHT, | 
					
						
							|  |  |  | 		FILE_CLOSE_ALL, | 
					
						
							| 
									
										
										
										
											2017-06-26 21:04:53 +07:00
										 |  |  | 		FILE_CLOSE_ALL_AND_QUIT, | 
					
						
							|  |  |  | 		FILE_CLOSE_ALL_AND_RUN_PROJECT_MANAGER, | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 		FILE_QUIT, | 
					
						
							|  |  |  | 		FILE_EXTERNAL_OPEN_SCENE, | 
					
						
							|  |  |  | 		EDIT_UNDO, | 
					
						
							|  |  |  | 		EDIT_REDO, | 
					
						
							| 
									
										
										
										
											2020-05-10 20:12:25 +02:00
										 |  |  | 		EDIT_RELOAD_SAVED_SCENE, | 
					
						
							| 
									
										
										
										
											2015-11-29 01:08:31 -03:00
										 |  |  | 		TOOLS_ORPHAN_RESOURCES, | 
					
						
							| 
									
										
										
										
											2018-03-16 21:50:35 -04:00
										 |  |  | 		TOOLS_CUSTOM, | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 		RESOURCE_SAVE, | 
					
						
							|  |  |  | 		RESOURCE_SAVE_AS, | 
					
						
							|  |  |  | 		RUN_PLAY, | 
					
						
							| 
									
										
										
										
											2016-05-21 21:18:16 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 		RUN_STOP, | 
					
						
							|  |  |  | 		RUN_PLAY_SCENE, | 
					
						
							|  |  |  | 		RUN_PLAY_CUSTOM_SCENE, | 
					
						
							|  |  |  | 		RUN_SETTINGS, | 
					
						
							| 
									
										
										
										
											2018-07-25 19:53:12 +02:00
										 |  |  | 		RUN_PROJECT_DATA_FOLDER, | 
					
						
							| 
									
										
										
										
											2014-02-18 12:21:06 +08:00
										 |  |  | 		RUN_PROJECT_MANAGER, | 
					
						
							| 
									
										
										
										
											2019-09-03 20:12:08 +05:30
										 |  |  | 		RUN_VCS_SETTINGS, | 
					
						
							|  |  |  | 		RUN_VCS_SHUT_DOWN, | 
					
						
							| 
									
										
										
										
											2018-12-11 16:52:25 +01:00
										 |  |  | 		SETTINGS_UPDATE_CONTINUOUSLY, | 
					
						
							|  |  |  | 		SETTINGS_UPDATE_WHEN_CHANGED, | 
					
						
							| 
									
										
										
										
											2019-09-03 20:12:08 +05:30
										 |  |  | 		SETTINGS_UPDATE_ALWAYS, | 
					
						
							|  |  |  | 		SETTINGS_UPDATE_CHANGES, | 
					
						
							| 
									
										
										
										
											2016-10-01 16:15:07 +02:00
										 |  |  | 		SETTINGS_UPDATE_SPINNER_HIDE, | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 		SETTINGS_PREFERENCES, | 
					
						
							| 
									
										
										
										
											2015-11-22 19:11:17 +01:00
										 |  |  | 		SETTINGS_LAYOUT_SAVE, | 
					
						
							|  |  |  | 		SETTINGS_LAYOUT_DELETE, | 
					
						
							|  |  |  | 		SETTINGS_LAYOUT_DEFAULT, | 
					
						
							| 
									
										
										
										
											2018-07-25 19:53:12 +02:00
										 |  |  | 		SETTINGS_EDITOR_DATA_FOLDER, | 
					
						
							|  |  |  | 		SETTINGS_EDITOR_CONFIG_FOLDER, | 
					
						
							| 
									
										
										
										
											2017-03-20 23:31:41 -03:00
										 |  |  | 		SETTINGS_MANAGE_EXPORT_TEMPLATES, | 
					
						
							| 
									
										
										
										
											2019-04-08 19:18:03 -03:00
										 |  |  | 		SETTINGS_MANAGE_FEATURE_PROFILES, | 
					
						
							| 
									
										
										
										
											2016-06-27 19:59:33 -03:00
										 |  |  | 		SETTINGS_PICK_MAIN_SCENE, | 
					
						
							| 
									
										
										
										
											2018-12-18 14:17:43 +01:00
										 |  |  | 		SETTINGS_TOGGLE_CONSOLE, | 
					
						
							| 
									
										
										
										
											2018-06-11 07:53:25 +02:00
										 |  |  | 		SETTINGS_TOGGLE_FULLSCREEN, | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 		SETTINGS_HELP, | 
					
						
							| 
									
										
										
										
											2015-11-19 14:15:17 +01:00
										 |  |  | 		SCENE_TAB_CLOSE, | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-03-29 06:53:11 -07:00
										 |  |  | 		EDITOR_SCREENSHOT, | 
					
						
							|  |  |  | 		EDITOR_OPEN_SCREENSHOT, | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-05-26 15:34:41 +01:00
										 |  |  | 		HELP_SEARCH, | 
					
						
							|  |  |  | 		HELP_DOCS, | 
					
						
							|  |  |  | 		HELP_QA, | 
					
						
							| 
									
										
										
										
											2020-01-29 23:10:09 +01:00
										 |  |  | 		HELP_REPORT_A_BUG, | 
					
						
							|  |  |  | 		HELP_SEND_DOCS_FEEDBACK, | 
					
						
							| 
									
										
										
										
											2017-05-26 15:34:41 +01:00
										 |  |  | 		HELP_COMMUNITY, | 
					
						
							|  |  |  | 		HELP_ABOUT, | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-07-19 18:58:15 -03:00
										 |  |  | 		SET_VIDEO_DRIVER_SAVE_AND_RESTART, | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-02-06 15:57:06 +02:00
										 |  |  | 		GLOBAL_NEW_WINDOW, | 
					
						
							|  |  |  | 		GLOBAL_SCENE, | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-03-05 16:44:50 +01:00
										 |  |  | 		IMPORT_PLUGIN_BASE = 100, | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-03-05 16:44:50 +01:00
										 |  |  | 		TOOL_MENU_BASE = 1000 | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 	}; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-03-03 22:51:12 -03:00
										 |  |  | 	SubViewport *scene_root; //root of the scene being edited
 | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-03-05 16:44:50 +01:00
										 |  |  | 	PanelContainer *scene_root_parent; | 
					
						
							| 
									
										
										
										
											2017-05-03 05:13:12 +09:00
										 |  |  | 	Control *theme_base; | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 	Control *gui_base; | 
					
						
							|  |  |  | 	VBoxContainer *main_vbox; | 
					
						
							| 
									
										
										
										
											2018-07-19 18:58:15 -03:00
										 |  |  | 	OptionButton *video_driver; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	ConfirmationDialog *video_restart_dialog; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	int video_driver_current; | 
					
						
							|  |  |  | 	String video_driver_request; | 
					
						
							|  |  |  | 	void _video_driver_selected(int); | 
					
						
							| 
									
										
										
										
											2018-09-28 16:40:20 -03:00
										 |  |  | 	void _update_video_driver_color(); | 
					
						
							| 
									
										
										
										
											2015-06-13 22:12:53 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-09-14 16:56:18 +02:00
										 |  |  | 	// Split containers
 | 
					
						
							| 
									
										
										
										
											2015-06-13 22:12:53 -03:00
										 |  |  | 
 | 
					
						
							|  |  |  | 	HSplitContainer *left_l_hsplit; | 
					
						
							|  |  |  | 	VSplitContainer *left_l_vsplit; | 
					
						
							|  |  |  | 	HSplitContainer *left_r_hsplit; | 
					
						
							|  |  |  | 	VSplitContainer *left_r_vsplit; | 
					
						
							|  |  |  | 	HSplitContainer *main_hsplit; | 
					
						
							|  |  |  | 	HSplitContainer *right_hsplit; | 
					
						
							|  |  |  | 	VSplitContainer *right_l_vsplit; | 
					
						
							|  |  |  | 	VSplitContainer *right_r_vsplit; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	VSplitContainer *center_split; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-09-14 16:56:18 +02:00
										 |  |  | 	// To access those easily by index
 | 
					
						
							|  |  |  | 	Vector<VSplitContainer *> vsplits; | 
					
						
							|  |  |  | 	Vector<HSplitContainer *> hsplits; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	// Main tabs
 | 
					
						
							| 
									
										
										
										
											2015-06-22 00:03:19 -03:00
										 |  |  | 
 | 
					
						
							|  |  |  | 	Tabs *scene_tabs; | 
					
						
							| 
									
										
										
										
											2018-01-02 02:10:49 -05:00
										 |  |  | 	PopupMenu *scene_tabs_context_menu; | 
					
						
							| 
									
										
										
										
											2017-06-16 00:30:03 +09:00
										 |  |  | 	Panel *tab_preview_panel; | 
					
						
							|  |  |  | 	TextureRect *tab_preview; | 
					
						
							| 
									
										
										
										
											2015-11-19 14:15:17 +01:00
										 |  |  | 	int tab_closing; | 
					
						
							| 
									
										
										
										
											2015-06-13 22:12:53 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-06-07 22:08:12 -03:00
										 |  |  | 	bool exiting; | 
					
						
							| 
									
										
										
										
											2019-10-31 16:58:53 -03:00
										 |  |  | 	bool dimmed; | 
					
						
							| 
									
										
										
										
											2015-06-13 22:12:53 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 	int old_split_ofs; | 
					
						
							|  |  |  | 	VSplitContainer *top_split; | 
					
						
							|  |  |  | 	HBoxContainer *bottom_hb; | 
					
						
							|  |  |  | 	Control *vp_base; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	HBoxContainer *menu_hb; | 
					
						
							| 
									
										
										
										
											2020-12-19 14:17:42 +00:00
										 |  |  | 	Control *main_control; | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 	MenuButton *file_menu; | 
					
						
							| 
									
										
										
										
											2017-05-24 11:00:55 +01:00
										 |  |  | 	MenuButton *project_menu; | 
					
						
							|  |  |  | 	MenuButton *debug_menu; | 
					
						
							| 
									
										
										
										
											2017-09-02 03:25:40 +02:00
										 |  |  | 	MenuButton *settings_menu; | 
					
						
							|  |  |  | 	MenuButton *help_menu; | 
					
						
							| 
									
										
										
										
											2017-05-24 11:00:55 +01:00
										 |  |  | 	PopupMenu *tool_menu; | 
					
						
							| 
									
										
										
										
											2020-06-19 20:49:04 +02:00
										 |  |  | 	Button *export_button; | 
					
						
							|  |  |  | 	Button *prev_scene; | 
					
						
							|  |  |  | 	Button *play_button; | 
					
						
							|  |  |  | 	Button *pause_button; | 
					
						
							|  |  |  | 	Button *stop_button; | 
					
						
							|  |  |  | 	Button *run_settings_button; | 
					
						
							|  |  |  | 	Button *play_scene_button; | 
					
						
							|  |  |  | 	Button *play_custom_scene_button; | 
					
						
							|  |  |  | 	Button *search_button; | 
					
						
							| 
									
										
										
										
											2020-12-14 21:10:09 +01:00
										 |  |  | 	TextureProgressBar *audio_vu; | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-03-29 06:53:11 -07:00
										 |  |  | 	Timer *screenshot_timer; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-07-19 10:34:22 -05:00
										 |  |  | 	PluginConfigDialog *plugin_config_dialog; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-06-26 15:37:04 -03:00
										 |  |  | 	RichTextLabel *load_errors; | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 	AcceptDialog *load_error_dialog; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-04-07 15:46:52 -03:00
										 |  |  | 	RichTextLabel *execute_outputs; | 
					
						
							|  |  |  | 	AcceptDialog *execute_output_dialog; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-01-03 16:52:37 -03:00
										 |  |  | 	Ref<Theme> theme; | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 
 | 
					
						
							|  |  |  | 	PopupMenu *recent_scenes; | 
					
						
							|  |  |  | 	SceneTreeDock *scene_tree_dock; | 
					
						
							| 
									
										
										
										
											2018-05-17 01:01:47 -05:00
										 |  |  | 	InspectorDock *inspector_dock; | 
					
						
							| 
									
										
										
										
											2016-06-04 13:17:56 -03:00
										 |  |  | 	NodeDock *node_dock; | 
					
						
							| 
									
										
										
										
											2017-02-01 09:45:45 -03:00
										 |  |  | 	ImportDock *import_dock; | 
					
						
							| 
									
										
										
										
											2017-01-21 13:07:29 +01:00
										 |  |  | 	FileSystemDock *filesystem_dock; | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 	EditorRunNative *run_native; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	ConfirmationDialog *confirmation; | 
					
						
							| 
									
										
										
										
											2017-06-21 11:15:39 +07:00
										 |  |  | 	ConfirmationDialog *save_confirmation; | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 	ConfirmationDialog *import_confirmation; | 
					
						
							| 
									
										
										
										
											2016-06-27 19:59:33 -03:00
										 |  |  | 	ConfirmationDialog *pick_main_scene; | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 	AcceptDialog *accept; | 
					
						
							| 
									
										
										
										
											2017-07-23 00:14:44 +07:00
										 |  |  | 	EditorAbout *about; | 
					
						
							| 
									
										
										
										
											2015-02-14 12:09:52 -03:00
										 |  |  | 	AcceptDialog *warning; | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-01-11 22:23:45 +01:00
										 |  |  | 	int overridden_default_layout; | 
					
						
							|  |  |  | 	Ref<ConfigFile> default_layout; | 
					
						
							| 
									
										
										
										
											2015-11-22 19:11:17 +01:00
										 |  |  | 	PopupMenu *editor_layouts; | 
					
						
							| 
									
										
										
										
											2019-05-30 20:16:40 +02:00
										 |  |  | 	EditorLayoutsDialog *layout_dialog; | 
					
						
							| 
									
										
										
										
											2015-11-22 19:11:17 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-04-07 15:46:52 -03:00
										 |  |  | 	ConfirmationDialog *custom_build_manage_templates; | 
					
						
							|  |  |  | 	ConfirmationDialog *install_android_build_template; | 
					
						
							|  |  |  | 	ConfirmationDialog *remove_android_build_template; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 	EditorSettingsDialog *settings_config_dialog; | 
					
						
							| 
									
										
										
										
											2017-07-19 17:00:46 -03:00
										 |  |  | 	ProjectSettingsEditor *project_settings; | 
					
						
							| 
									
										
										
										
											2021-02-13 11:06:56 -03:00
										 |  |  | 	bool settings_changed = true; //make it update settings on first frame
 | 
					
						
							|  |  |  | 	void _update_from_settings(); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-09-03 20:12:08 +05:30
										 |  |  | 	PopupMenu *vcs_actions_menu; | 
					
						
							| 
									
										
										
										
											2015-05-31 01:59:42 -03:00
										 |  |  | 	EditorFileDialog *file; | 
					
						
							| 
									
										
										
										
											2017-03-20 23:31:41 -03:00
										 |  |  | 	ExportTemplateManager *export_template_manager; | 
					
						
							| 
									
										
										
										
											2019-04-08 19:18:03 -03:00
										 |  |  | 	EditorFeatureProfileManager *feature_profile_manager; | 
					
						
							| 
									
										
										
										
											2017-11-10 16:45:08 -06:00
										 |  |  | 	EditorFileDialog *file_templates; | 
					
						
							|  |  |  | 	EditorFileDialog *file_export_lib; | 
					
						
							|  |  |  | 	EditorFileDialog *file_script; | 
					
						
							| 
									
										
										
										
											2019-07-04 17:30:44 +02:00
										 |  |  | 	CheckBox *file_export_lib_merge; | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 	String current_path; | 
					
						
							| 
									
										
										
										
											2018-12-11 16:52:25 +01:00
										 |  |  | 	MenuButton *update_spinner; | 
					
						
							| 
									
										
										
										
											2017-05-24 11:00:55 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-01-05 20:01:50 -03:00
										 |  |  | 	EditorNativeShaderSourceVisualizer *native_shader_source_visualizer; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 	String defer_load_scene; | 
					
						
							|  |  |  | 	Node *_last_instanced_scene; | 
					
						
							| 
									
										
										
										
											2016-01-17 20:03:57 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 	EditorLog *log; | 
					
						
							|  |  |  | 	CenterContainer *tabs_center; | 
					
						
							|  |  |  | 	EditorQuickOpen *quick_open; | 
					
						
							|  |  |  | 	EditorQuickOpen *quick_run; | 
					
						
							| 
									
										
										
										
											2015-11-18 04:47:41 -03:00
										 |  |  | 
 | 
					
						
							|  |  |  | 	HBoxContainer *main_editor_button_vb; | 
					
						
							| 
									
										
										
										
											2020-06-19 20:49:04 +02:00
										 |  |  | 	Vector<Button *> main_editor_buttons; | 
					
						
							| 
									
										
										
										
											2017-03-05 16:44:50 +01:00
										 |  |  | 	Vector<EditorPlugin *> editor_table; | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-06-07 12:46:14 -03:00
										 |  |  | 	AudioStreamPreviewGenerator *preview_gen; | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 	ProgressDialog *progress_dialog; | 
					
						
							|  |  |  | 	BackgroundProgress *progress_hb; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-08-23 20:15:56 -03:00
										 |  |  | 	DependencyErrorDialog *dependency_error; | 
					
						
							|  |  |  | 	DependencyEditor *dependency_fixer; | 
					
						
							| 
									
										
										
										
											2015-11-29 01:08:31 -03:00
										 |  |  | 	OrphanResourcesDialog *orphan_resources; | 
					
						
							| 
									
										
										
										
											2017-02-04 20:31:15 -03:00
										 |  |  | 	ConfirmationDialog *open_imported; | 
					
						
							|  |  |  | 	Button *new_inherited_button; | 
					
						
							|  |  |  | 	String open_import_request; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-03-06 14:00:16 -03:00
										 |  |  | 	Vector<Control *> floating_docks; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-06-13 22:12:53 -03:00
										 |  |  | 	TabContainer *dock_slot[DOCK_SLOT_MAX]; | 
					
						
							|  |  |  | 	Rect2 dock_select_rect[DOCK_SLOT_MAX]; | 
					
						
							|  |  |  | 	int dock_select_rect_over; | 
					
						
							| 
									
										
										
										
											2017-07-18 20:04:20 +07:00
										 |  |  | 	PopupPanel *dock_select_popup; | 
					
						
							| 
									
										
										
										
											2015-06-13 22:12:53 -03:00
										 |  |  | 	Control *dock_select; | 
					
						
							| 
									
										
										
										
											2020-03-06 14:00:16 -03:00
										 |  |  | 	Button *dock_float; | 
					
						
							| 
									
										
										
										
											2020-06-19 20:49:04 +02:00
										 |  |  | 	Button *dock_tab_move_left; | 
					
						
							|  |  |  | 	Button *dock_tab_move_right; | 
					
						
							| 
									
										
										
										
											2015-06-13 22:12:53 -03:00
										 |  |  | 	int dock_popup_selected; | 
					
						
							|  |  |  | 	Timer *dock_drag_timer; | 
					
						
							| 
									
										
										
										
											2016-05-30 19:29:43 +01:00
										 |  |  | 	bool docks_visible; | 
					
						
							| 
									
										
										
										
											2017-11-16 17:57:57 -05:00
										 |  |  | 
 | 
					
						
							|  |  |  | 	HBoxContainer *tabbar_container; | 
					
						
							| 
									
										
										
										
											2020-06-19 20:49:04 +02:00
										 |  |  | 	Button *distraction_free; | 
					
						
							|  |  |  | 	Button *scene_tab_add; | 
					
						
							| 
									
										
										
										
											2015-06-13 22:12:53 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-04-25 17:18:35 +05:30
										 |  |  | 	bool scene_distraction; | 
					
						
							|  |  |  | 	bool script_distraction; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 	String _tmp_import_path; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-02-19 23:19:30 -03:00
										 |  |  | 	EditorExport *editor_export; | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 
 | 
					
						
							|  |  |  | 	Object *current; | 
					
						
							| 
									
										
										
										
											2018-11-18 15:17:04 +01:00
										 |  |  | 	Ref<Resource> saving_resource; | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 
 | 
					
						
							|  |  |  | 	bool _playing_edited; | 
					
						
							| 
									
										
										
										
											2016-02-17 20:51:56 +01:00
										 |  |  | 	String run_custom_filename; | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 	bool reference_resource_mem; | 
					
						
							|  |  |  | 	bool save_external_resources_mem; | 
					
						
							|  |  |  | 	uint64_t saved_version; | 
					
						
							| 
									
										
										
										
											2015-06-22 00:03:19 -03:00
										 |  |  | 	uint64_t last_checked_version; | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 	bool unsaved_cache; | 
					
						
							|  |  |  | 	String open_navigate; | 
					
						
							| 
									
										
										
										
											2015-06-22 00:03:19 -03:00
										 |  |  | 	bool changing_scene; | 
					
						
							| 
									
										
										
										
											2017-02-01 09:45:45 -03:00
										 |  |  | 	bool waiting_for_first_scan; | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-05-27 14:18:40 -03:00
										 |  |  | 	bool waiting_for_sources_changed; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-12-11 16:52:25 +01:00
										 |  |  | 	uint32_t update_spinner_step_msec; | 
					
						
							|  |  |  | 	uint64_t update_spinner_step_frame; | 
					
						
							|  |  |  | 	int update_spinner_step; | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-03-05 16:44:50 +01:00
										 |  |  | 	Vector<EditorPlugin *> editor_plugins; | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 	EditorPlugin *editor_plugin_screen; | 
					
						
							| 
									
										
										
										
											2016-03-29 20:02:53 -03:00
										 |  |  | 	EditorPluginList *editor_plugins_over; | 
					
						
							| 
									
										
										
										
											2017-10-29 20:32:09 +01:00
										 |  |  | 	EditorPluginList *editor_plugins_force_over; | 
					
						
							| 
									
										
										
										
											2017-06-08 19:57:35 +02:00
										 |  |  | 	EditorPluginList *editor_plugins_force_input_forwarding; | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 
 | 
					
						
							|  |  |  | 	EditorHistory editor_history; | 
					
						
							|  |  |  | 	EditorData editor_data; | 
					
						
							|  |  |  | 	EditorRun editor_run; | 
					
						
							|  |  |  | 	EditorSelection *editor_selection; | 
					
						
							| 
									
										
										
										
											2017-02-19 23:19:30 -03:00
										 |  |  | 	ProjectExportDialog *project_export; | 
					
						
							| 
									
										
										
										
											2015-05-31 01:59:42 -03:00
										 |  |  | 	EditorResourcePreview *resource_preview; | 
					
						
							| 
									
										
										
										
											2018-10-29 16:36:31 -03:00
										 |  |  | 	EditorFolding editor_folding; | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-03-19 09:57:52 -03:00
										 |  |  | 	SceneImportSettings *scene_import_settings; | 
					
						
							| 
									
										
										
										
											2016-01-17 20:03:57 -03:00
										 |  |  | 	struct BottomPanelItem { | 
					
						
							|  |  |  | 		String name; | 
					
						
							| 
									
										
										
										
											2020-11-24 10:12:55 +01:00
										 |  |  | 		Control *control = nullptr; | 
					
						
							|  |  |  | 		Button *button = nullptr; | 
					
						
							| 
									
										
										
										
											2016-01-17 20:03:57 -03:00
										 |  |  | 	}; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	Vector<BottomPanelItem> bottom_panel_items; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	PanelContainer *bottom_panel; | 
					
						
							|  |  |  | 	HBoxContainer *bottom_panel_hb; | 
					
						
							| 
									
										
										
										
											2018-07-15 22:38:14 -03:00
										 |  |  | 	HBoxContainer *bottom_panel_hb_editors; | 
					
						
							| 
									
										
										
										
											2016-01-17 20:03:57 -03:00
										 |  |  | 	VBoxContainer *bottom_panel_vb; | 
					
						
							| 
									
										
										
										
											2019-07-22 23:14:51 +02:00
										 |  |  | 	Label *version_label; | 
					
						
							| 
									
										
										
										
											2020-06-19 20:49:04 +02:00
										 |  |  | 	Button *bottom_panel_raise; | 
					
						
							| 
									
										
										
										
											2018-07-15 22:38:14 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-08-28 19:42:27 +02:00
										 |  |  | 	Tree *disk_changed_list; | 
					
						
							|  |  |  | 	ConfirmationDialog *disk_changed; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-07-15 22:38:14 -03:00
										 |  |  | 	void _bottom_panel_raise_toggled(bool); | 
					
						
							| 
									
										
										
										
											2016-01-17 20:03:57 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-08-26 10:32:15 -03:00
										 |  |  | 	EditorInterface *editor_interface; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-01-17 20:03:57 -03:00
										 |  |  | 	void _bottom_panel_switch(bool p_enable, int p_idx); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 	String external_file; | 
					
						
							|  |  |  | 	List<String> previous_scenes; | 
					
						
							|  |  |  | 	bool opening_prev; | 
					
						
							| 
									
										
										
										
											2016-03-09 00:00:52 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 	void _dialog_action(String p_file); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	void _edit_current(); | 
					
						
							| 
									
										
										
										
											2017-08-28 10:24:50 +07:00
										 |  |  | 	void _dialog_display_save_error(String p_file, Error p_error); | 
					
						
							|  |  |  | 	void _dialog_display_load_error(String p_file, Error p_error); | 
					
						
							| 
									
										
										
										
											2016-03-09 00:00:52 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 	int current_option; | 
					
						
							|  |  |  | 	void _menu_option(int p_option); | 
					
						
							|  |  |  | 	void _menu_confirm_current(); | 
					
						
							| 
									
										
										
										
											2017-03-05 16:44:50 +01:00
										 |  |  | 	void _menu_option_confirm(int p_option, bool p_confirmed); | 
					
						
							| 
									
										
										
										
											2019-03-29 06:53:11 -07:00
										 |  |  | 
 | 
					
						
							|  |  |  | 	void _request_screenshot(); | 
					
						
							|  |  |  | 	void _screenshot(bool p_use_utc = false); | 
					
						
							|  |  |  | 	void _save_screenshot(NodePath p_path); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-03-16 21:50:35 -04:00
										 |  |  | 	void _tool_menu_option(int p_idx); | 
					
						
							| 
									
										
										
										
											2019-04-10 17:21:26 +02:00
										 |  |  | 	void _update_file_menu_opened(); | 
					
						
							|  |  |  | 	void _update_file_menu_closed(); | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-07-19 10:34:22 -05:00
										 |  |  | 	void _on_plugin_ready(Object *p_script, const String &p_activate_name); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 	void _fs_changed(); | 
					
						
							| 
									
										
										
										
											2017-08-31 18:57:03 -03:00
										 |  |  | 	void _resources_reimported(const Vector<String> &p_resources); | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 	void _sources_changed(bool p_exist); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	void _node_renamed(); | 
					
						
							| 
									
										
										
										
											2017-05-16 21:26:32 +02:00
										 |  |  | 	void _editor_select_next(); | 
					
						
							|  |  |  | 	void _editor_select_prev(); | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 	void _editor_select(int p_which); | 
					
						
							| 
									
										
										
										
											2017-03-05 16:44:50 +01:00
										 |  |  | 	void _set_scene_metadata(const String &p_file, int p_idx = -1); | 
					
						
							|  |  |  | 	void _get_scene_metadata(const String &p_file); | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 	void _update_title(); | 
					
						
							| 
									
										
										
										
											2015-06-22 00:03:19 -03:00
										 |  |  | 	void _update_scene_tabs(); | 
					
						
							| 
									
										
										
										
											2019-09-03 20:12:08 +05:30
										 |  |  | 	void _version_control_menu_option(int p_idx); | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 	void _close_messages(); | 
					
						
							|  |  |  | 	void _show_messages(); | 
					
						
							|  |  |  | 	void _vp_resized(); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-02-27 20:00:40 -03:00
										 |  |  | 	int _save_external_resources(); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-11-27 18:56:31 -03:00
										 |  |  | 	bool _validate_scene_recursive(const String &p_filename, Node *p_node); | 
					
						
							| 
									
										
										
										
											2016-06-26 00:54:17 -03:00
										 |  |  | 	void _save_scene(String p_file, int idx = -1); | 
					
						
							| 
									
										
										
										
											2017-06-24 17:57:30 +07:00
										 |  |  | 	void _save_all_scenes(); | 
					
						
							| 
									
										
										
										
											2017-07-26 18:29:45 +07:00
										 |  |  | 	int _next_unsaved_scene(bool p_valid_filename, int p_start = 0); | 
					
						
							| 
									
										
										
										
											2017-06-21 11:15:39 +07:00
										 |  |  | 	void _discard_changes(const String &p_str = String()); | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-05-07 23:35:23 -03:00
										 |  |  | 	void _inherit_request(String p_file); | 
					
						
							| 
									
										
										
										
											2017-03-05 16:44:50 +01:00
										 |  |  | 	void _instance_request(const Vector<String> &p_files); | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-03-29 20:02:53 -03:00
										 |  |  | 	void _display_top_editors(bool p_display); | 
					
						
							| 
									
										
										
										
											2017-03-05 16:44:50 +01:00
										 |  |  | 	void _set_top_editors(Vector<EditorPlugin *> p_editor_plugins_over); | 
					
						
							|  |  |  | 	void _set_editing_top_editors(Object *p_current_object); | 
					
						
							| 
									
										
										
										
											2016-05-21 15:29:25 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-01-08 08:27:34 -03:00
										 |  |  | 	void _quick_opened(); | 
					
						
							| 
									
										
										
										
											2016-02-17 19:40:06 +01:00
										 |  |  | 	void _quick_run(); | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-03-05 16:44:50 +01:00
										 |  |  | 	void _run(bool p_current = false, const String &p_custom = ""); | 
					
						
							| 
									
										
										
										
											2020-03-16 09:37:43 +01:00
										 |  |  | 	void _run_native(const Ref<EditorExportPreset> &p_preset); | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 
 | 
					
						
							|  |  |  | 	void _save_optimized(); | 
					
						
							| 
									
										
										
										
											2017-03-05 16:44:50 +01:00
										 |  |  | 	void _import_action(const String &p_action); | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 	void _import(const String &p_file); | 
					
						
							| 
									
										
										
										
											2017-03-05 16:44:50 +01:00
										 |  |  | 	void _add_to_recent_scenes(const String &p_scene); | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 	void _update_recent_scenes(); | 
					
						
							|  |  |  | 	void _open_recent_scene(int p_idx); | 
					
						
							| 
									
										
										
										
											2020-03-07 18:02:54 +02:00
										 |  |  | 	void _global_menu_scene(const Variant &p_tag); | 
					
						
							|  |  |  | 	void _global_menu_new_window(const Variant &p_tag); | 
					
						
							| 
									
										
										
										
											2017-03-05 16:44:50 +01:00
										 |  |  | 	void _dropped_files(const Vector<String> &p_files, int p_screen); | 
					
						
							| 
									
										
										
										
											2019-03-25 22:39:45 +01:00
										 |  |  | 	void _add_dropped_files_recursive(const Vector<String> &p_files, String to_path); | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 	String _recent_scene; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-01-17 09:09:01 -03:00
										 |  |  | 	void _exit_editor(); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 	bool convert_old; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-05-20 12:38:03 -03:00
										 |  |  | 	void _unhandled_input(const Ref<InputEvent> &p_event); | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-03-05 16:44:50 +01:00
										 |  |  | 	static void _load_error_notify(void *p_ud, const String &p_text); | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 
 | 
					
						
							|  |  |  | 	bool has_main_screen() const { return true; } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	String import_reload_fn; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-03-05 16:44:50 +01:00
										 |  |  | 	Set<FileDialog *> file_dialogs; | 
					
						
							|  |  |  | 	Set<EditorFileDialog *> editor_file_dialogs; | 
					
						
							| 
									
										
										
										
											2015-05-31 01:59:42 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-03-17 07:33:00 +01:00
										 |  |  | 	Map<String, Ref<Texture2D>> icon_type_cache; | 
					
						
							| 
									
										
										
										
											2018-02-25 23:04:16 +07:00
										 |  |  | 	void _build_icon_type_cache(); | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-02-27 23:10:44 -03:00
										 |  |  | 	bool _initializing_addons; | 
					
						
							| 
									
										
										
										
											2017-03-05 16:44:50 +01:00
										 |  |  | 	Map<String, EditorPlugin *> plugin_addons; | 
					
						
							| 
									
										
										
										
											2016-02-27 23:10:44 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-06-11 15:43:37 -03:00
										 |  |  | 	static Ref<Texture2D> _file_dialog_get_icon(const String &p_path); | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 	static void _file_dialog_register(FileDialog *p_dialog); | 
					
						
							|  |  |  | 	static void _file_dialog_unregister(FileDialog *p_dialog); | 
					
						
							| 
									
										
										
										
											2015-05-31 01:59:42 -03:00
										 |  |  | 	static void _editor_file_dialog_register(EditorFileDialog *p_dialog); | 
					
						
							|  |  |  | 	static void _editor_file_dialog_unregister(EditorFileDialog *p_dialog); | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 
 | 
					
						
							|  |  |  | 	void _cleanup_scene(); | 
					
						
							| 
									
										
										
										
											2019-06-04 05:36:23 +02:00
										 |  |  | 	void _remove_edited_scene(bool p_change_tab = true); | 
					
						
							|  |  |  | 	void _remove_scene(int index, bool p_change_tab = true); | 
					
						
							| 
									
										
										
										
											2017-03-05 16:44:50 +01:00
										 |  |  | 	bool _find_and_save_resource(RES p_res, Map<RES, bool> &processed, int32_t flags); | 
					
						
							|  |  |  | 	bool _find_and_save_edited_subresources(Object *obj, Map<RES, bool> &processed, int32_t flags); | 
					
						
							|  |  |  | 	void _save_edited_subresources(Node *scene, Map<RES, bool> &processed, int32_t flags); | 
					
						
							| 
									
										
										
										
											2017-06-30 00:37:54 +07:00
										 |  |  | 	void _mark_unsaved_scenes(); | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-03-05 16:44:50 +01:00
										 |  |  | 	void _find_node_types(Node *p_node, int &count_2d, int &count_3d); | 
					
						
							| 
									
										
										
										
											2017-11-11 21:48:00 -06:00
										 |  |  | 	void _save_scene_with_preview(String p_file, int p_idx = -1); | 
					
						
							| 
									
										
										
										
											2015-05-31 01:59:42 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-03-17 07:33:00 +01:00
										 |  |  | 	Map<String, Set<String>> dependency_errors; | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-03-05 16:44:50 +01:00
										 |  |  | 	static void _dependency_error_report(void *ud, const String &p_path, const String &p_dep, const String &p_type) { | 
					
						
							|  |  |  | 		EditorNode *en = (EditorNode *)ud; | 
					
						
							| 
									
										
										
										
											2020-05-14 16:41:43 +02:00
										 |  |  | 		if (!en->dependency_errors.has(p_path)) { | 
					
						
							| 
									
										
										
										
											2017-03-05 16:44:50 +01:00
										 |  |  | 			en->dependency_errors[p_path] = Set<String>(); | 
					
						
							| 
									
										
										
										
											2020-05-14 16:41:43 +02:00
										 |  |  | 		} | 
					
						
							| 
									
										
										
										
											2017-03-05 16:44:50 +01:00
										 |  |  | 		en->dependency_errors[p_path].insert(p_dep + "::" + p_type); | 
					
						
							| 
									
										
										
										
											2015-08-23 20:15:56 -03:00
										 |  |  | 	} | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 	struct ExportDefer { | 
					
						
							| 
									
										
										
										
											2017-08-14 20:15:06 +07:00
										 |  |  | 		String preset; | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 		String path; | 
					
						
							| 
									
										
										
										
											2020-11-24 10:12:55 +01:00
										 |  |  | 		bool debug = false; | 
					
						
							|  |  |  | 		bool pack_only = false; | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 	} export_defer; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-01-14 11:32:15 +01:00
										 |  |  | 	bool cmdline_export_mode; | 
					
						
							| 
									
										
										
										
											2018-11-28 08:45:51 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 	static EditorNode *singleton; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-02-25 09:31:47 -03:00
										 |  |  | 	static Vector<EditorNodeInitCallback> _init_callbacks; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-03-05 16:44:50 +01:00
										 |  |  | 	bool _find_scene_in_use(Node *p_node, const String &p_path) const; | 
					
						
							| 
									
										
										
										
											2014-06-19 02:23:03 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-03-06 14:00:16 -03:00
										 |  |  | 	void _update_dock_containers(); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-05-20 12:38:03 -03:00
										 |  |  | 	void _dock_select_input(const Ref<InputEvent> &p_input); | 
					
						
							| 
									
										
										
										
											2015-06-14 00:41:08 -03:00
										 |  |  | 	void _dock_move_left(); | 
					
						
							|  |  |  | 	void _dock_move_right(); | 
					
						
							| 
									
										
										
										
											2015-06-13 22:12:53 -03:00
										 |  |  | 	void _dock_select_draw(); | 
					
						
							|  |  |  | 	void _dock_pre_popup(int p_which); | 
					
						
							|  |  |  | 	void _dock_split_dragged(int ofs); | 
					
						
							| 
									
										
										
										
											2015-06-14 00:41:08 -03:00
										 |  |  | 	void _dock_popup_exit(); | 
					
						
							| 
									
										
										
										
											2020-03-06 14:00:16 -03:00
										 |  |  | 	void _dock_floating_close_request(Control *p_control); | 
					
						
							|  |  |  | 	void _dock_make_float(); | 
					
						
							| 
									
										
										
										
											2015-06-22 00:03:19 -03:00
										 |  |  | 	void _scene_tab_changed(int p_tab); | 
					
						
							| 
									
										
										
										
											2019-04-21 11:44:21 +02:00
										 |  |  | 	void _scene_tab_closed(int p_tab, int option = SCENE_TAB_CLOSE); | 
					
						
							| 
									
										
										
										
											2020-12-09 12:04:02 +01:00
										 |  |  | 	void _scene_tab_hovered(int p_tab); | 
					
						
							| 
									
										
										
										
											2017-06-16 00:30:03 +09:00
										 |  |  | 	void _scene_tab_exit(); | 
					
						
							|  |  |  | 	void _scene_tab_input(const Ref<InputEvent> &p_input); | 
					
						
							| 
									
										
										
										
											2017-07-05 15:44:53 +02:00
										 |  |  | 	void _reposition_active_tab(int idx_to); | 
					
						
							| 
									
										
										
										
											2019-06-11 15:43:37 -03:00
										 |  |  | 	void _thumbnail_done(const String &p_path, const Ref<Texture2D> &p_preview, const Ref<Texture2D> &p_small_preview, const Variant &p_udata); | 
					
						
							| 
									
										
										
										
											2015-07-26 10:44:10 -03:00
										 |  |  | 	void _scene_tab_script_edited(int p_tab); | 
					
						
							| 
									
										
										
										
											2015-06-22 00:03:19 -03:00
										 |  |  | 
 | 
					
						
							|  |  |  | 	Dictionary _get_main_scene_state(); | 
					
						
							| 
									
										
										
										
											2017-03-05 16:44:50 +01:00
										 |  |  | 	void _set_main_scene_state(Dictionary p_state, Node *p_for_scene); | 
					
						
							| 
									
										
										
										
											2015-06-13 22:12:53 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-11-18 04:47:41 -03:00
										 |  |  | 	int _get_current_main_editor(); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-06-13 22:12:53 -03:00
										 |  |  | 	void _save_docks(); | 
					
						
							|  |  |  | 	void _load_docks(); | 
					
						
							| 
									
										
										
										
											2017-03-05 16:44:50 +01:00
										 |  |  | 	void _save_docks_to_config(Ref<ConfigFile> p_layout, const String &p_section); | 
					
						
							|  |  |  | 	void _load_docks_from_config(Ref<ConfigFile> p_layout, const String &p_section); | 
					
						
							| 
									
										
										
										
											2016-02-27 23:10:44 -03:00
										 |  |  | 	void _update_dock_slots_visibility(); | 
					
						
							| 
									
										
										
										
											2018-02-07 08:01:45 -05:00
										 |  |  | 	void _dock_tab_changed(int p_tab); | 
					
						
							| 
									
										
										
										
											2015-11-22 19:11:17 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-11-24 23:32:54 +00:00
										 |  |  | 	bool restoring_scenes; | 
					
						
							|  |  |  | 	void _save_open_scenes_to_config(Ref<ConfigFile> p_layout, const String &p_section); | 
					
						
							|  |  |  | 	void _load_open_scenes_from_config(Ref<ConfigFile> p_layout, const String &p_section); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-11-22 19:11:17 +01:00
										 |  |  | 	void _update_layouts_menu(); | 
					
						
							| 
									
										
										
										
											2017-08-12 12:52:50 -04:00
										 |  |  | 	void _layout_menu_option(int p_id); | 
					
						
							| 
									
										
										
										
											2014-06-19 02:23:03 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-12-13 20:39:01 -03:00
										 |  |  | 	void _clear_undo_history(); | 
					
						
							| 
									
										
										
										
											2015-11-21 13:42:15 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-02-27 23:10:44 -03:00
										 |  |  | 	void _update_addon_config(); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-03-05 16:44:50 +01:00
										 |  |  | 	static void _file_access_close_error_notify(const String &p_str); | 
					
						
							| 
									
										
										
										
											2016-02-27 23:10:44 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-09-13 09:46:17 -03:00
										 |  |  | 	void _toggle_distraction_free_mode(); | 
					
						
							| 
									
										
										
										
											2016-08-06 19:00:54 -03:00
										 |  |  | 
 | 
					
						
							|  |  |  | 	enum { | 
					
						
							| 
									
										
										
										
											2017-03-05 16:44:50 +01:00
										 |  |  | 		MAX_INIT_CALLBACKS = 128, | 
					
						
							|  |  |  | 		MAX_BUILD_CALLBACKS = 128 | 
					
						
							| 
									
										
										
										
											2016-08-06 19:00:54 -03:00
										 |  |  | 	}; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-02-04 20:31:15 -03:00
										 |  |  | 	void _inherit_imported(const String &p_action); | 
					
						
							|  |  |  | 	void _open_imported(); | 
					
						
							| 
									
										
										
										
											2016-09-13 09:46:17 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-08-06 19:00:54 -03:00
										 |  |  | 	static int plugin_init_callback_count; | 
					
						
							|  |  |  | 	static EditorPluginInitializeCallback plugin_init_callbacks[MAX_INIT_CALLBACKS]; | 
					
						
							| 
									
										
										
										
											2017-05-28 21:46:48 -03:00
										 |  |  | 	void _save_default_environment(); | 
					
						
							| 
									
										
										
										
											2016-09-14 19:37:37 -03:00
										 |  |  | 
 | 
					
						
							|  |  |  | 	static int build_callback_count; | 
					
						
							|  |  |  | 	static EditorBuildCallback build_callbacks[MAX_BUILD_CALLBACKS]; | 
					
						
							| 
									
										
										
										
											2016-08-07 11:01:22 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-07-05 22:07:43 +07:00
										 |  |  | 	void _license_tree_selected(); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-12-11 16:52:25 +01:00
										 |  |  | 	void _update_update_spinner(); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-03-17 07:33:00 +01:00
										 |  |  | 	Vector<Ref<EditorResourceConversionPlugin>> resource_conversion_plugins; | 
					
						
							| 
									
										
										
										
											2017-09-22 09:20:28 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-11-14 20:02:31 -02:00
										 |  |  | 	PrintHandlerList print_handler; | 
					
						
							|  |  |  | 	static void _print_handler(void *p_this, const String &p_string, bool p_error); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-10-29 16:36:31 -03:00
										 |  |  | 	static void _resource_saved(RES p_resource, const String &p_path); | 
					
						
							|  |  |  | 	static void _resource_loaded(RES p_resource, const String &p_path); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-02-17 18:06:54 -03:00
										 |  |  | 	void _resources_changed(const Vector<String> &p_resources); | 
					
						
							| 
									
										
										
										
											2019-08-28 19:42:27 +02:00
										 |  |  | 	void _scan_external_changes(); | 
					
						
							|  |  |  | 	void _reload_modified_scenes(); | 
					
						
							| 
									
										
										
										
											2021-01-17 01:09:17 +01:00
										 |  |  | 	void _reload_project_settings(); | 
					
						
							| 
									
										
										
										
											2019-08-28 19:42:27 +02:00
										 |  |  | 	void _resave_scenes(String p_str); | 
					
						
							| 
									
										
										
										
											2018-11-20 21:47:48 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-04-08 19:18:03 -03:00
										 |  |  | 	void _feature_profile_changed(); | 
					
						
							|  |  |  | 	bool _is_class_editor_disabled_by_feature_profile(const StringName &p_class); | 
					
						
							| 
									
										
										
										
											2019-10-24 03:11:04 +09:00
										 |  |  | 	Ref<ImageTexture> _load_custom_class_icon(const String &p_path) const; | 
					
						
							| 
									
										
										
										
											2019-04-08 19:18:03 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | protected: | 
					
						
							|  |  |  | 	void _notification(int p_what); | 
					
						
							| 
									
										
										
										
											2019-03-29 06:53:11 -07:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-11-22 19:11:17 +01:00
										 |  |  | 	static void _bind_methods(); | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-06-04 05:36:23 +02:00
										 |  |  | protected: | 
					
						
							|  |  |  | 	friend class FileSystemDock; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	int get_current_tab(); | 
					
						
							|  |  |  | 	void set_current_tab(int p_tab); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-03-05 16:44:50 +01:00
										 |  |  | public: | 
					
						
							| 
									
										
										
										
											2018-02-14 10:23:04 -05:00
										 |  |  | 	bool call_build(); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-08-06 19:00:54 -03:00
										 |  |  | 	static void add_plugin_init_callback(EditorPluginInitializeCallback p_callback); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-11-25 00:46:44 +01:00
										 |  |  | 	enum EditorTable { | 
					
						
							|  |  |  | 		EDITOR_2D = 0, | 
					
						
							|  |  |  | 		EDITOR_3D, | 
					
						
							| 
									
										
										
										
											2017-05-16 21:26:32 +02:00
										 |  |  | 		EDITOR_SCRIPT, | 
					
						
							|  |  |  | 		EDITOR_ASSETLIB | 
					
						
							| 
									
										
										
										
											2015-11-25 00:46:44 +01:00
										 |  |  | 	}; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-08-03 11:28:20 -03:00
										 |  |  | 	void set_visible_editor(EditorTable p_table) { _editor_select(p_table); } | 
					
						
							| 
									
										
										
										
											2017-03-05 16:44:50 +01:00
										 |  |  | 	static EditorNode *get_singleton() { return singleton; } | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 
 | 
					
						
							|  |  |  | 	EditorPlugin *get_editor_plugin_screen() { return editor_plugin_screen; } | 
					
						
							| 
									
										
										
										
											2016-03-29 20:02:53 -03:00
										 |  |  | 	EditorPluginList *get_editor_plugins_over() { return editor_plugins_over; } | 
					
						
							| 
									
										
										
										
											2017-10-29 20:32:09 +01:00
										 |  |  | 	EditorPluginList *get_editor_plugins_force_over() { return editor_plugins_force_over; } | 
					
						
							| 
									
										
										
										
											2017-06-08 19:57:35 +02:00
										 |  |  | 	EditorPluginList *get_editor_plugins_force_input_forwarding() { return editor_plugins_force_input_forwarding; } | 
					
						
							| 
									
										
										
										
											2018-05-17 01:01:47 -05:00
										 |  |  | 	EditorInspector *get_inspector() { return inspector_dock->get_inspector(); } | 
					
						
							|  |  |  | 	Container *get_inspector_dock_addon_area() { return inspector_dock->get_addon_area(); } | 
					
						
							| 
									
										
										
										
											2018-06-29 22:08:28 -05:00
										 |  |  | 	ScriptCreateDialog *get_script_create_dialog() { return scene_tree_dock->get_script_create_dialog(); } | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-02-13 22:31:38 -06:00
										 |  |  | 	ProjectSettingsEditor *get_project_settings() { return project_settings; } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-06-11 02:59:53 +02:00
										 |  |  | 	static void add_editor_plugin(EditorPlugin *p_editor, bool p_config_changed = false); | 
					
						
							|  |  |  | 	static void remove_editor_plugin(EditorPlugin *p_editor, bool p_config_changed = false); | 
					
						
							| 
									
										
										
										
											2014-03-11 13:38:30 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-05-26 21:49:05 -07:00
										 |  |  | 	static void disambiguate_filenames(const Vector<String> p_full_paths, Vector<String> &r_filenames); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-03-05 16:44:50 +01:00
										 |  |  | 	void new_inherited_scene() { _menu_option_confirm(FILE_NEW_INHERITED_SCENE, false); } | 
					
						
							| 
									
										
										
										
											2016-05-11 11:46:08 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-05-30 19:29:43 +01:00
										 |  |  | 	void set_docks_visible(bool p_show); | 
					
						
							|  |  |  | 	bool get_docks_visible() const; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	void set_distraction_free_mode(bool p_enter); | 
					
						
							| 
									
										
										
										
											2020-05-31 19:58:15 +02:00
										 |  |  | 	bool is_distraction_free_mode_enabled() const; | 
					
						
							| 
									
										
										
										
											2016-05-11 11:46:08 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-03-05 16:44:50 +01:00
										 |  |  | 	void add_control_to_dock(DockSlot p_slot, Control *p_control); | 
					
						
							|  |  |  | 	void remove_control_from_dock(Control *p_control); | 
					
						
							| 
									
										
										
										
											2016-02-27 23:10:44 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-06-11 02:59:53 +02:00
										 |  |  | 	void set_addon_plugin_enabled(const String &p_addon, bool p_enabled, bool p_config_changed = false); | 
					
						
							| 
									
										
										
										
											2016-02-27 23:10:44 -03:00
										 |  |  | 	bool is_addon_plugin_enabled(const String &p_addon) const; | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 
 | 
					
						
							|  |  |  | 	void edit_node(Node *p_node); | 
					
						
							| 
									
										
										
										
											2018-05-17 01:01:47 -05:00
										 |  |  | 	void edit_resource(const Ref<Resource> &p_resource) { inspector_dock->edit_resource(p_resource); }; | 
					
						
							|  |  |  | 	void open_resource(const String &p_type) { inspector_dock->open_resource(p_type); }; | 
					
						
							| 
									
										
										
										
											2015-09-01 00:49:47 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-03-05 16:44:50 +01:00
										 |  |  | 	void save_resource_in_path(const Ref<Resource> &p_resource, const String &p_path); | 
					
						
							|  |  |  | 	void save_resource(const Ref<Resource> &p_resource); | 
					
						
							|  |  |  | 	void save_resource_as(const Ref<Resource> &p_resource, const String &p_at_path = String()); | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-08-11 12:04:32 -03:00
										 |  |  | 	void show_about() { _menu_option_confirm(HELP_ABOUT, false); } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-05-04 22:50:23 -03:00
										 |  |  | 	static bool has_unsaved_changes() { return singleton->unsaved_cache; } | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 
 | 
					
						
							|  |  |  | 	static HBoxContainer *get_menu_hb() { return singleton->menu_hb; } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-06-18 22:10:48 -03:00
										 |  |  | 	void push_item(Object *p_object, const String &p_property = "", bool p_inspector_only = false); | 
					
						
							|  |  |  | 	void edit_item(Object *p_object); | 
					
						
							| 
									
										
										
										
											2019-02-22 17:42:29 -03:00
										 |  |  | 	void edit_item_resource(RES p_resource); | 
					
						
							| 
									
										
										
										
											2018-06-18 22:10:48 -03:00
										 |  |  | 	bool item_has_editor(Object *p_object); | 
					
						
							| 
									
										
										
										
											2019-03-04 16:44:39 -03:00
										 |  |  | 	void hide_top_editors(); | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-08-05 12:57:23 -05:00
										 |  |  | 	void select_editor_by_name(const String &p_name); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-03-05 16:44:50 +01:00
										 |  |  | 	void open_request(const String &p_path); | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-06-22 00:03:19 -03:00
										 |  |  | 	bool is_changing_scene() const; | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 
 | 
					
						
							|  |  |  | 	static EditorLog *get_log() { return singleton->log; } | 
					
						
							| 
									
										
										
										
											2020-12-19 14:17:42 +00:00
										 |  |  | 	Control *get_main_control(); | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-06-22 00:03:19 -03:00
										 |  |  | 	void set_edited_scene(Node *p_scene); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	Node *get_edited_scene() { return editor_data.get_edited_scene_root(); } | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-03-03 22:51:12 -03:00
										 |  |  | 	SubViewport *get_scene_root() { return scene_root; } //root of the scene being edited
 | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-03-05 16:44:50 +01:00
										 |  |  | 	void fix_dependencies(const String &p_for_file); | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 	void clear_scene() { _cleanup_scene(); } | 
					
						
							| 
									
										
										
										
											2019-08-15 19:47:21 +02:00
										 |  |  | 	int new_scene(); | 
					
						
							| 
									
										
										
										
											2019-08-28 19:42:27 +02:00
										 |  |  | 	Error load_scene(const String &p_scene, bool p_ignore_broken_deps = false, bool p_set_inherited = false, bool p_clear_errors = true, bool p_force_open_imported = false, bool p_silent_change_tab = false); | 
					
						
							| 
									
										
										
										
											2018-11-02 04:44:40 +01:00
										 |  |  | 	Error load_resource(const String &p_resource, bool p_ignore_broken_deps = false); | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-03-05 16:44:50 +01:00
										 |  |  | 	bool is_scene_open(const String &p_path); | 
					
						
							| 
									
										
										
										
											2015-08-23 20:15:56 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-06-22 00:03:19 -03:00
										 |  |  | 	void set_current_version(uint64_t p_version); | 
					
						
							|  |  |  | 	void set_current_scene(int p_idx); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-03-05 16:44:50 +01:00
										 |  |  | 	static EditorData &get_editor_data() { return singleton->editor_data; } | 
					
						
							| 
									
										
										
										
											2018-10-29 17:38:51 -03:00
										 |  |  | 	static EditorFolding &get_editor_folding() { return singleton->editor_folding; } | 
					
						
							| 
									
										
										
										
											2017-03-05 16:44:50 +01:00
										 |  |  | 	EditorHistory *get_editor_history() { return &editor_history; } | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 
 | 
					
						
							|  |  |  | 	static VSplitContainer *get_top_split() { return singleton->top_split; } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-05-11 20:57:52 -03:00
										 |  |  | 	void request_instance_scene(const String &p_path); | 
					
						
							| 
									
										
										
										
											2017-03-05 16:44:50 +01:00
										 |  |  | 	void request_instance_scenes(const Vector<String> &p_files); | 
					
						
							| 
									
										
										
										
											2017-01-21 13:07:29 +01:00
										 |  |  | 	FileSystemDock *get_filesystem_dock(); | 
					
						
							| 
									
										
										
										
											2017-02-01 09:45:45 -03:00
										 |  |  | 	ImportDock *get_import_dock(); | 
					
						
							| 
									
										
										
										
											2016-06-04 13:17:56 -03:00
										 |  |  | 	SceneTreeDock *get_scene_tree_dock(); | 
					
						
							| 
									
										
										
										
											2018-05-17 01:01:47 -05:00
										 |  |  | 	InspectorDock *get_inspector_dock(); | 
					
						
							| 
									
										
										
										
											2017-03-05 16:44:50 +01:00
										 |  |  | 	static UndoRedo *get_undo_redo() { return &singleton->editor_data.get_undo_redo(); } | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 
 | 
					
						
							|  |  |  | 	EditorSelection *get_editor_selection() { return editor_selection; } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-03-05 16:44:50 +01:00
										 |  |  | 	void set_convert_old_scene(bool p_old) { convert_old = p_old; } | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-02-07 02:52:05 +01:00
										 |  |  | 	void notify_all_debug_sessions_exited(); | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-02-07 02:52:05 +01:00
										 |  |  | 	OS::ProcessID has_child_process(OS::ProcessID p_pid) const { return editor_run.has_child_process(p_pid); } | 
					
						
							|  |  |  | 	void stop_child_process(OS::ProcessID p_pid); | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-01-03 16:52:37 -03:00
										 |  |  | 	Ref<Theme> get_editor_theme() const { return theme; } | 
					
						
							| 
									
										
										
										
											2019-07-19 22:21:30 +03:00
										 |  |  | 	Ref<Script> get_object_custom_type_base(const Object *p_object) const; | 
					
						
							|  |  |  | 	StringName get_object_custom_type_name(const Object *p_object) const; | 
					
						
							| 
									
										
										
										
											2019-06-11 15:43:37 -03:00
										 |  |  | 	Ref<Texture2D> get_object_icon(const Object *p_object, const String &p_fallback = "Object") const; | 
					
						
							|  |  |  | 	Ref<Texture2D> get_class_icon(const String &p_class, const String &p_fallback = "Object") const; | 
					
						
							| 
									
										
										
										
											2015-01-03 16:52:37 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-05-26 23:41:19 -03:00
										 |  |  | 	void show_accept(const String &p_text, const String &p_title); | 
					
						
							| 
									
										
										
										
											2019-12-21 14:57:15 +08:00
										 |  |  | 	void show_warning(const String &p_text, const String &p_title = TTR("Warning!")); | 
					
						
							| 
									
										
										
										
											2015-01-03 16:52:37 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-07-09 21:11:31 +03:00
										 |  |  | 	void _copy_warning(const String &p_str); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-01-08 14:22:50 +01:00
										 |  |  | 	Error export_preset(const String &p_preset, const String &p_path, bool p_debug, bool p_pack_only); | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 
 | 
					
						
							|  |  |  | 	static void register_editor_types(); | 
					
						
							| 
									
										
										
										
											2014-02-25 09:31:47 -03:00
										 |  |  | 	static void unregister_editor_types(); | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 
 | 
					
						
							|  |  |  | 	Control *get_gui_base() { return gui_base; } | 
					
						
							| 
									
										
										
										
											2016-06-17 01:13:23 -03:00
										 |  |  | 	Control *get_theme_base() { return gui_base->get_parent_control(); } | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-03-05 16:44:50 +01:00
										 |  |  | 	static void add_io_error(const String &p_error); | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-12-14 08:59:46 -03:00
										 |  |  | 	static void progress_add_task(const String &p_task, const String &p_label, int p_steps, bool p_can_cancel = false); | 
					
						
							|  |  |  | 	static bool progress_task_step(const String &p_task, const String &p_state, int p_step = -1, bool p_force_refresh = true); | 
					
						
							| 
									
										
										
										
											2017-03-05 16:44:50 +01:00
										 |  |  | 	static void progress_end_task(const String &p_task); | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-03-05 16:44:50 +01:00
										 |  |  | 	static void progress_add_task_bg(const String &p_task, const String &p_label, int p_steps); | 
					
						
							|  |  |  | 	static void progress_task_step_bg(const String &p_task, int p_step = -1); | 
					
						
							|  |  |  | 	static void progress_end_task_bg(const String &p_task); | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-08-26 10:32:15 -03:00
										 |  |  | 	void save_scene_to_path(String p_file, bool p_with_preview = true) { | 
					
						
							| 
									
										
										
										
											2020-05-14 16:41:43 +02:00
										 |  |  | 		if (p_with_preview) { | 
					
						
							| 
									
										
										
										
											2017-08-26 10:32:15 -03:00
										 |  |  | 			_save_scene_with_preview(p_file); | 
					
						
							| 
									
										
										
										
											2020-05-14 16:41:43 +02:00
										 |  |  | 		} else { | 
					
						
							| 
									
										
										
										
											2017-08-26 10:32:15 -03:00
										 |  |  | 			_save_scene(p_file); | 
					
						
							| 
									
										
										
										
											2020-05-14 16:41:43 +02:00
										 |  |  | 		} | 
					
						
							| 
									
										
										
										
											2017-08-26 10:32:15 -03:00
										 |  |  | 	} | 
					
						
							| 
									
										
										
										
											2014-06-19 02:23:03 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-03-05 16:44:50 +01:00
										 |  |  | 	bool is_scene_in_use(const String &p_path); | 
					
						
							| 
									
										
										
										
											2014-06-19 02:23:03 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 	void scan_import_changes(); | 
					
						
							| 
									
										
										
										
											2015-06-22 00:03:19 -03:00
										 |  |  | 
 | 
					
						
							|  |  |  | 	void save_layout(); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-03-20 23:31:41 -03:00
										 |  |  | 	void open_export_template_manager(); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-03-05 16:44:50 +01:00
										 |  |  | 	void reload_scene(const String &p_path); | 
					
						
							| 
									
										
										
										
											2016-06-28 18:53:31 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-06-07 22:08:12 -03:00
										 |  |  | 	bool is_exiting() const { return exiting; } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-06-19 20:49:04 +02:00
										 |  |  | 	Button *get_pause_button() { return pause_button; } | 
					
						
							| 
									
										
										
										
											2016-05-21 21:18:16 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-06-19 20:49:04 +02:00
										 |  |  | 	Button *add_bottom_panel_item(String p_text, Control *p_item); | 
					
						
							| 
									
										
										
										
											2016-01-17 20:03:57 -03:00
										 |  |  | 	void make_bottom_panel_item_visible(Control *p_item); | 
					
						
							|  |  |  | 	void raise_bottom_panel_item(Control *p_item); | 
					
						
							|  |  |  | 	void hide_bottom_panel(); | 
					
						
							| 
									
										
										
										
											2016-02-28 19:58:17 +00:00
										 |  |  | 	void remove_bottom_panel_item(Control *p_item); | 
					
						
							| 
									
										
										
										
											2016-01-17 20:03:57 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-03-05 16:44:50 +01:00
										 |  |  | 	Variant drag_resource(const Ref<Resource> &p_res, Control *p_from); | 
					
						
							| 
									
										
										
										
											2017-10-24 23:09:04 +01:00
										 |  |  | 	Variant drag_files_and_dirs(const Vector<String> &p_paths, Control *p_from); | 
					
						
							| 
									
										
										
										
											2016-05-11 11:46:08 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-12-16 00:04:21 +01:00
										 |  |  | 	void add_tool_menu_item(const String &p_name, const Callable &p_callback); | 
					
						
							| 
									
										
										
										
											2017-03-05 16:44:50 +01:00
										 |  |  | 	void add_tool_submenu_item(const String &p_name, PopupMenu *p_submenu); | 
					
						
							|  |  |  | 	void remove_tool_menu_item(const String &p_name); | 
					
						
							| 
									
										
										
										
											2016-05-11 11:46:08 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-01-25 17:23:56 -03:00
										 |  |  | 	void save_all_scenes(); | 
					
						
							| 
									
										
										
										
											2019-06-04 05:36:23 +02:00
										 |  |  | 	void save_scene_list(Vector<String> p_scene_filenames); | 
					
						
							| 
									
										
										
										
											2019-01-25 17:23:56 -03:00
										 |  |  | 	void restart_editor(); | 
					
						
							| 
									
										
										
										
											2018-07-19 18:58:15 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-02-13 11:06:56 -03:00
										 |  |  | 	void notify_settings_changed(); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-08-29 15:51:23 +02:00
										 |  |  | 	void dim_editor(bool p_dimming, bool p_force_dim = false); | 
					
						
							| 
									
										
										
										
											2019-10-31 16:58:53 -03:00
										 |  |  | 	bool is_editor_dimmed() const; | 
					
						
							| 
									
										
										
										
											2017-03-06 20:11:56 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-05-17 01:01:47 -05:00
										 |  |  | 	void edit_current() { _edit_current(); }; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	void update_keying() const { inspector_dock->update_keying(); }; | 
					
						
							| 
									
										
										
										
											2018-09-21 00:14:04 -03:00
										 |  |  | 	bool has_scenes_in_session(); | 
					
						
							| 
									
										
										
										
											2018-05-17 01:01:47 -05:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-04-07 15:46:52 -03:00
										 |  |  | 	int execute_and_show_output(const String &p_title, const String &p_path, const List<String> &p_arguments, bool p_close_on_ok = true, bool p_close_on_errors = false); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-03-09 00:00:52 +01:00
										 |  |  | 	EditorNode(); | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 	~EditorNode(); | 
					
						
							| 
									
										
										
										
											2017-03-05 16:44:50 +01:00
										 |  |  | 	void get_singleton(const char *arg1, bool arg2); | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-09-22 09:20:28 -03:00
										 |  |  | 	void add_resource_conversion_plugin(const Ref<EditorResourceConversionPlugin> &p_plugin); | 
					
						
							|  |  |  | 	void remove_resource_conversion_plugin(const Ref<EditorResourceConversionPlugin> &p_plugin); | 
					
						
							| 
									
										
										
										
											2020-03-17 07:33:00 +01:00
										 |  |  | 	Vector<Ref<EditorResourceConversionPlugin>> find_resource_conversion_plugin(const Ref<Resource> &p_for_resource); | 
					
						
							| 
									
										
										
										
											2017-09-22 09:20:28 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-02-25 09:31:47 -03:00
										 |  |  | 	static void add_init_callback(EditorNodeInitCallback p_callback) { _init_callbacks.push_back(p_callback); } | 
					
						
							| 
									
										
										
										
											2016-09-14 19:37:37 -03:00
										 |  |  | 	static void add_build_callback(EditorBuildCallback p_callback); | 
					
						
							| 
									
										
										
										
											2019-03-22 02:08:28 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  | 	bool ensure_main_scene(bool p_from_native); | 
					
						
							| 
									
										
										
										
											2019-07-18 04:08:24 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | 	void run_play(); | 
					
						
							| 
									
										
										
										
											2020-04-05 17:19:24 +03:00
										 |  |  | 	void run_play_current(); | 
					
						
							|  |  |  | 	void run_play_custom(const String &p_custom); | 
					
						
							| 
									
										
										
										
											2019-07-18 04:08:24 +02:00
										 |  |  | 	void run_stop(); | 
					
						
							| 
									
										
										
										
											2020-04-05 17:19:24 +03:00
										 |  |  | 	bool is_run_playing() const; | 
					
						
							|  |  |  | 	String get_run_playing_scene() const; | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | struct EditorProgress { | 
					
						
							|  |  |  | 	String task; | 
					
						
							| 
									
										
										
										
											2017-12-14 08:59:46 -03:00
										 |  |  | 	bool step(const String &p_state, int p_step = -1, bool p_force_refresh = true) { return EditorNode::progress_task_step(task, p_state, p_step, p_force_refresh); } | 
					
						
							|  |  |  | 	EditorProgress(const String &p_task, const String &p_label, int p_amount, bool p_can_cancel = false) { | 
					
						
							|  |  |  | 		EditorNode::progress_add_task(p_task, p_label, p_amount, p_can_cancel); | 
					
						
							| 
									
										
										
										
											2017-03-05 16:44:50 +01:00
										 |  |  | 		task = p_task; | 
					
						
							|  |  |  | 	} | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 	~EditorProgress() { EditorNode::progress_end_task(task); } | 
					
						
							|  |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-03-29 20:02:53 -03:00
										 |  |  | class EditorPluginList : public Object { | 
					
						
							|  |  |  | private: | 
					
						
							| 
									
										
										
										
											2017-03-05 16:44:50 +01:00
										 |  |  | 	Vector<EditorPlugin *> plugins_list; | 
					
						
							| 
									
										
										
										
											2016-03-29 20:02:53 -03:00
										 |  |  | 
 | 
					
						
							|  |  |  | public: | 
					
						
							| 
									
										
										
										
											2017-03-05 16:44:50 +01:00
										 |  |  | 	void set_plugins_list(Vector<EditorPlugin *> p_plugins_list) { | 
					
						
							| 
									
										
										
										
											2016-03-29 20:02:53 -03:00
										 |  |  | 		plugins_list = p_plugins_list; | 
					
						
							|  |  |  | 	} | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-03-05 16:44:50 +01:00
										 |  |  | 	Vector<EditorPlugin *> &get_plugins_list() { | 
					
						
							| 
									
										
										
										
											2016-03-29 20:02:53 -03:00
										 |  |  | 		return plugins_list; | 
					
						
							|  |  |  | 	} | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	void make_visible(bool p_visible); | 
					
						
							|  |  |  | 	void edit(Object *p_object); | 
					
						
							| 
									
										
										
										
											2017-10-15 22:33:25 +02:00
										 |  |  | 	bool forward_gui_input(const Ref<InputEvent> &p_event); | 
					
						
							| 
									
										
										
										
											2018-09-18 20:00:07 +02:00
										 |  |  | 	void forward_canvas_draw_over_viewport(Control *p_overlay); | 
					
						
							|  |  |  | 	void forward_canvas_force_draw_over_viewport(Control *p_overlay); | 
					
						
							| 
									
										
										
										
											2020-03-26 18:49:16 -03:00
										 |  |  | 	bool forward_spatial_gui_input(Camera3D *p_camera, const Ref<InputEvent> &p_event, bool serve_when_force_input_enabled); | 
					
						
							| 
									
										
										
										
											2018-09-18 20:00:07 +02:00
										 |  |  | 	void forward_spatial_draw_over_viewport(Control *p_overlay); | 
					
						
							|  |  |  | 	void forward_spatial_force_draw_over_viewport(Control *p_overlay); | 
					
						
							| 
									
										
										
										
											2017-06-08 19:57:35 +02:00
										 |  |  | 	void add_plugin(EditorPlugin *p_plugin); | 
					
						
							| 
									
										
										
										
											2019-02-25 16:49:06 +01:00
										 |  |  | 	void remove_plugin(EditorPlugin *p_plugin); | 
					
						
							| 
									
										
										
										
											2016-03-29 20:02:53 -03:00
										 |  |  | 	void clear(); | 
					
						
							| 
									
										
										
										
											2020-12-15 12:04:21 +00:00
										 |  |  | 	bool is_empty(); | 
					
						
							| 
									
										
										
										
											2016-03-29 20:02:53 -03:00
										 |  |  | 
 | 
					
						
							|  |  |  | 	EditorPluginList(); | 
					
						
							|  |  |  | 	~EditorPluginList(); | 
					
						
							| 
									
										
										
										
											2017-03-05 16:44:50 +01:00
										 |  |  | }; | 
					
						
							| 
									
										
										
										
											2016-03-29 20:02:53 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | struct EditorProgressBG { | 
					
						
							|  |  |  | 	String task; | 
					
						
							| 
									
										
										
										
											2017-03-05 16:44:50 +01:00
										 |  |  | 	void step(int p_step = -1) { EditorNode::progress_task_step_bg(task, p_step); } | 
					
						
							|  |  |  | 	EditorProgressBG(const String &p_task, const String &p_label, int p_amount) { | 
					
						
							|  |  |  | 		EditorNode::progress_add_task_bg(p_task, p_label, p_amount); | 
					
						
							|  |  |  | 		task = p_task; | 
					
						
							|  |  |  | 	} | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 	~EditorProgressBG() { EditorNode::progress_end_task_bg(task); } | 
					
						
							|  |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-08-26 17:46:49 +02:00
										 |  |  | #endif // EDITOR_NODE_H
 |