| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | /**************************************************************************/ | 
					
						
							|  |  |  | /*  editor_node.h                                                         */ | 
					
						
							|  |  |  | /**************************************************************************/ | 
					
						
							|  |  |  | /*                         This file is part of:                          */ | 
					
						
							|  |  |  | /*                             GODOT ENGINE                               */ | 
					
						
							|  |  |  | /*                        https://godotengine.org                         */ | 
					
						
							|  |  |  | /**************************************************************************/ | 
					
						
							|  |  |  | /* Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md). */ | 
					
						
							|  |  |  | /* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur.                  */ | 
					
						
							|  |  |  | /*                                                                        */ | 
					
						
							|  |  |  | /* 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
										 |  |  | #pragma once
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-06-11 18:23:48 +02:00
										 |  |  | #include "core/object/script_language.h"
 | 
					
						
							| 
									
										
										
										
											2021-02-10 19:22:13 +01:00
										 |  |  | #include "core/templates/safe_refcount.h"
 | 
					
						
							| 
									
										
										
										
											2022-11-19 12:45:49 +01:00
										 |  |  | #include "editor/editor_data.h"
 | 
					
						
							| 
									
										
										
										
											2024-04-21 01:11:35 -07:00
										 |  |  | #include "editor/plugins/editor_plugin.h"
 | 
					
						
							| 
									
										
										
										
											2025-06-10 16:47:26 +02:00
										 |  |  | #include "editor/settings/editor_folding.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; | 
					
						
							| 
									
										
										
										
											2022-07-31 21:14:15 +03:00
										 |  |  | class ColorPicker; | 
					
						
							| 
									
										
										
										
											2019-12-24 15:17:23 +08:00
										 |  |  | class ConfirmationDialog; | 
					
						
							|  |  |  | class Control; | 
					
						
							| 
									
										
										
										
											2023-04-07 18:59:49 +02:00
										 |  |  | class FileDialog; | 
					
						
							| 
									
										
										
										
											2025-05-01 18:09:31 +05:30
										 |  |  | class HBoxContainer; | 
					
						
							| 
									
										
										
										
											2023-04-07 18:59:49 +02:00
										 |  |  | class MenuBar; | 
					
						
							|  |  |  | class MenuButton; | 
					
						
							|  |  |  | class OptionButton; | 
					
						
							|  |  |  | class Panel; | 
					
						
							|  |  |  | class PanelContainer; | 
					
						
							| 
									
										
										
										
											2023-04-12 21:02:28 +02:00
										 |  |  | class RichTextLabel; | 
					
						
							| 
									
										
										
										
											2023-04-07 18:59:49 +02:00
										 |  |  | class SubViewport; | 
					
						
							|  |  |  | class TextureProgressBar; | 
					
						
							| 
									
										
										
										
											2025-06-11 20:31:59 +08:00
										 |  |  | class Translation; | 
					
						
							| 
									
										
										
										
											2023-04-07 18:59:49 +02:00
										 |  |  | class Tree; | 
					
						
							| 
									
										
										
										
											2023-04-05 17:14:46 +02:00
										 |  |  | class VBoxContainer; | 
					
						
							| 
									
										
										
										
											2023-04-07 18:59:49 +02:00
										 |  |  | class VSplitContainer; | 
					
						
							|  |  |  | class Window; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-10-06 02:00:36 -05:00
										 |  |  | class AudioStreamImportSettingsDialog; | 
					
						
							| 
									
										
										
										
											2023-04-07 18:59:49 +02:00
										 |  |  | class AudioStreamPreviewGenerator; | 
					
						
							|  |  |  | class BackgroundProgress; | 
					
						
							| 
									
										
										
										
											2019-12-24 15:17:23 +08:00
										 |  |  | class DependencyEditor; | 
					
						
							|  |  |  | class DependencyErrorDialog; | 
					
						
							| 
									
										
										
										
											2023-10-27 15:55:07 -04:00
										 |  |  | class DockSplitContainer; | 
					
						
							| 
									
										
										
										
											2023-10-06 02:00:36 -05:00
										 |  |  | class DynamicFontImportSettingsDialog; | 
					
						
							| 
									
										
										
										
											2019-12-24 15:17:23 +08:00
										 |  |  | class EditorAbout; | 
					
						
							| 
									
										
										
										
											2023-04-07 18:59:49 +02:00
										 |  |  | class EditorBuildProfileManager; | 
					
						
							| 
									
										
										
										
											2024-01-30 17:22:22 -05:00
										 |  |  | class EditorBottomPanel; | 
					
						
							| 
									
										
										
										
											2021-05-29 18:58:16 +05:30
										 |  |  | class EditorCommandPalette; | 
					
						
							| 
									
										
										
										
											2023-10-27 15:55:07 -04:00
										 |  |  | class EditorDockManager; | 
					
						
							| 
									
										
										
										
											2019-12-24 15:17:23 +08:00
										 |  |  | class EditorExport; | 
					
						
							| 
									
										
										
										
											2024-02-13 14:20:23 -06:00
										 |  |  | class EditorExportPreset; | 
					
						
							| 
									
										
										
										
											2019-12-24 15:17:23 +08:00
										 |  |  | class EditorFeatureProfileManager; | 
					
						
							| 
									
										
										
										
											2022-11-19 12:45:49 +01:00
										 |  |  | class EditorFileDialog; | 
					
						
							| 
									
										
										
										
											2022-02-12 02:46:22 +01:00
										 |  |  | class EditorFolding; | 
					
						
							| 
									
										
										
										
											2019-12-24 15:17:23 +08:00
										 |  |  | class EditorLayoutsDialog; | 
					
						
							|  |  |  | class EditorLog; | 
					
						
							| 
									
										
										
										
											2024-08-19 18:08:31 -04:00
										 |  |  | class EditorMainScreen; | 
					
						
							| 
									
										
										
										
											2023-04-07 18:59:49 +02:00
										 |  |  | class EditorNativeShaderSourceVisualizer; | 
					
						
							| 
									
										
										
										
											2016-03-29 20:02:53 -03:00
										 |  |  | class EditorPluginList; | 
					
						
							| 
									
										
										
										
											2019-12-24 15:17:23 +08:00
										 |  |  | class EditorResourcePreview; | 
					
						
							| 
									
										
										
										
											2022-07-31 21:14:15 +03:00
										 |  |  | class EditorResourceConversionPlugin; | 
					
						
							| 
									
										
										
										
											2023-04-12 21:02:28 +02:00
										 |  |  | class EditorRunBar; | 
					
						
							| 
									
										
										
										
											2023-08-24 12:24:29 +02:00
										 |  |  | class EditorSceneTabs; | 
					
						
							| 
									
										
										
										
											2022-11-19 12:45:49 +01:00
										 |  |  | class EditorSelectionHistory; | 
					
						
							| 
									
										
										
										
											2019-12-24 15:17:23 +08:00
										 |  |  | class EditorSettingsDialog; | 
					
						
							| 
									
										
										
										
											2023-04-07 18:59:49 +02:00
										 |  |  | class EditorTitleBar; | 
					
						
							| 
									
										
										
										
											2019-12-24 15:17:23 +08:00
										 |  |  | class ExportTemplateManager; | 
					
						
							| 
									
										
										
										
											2023-12-02 21:33:38 +01:00
										 |  |  | class EditorQuickOpenDialog; | 
					
						
							| 
									
										
										
										
											2022-04-02 13:43:15 +02:00
										 |  |  | class FBXImporterManager; | 
					
						
							| 
									
										
										
										
											2019-12-24 15:17:23 +08:00
										 |  |  | class FileSystemDock; | 
					
						
							| 
									
										
										
										
											2022-11-06 20:53:20 +01:00
										 |  |  | class HistoryDock; | 
					
						
							| 
									
										
										
										
											2019-12-24 15:17:23 +08:00
										 |  |  | class OrphanResourcesDialog; | 
					
						
							|  |  |  | class ProgressDialog; | 
					
						
							|  |  |  | class ProjectExportDialog; | 
					
						
							|  |  |  | class ProjectSettingsEditor; | 
					
						
							| 
									
										
										
										
											2023-10-06 02:00:36 -05:00
										 |  |  | class SceneImportSettingsDialog; | 
					
						
							| 
									
										
										
										
											2025-02-19 14:27:27 +01:00
										 |  |  | class ProjectUpgradeTool; | 
					
						
							| 
									
										
										
										
											2015-06-13 22:12:53 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-04-18 14:21:57 +05:30
										 |  |  | #ifdef ANDROID_ENABLED
 | 
					
						
							|  |  |  | class TouchActionsPanel; | 
					
						
							|  |  |  | #endif
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-08-17 08:27:10 -04:00
										 |  |  | struct EditorProgress { | 
					
						
							|  |  |  | 	String task; | 
					
						
							| 
									
										
										
										
											2024-09-04 14:26:48 +08:00
										 |  |  | 	bool force_background = false; | 
					
						
							| 
									
										
										
										
											2024-08-17 08:27:10 -04:00
										 |  |  | 	bool step(const String &p_state, int p_step = -1, bool p_force_refresh = true); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-09-04 14:26:48 +08:00
										 |  |  | 	EditorProgress(const String &p_task, const String &p_label, int p_amount, bool p_can_cancel = false, bool p_force_background = false); | 
					
						
							| 
									
										
										
										
											2024-08-17 08:27:10 -04:00
										 |  |  | 	~EditorProgress(); | 
					
						
							|  |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | class EditorNode : public Node { | 
					
						
							| 
									
										
										
										
											2017-01-02 23:03:46 -03:00
										 |  |  | 	GDCLASS(EditorNode, Node); | 
					
						
							| 
									
										
										
										
											2015-11-27 21:42:48 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-02-27 23:10:44 -03:00
										 |  |  | public: | 
					
						
							| 
									
										
										
										
											2022-09-09 10:29:59 +10:00
										 |  |  | 	enum SceneNameCasing { | 
					
						
							|  |  |  | 		SCENE_NAME_CASING_AUTO, | 
					
						
							|  |  |  | 		SCENE_NAME_CASING_PASCAL_CASE, | 
					
						
							| 
									
										
										
										
											2023-06-11 18:23:48 +02:00
										 |  |  | 		SCENE_NAME_CASING_SNAKE_CASE, | 
					
						
							|  |  |  | 		SCENE_NAME_CASING_KEBAB_CASE, | 
					
						
							| 
									
										
										
										
											2024-07-28 21:32:28 +02:00
										 |  |  | 		SCENE_NAME_CASING_CAMEL_CASE, | 
					
						
							| 
									
										
										
										
											2022-09-09 10:29:59 +10:00
										 |  |  | 	}; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-04-22 19:22:06 -04:00
										 |  |  | 	enum ActionOnPlay { | 
					
						
							|  |  |  | 		ACTION_ON_PLAY_DO_NOTHING, | 
					
						
							|  |  |  | 		ACTION_ON_PLAY_OPEN_OUTPUT, | 
					
						
							|  |  |  | 		ACTION_ON_PLAY_OPEN_DEBUGGER, | 
					
						
							|  |  |  | 	}; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	enum ActionOnStop { | 
					
						
							|  |  |  | 		ACTION_ON_STOP_DO_NOTHING, | 
					
						
							|  |  |  | 		ACTION_ON_STOP_CLOSE_BUTTOM_PANEL, | 
					
						
							|  |  |  | 	}; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 	enum MenuOptions { | 
					
						
							| 
									
										
										
										
											2025-01-03 21:30:25 +01:00
										 |  |  | 		// Scene menu.
 | 
					
						
							| 
									
										
										
										
											2025-04-29 23:30:31 +02:00
										 |  |  | 		SCENE_NEW_SCENE, | 
					
						
							|  |  |  | 		SCENE_NEW_INHERITED_SCENE, | 
					
						
							|  |  |  | 		SCENE_OPEN_SCENE, | 
					
						
							|  |  |  | 		SCENE_OPEN_PREV, | 
					
						
							|  |  |  | 		SCENE_OPEN_RECENT, | 
					
						
							|  |  |  | 		SCENE_SAVE_SCENE, | 
					
						
							|  |  |  | 		SCENE_SAVE_AS_SCENE, | 
					
						
							|  |  |  | 		SCENE_SAVE_ALL_SCENES, | 
					
						
							|  |  |  | 		SCENE_MULTI_SAVE_AS_SCENE, | 
					
						
							|  |  |  | 		SCENE_QUICK_OPEN, | 
					
						
							|  |  |  | 		SCENE_QUICK_OPEN_SCENE, | 
					
						
							|  |  |  | 		SCENE_QUICK_OPEN_SCRIPT, | 
					
						
							|  |  |  | 		SCENE_UNDO, | 
					
						
							|  |  |  | 		SCENE_REDO, | 
					
						
							|  |  |  | 		SCENE_RELOAD_SAVED_SCENE, | 
					
						
							|  |  |  | 		SCENE_CLOSE, | 
					
						
							|  |  |  | 		SCENE_QUIT, | 
					
						
							| 
									
										
										
										
											2025-01-03 21:30:25 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  | 		FILE_EXPORT_MESH_LIBRARY, | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 		// Project menu.
 | 
					
						
							|  |  |  | 		PROJECT_OPEN_SETTINGS, | 
					
						
							| 
									
										
										
										
											2025-05-16 00:09:15 -03:00
										 |  |  | 		PROJECT_FIND_IN_FILES, | 
					
						
							| 
									
										
										
										
											2025-01-03 21:30:25 +01:00
										 |  |  | 		PROJECT_VERSION_CONTROL, | 
					
						
							|  |  |  | 		PROJECT_EXPORT, | 
					
						
							| 
									
										
										
										
											2024-11-25 22:01:12 -08:00
										 |  |  | 		PROJECT_PACK_AS_ZIP, | 
					
						
							| 
									
										
										
										
											2025-01-03 21:30:25 +01:00
										 |  |  | 		PROJECT_INSTALL_ANDROID_SOURCE, | 
					
						
							|  |  |  | 		PROJECT_OPEN_USER_DATA_FOLDER, | 
					
						
							|  |  |  | 		PROJECT_RELOAD_CURRENT_PROJECT, | 
					
						
							|  |  |  | 		PROJECT_QUIT_TO_PROJECT_MANAGER, | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-11-29 01:08:31 -03:00
										 |  |  | 		TOOLS_ORPHAN_RESOURCES, | 
					
						
							| 
									
										
										
										
											2022-07-14 14:18:18 +02:00
										 |  |  | 		TOOLS_BUILD_PROFILE_MANAGER, | 
					
						
							| 
									
										
										
										
											2025-02-19 14:27:27 +01:00
										 |  |  | 		TOOLS_PROJECT_UPGRADE, | 
					
						
							| 
									
										
										
										
											2018-03-16 21:50:35 -04:00
										 |  |  | 		TOOLS_CUSTOM, | 
					
						
							| 
									
										
										
										
											2019-03-29 06:53:11 -07:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-01-03 21:30:25 +01:00
										 |  |  | 		VCS_METADATA, | 
					
						
							|  |  |  | 		VCS_SETTINGS, | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 		// Editor menu.
 | 
					
						
							|  |  |  | 		EDITOR_OPEN_SETTINGS, | 
					
						
							|  |  |  | 		EDITOR_COMMAND_PALETTE, | 
					
						
							|  |  |  | 		EDITOR_TAKE_SCREENSHOT, | 
					
						
							|  |  |  | 		EDITOR_TOGGLE_FULLSCREEN, | 
					
						
							|  |  |  | 		EDITOR_OPEN_DATA_FOLDER, | 
					
						
							|  |  |  | 		EDITOR_OPEN_CONFIG_FOLDER, | 
					
						
							|  |  |  | 		EDITOR_MANAGE_FEATURE_PROFILES, | 
					
						
							|  |  |  | 		EDITOR_MANAGE_EXPORT_TEMPLATES, | 
					
						
							|  |  |  | 		EDITOR_CONFIGURE_FBX_IMPORTER, | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 		LAYOUT_SAVE, | 
					
						
							|  |  |  | 		LAYOUT_DELETE, | 
					
						
							|  |  |  | 		LAYOUT_DEFAULT, | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 		// Help menu.
 | 
					
						
							| 
									
										
										
										
											2017-05-26 15:34:41 +01:00
										 |  |  | 		HELP_SEARCH, | 
					
						
							|  |  |  | 		HELP_DOCS, | 
					
						
							| 
									
										
										
										
											2024-04-14 15:34:49 -04:00
										 |  |  | 		HELP_FORUM, | 
					
						
							| 
									
										
										
										
											2025-01-03 21:30:25 +01:00
										 |  |  | 		HELP_COMMUNITY, | 
					
						
							| 
									
										
										
										
											2023-05-27 18:21:23 +02:00
										 |  |  | 		HELP_COPY_SYSTEM_INFO, | 
					
						
							| 
									
										
										
										
											2025-01-03 21:30:25 +01:00
										 |  |  | 		HELP_REPORT_A_BUG, | 
					
						
							| 
									
										
										
										
											2021-06-15 18:24:34 -06:00
										 |  |  | 		HELP_SUGGEST_A_FEATURE, | 
					
						
							| 
									
										
										
										
											2020-01-29 23:10:09 +01:00
										 |  |  | 		HELP_SEND_DOCS_FEEDBACK, | 
					
						
							| 
									
										
										
										
											2017-05-26 15:34:41 +01:00
										 |  |  | 		HELP_ABOUT, | 
					
						
							| 
									
										
										
										
											2021-05-15 01:57:21 +02:00
										 |  |  | 		HELP_SUPPORT_GODOT_DEVELOPMENT, | 
					
						
							| 
									
										
										
										
											2017-05-26 15:34:41 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-01-03 21:30:25 +01:00
										 |  |  | 		// Update spinner menu.
 | 
					
						
							|  |  |  | 		SPINNER_UPDATE_CONTINUOUSLY, | 
					
						
							|  |  |  | 		SPINNER_UPDATE_WHEN_CHANGED, | 
					
						
							|  |  |  | 		SPINNER_UPDATE_SPINNER_HIDE, | 
					
						
							| 
									
										
										
										
											2018-07-19 18:58:15 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-01-03 21:30:25 +01:00
										 |  |  | 		// Non-menu options.
 | 
					
						
							|  |  |  | 		SCENE_TAB_CLOSE, | 
					
						
							| 
									
										
										
										
											2025-04-29 23:30:31 +02:00
										 |  |  | 		SAVE_AND_RUN, | 
					
						
							|  |  |  | 		SAVE_AND_RUN_MAIN_SCENE, | 
					
						
							| 
									
										
										
										
											2025-01-03 21:30:25 +01:00
										 |  |  | 		RESOURCE_SAVE, | 
					
						
							|  |  |  | 		RESOURCE_SAVE_AS, | 
					
						
							|  |  |  | 		SETTINGS_PICK_MAIN_SCENE, | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 	}; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-04-30 21:13:10 +01:00
										 |  |  | 	struct ExecuteThreadArgs { | 
					
						
							|  |  |  | 		String path; | 
					
						
							|  |  |  | 		List<String> args; | 
					
						
							|  |  |  | 		String output; | 
					
						
							|  |  |  | 		Thread execute_output_thread; | 
					
						
							|  |  |  | 		Mutex execute_output_mutex; | 
					
						
							|  |  |  | 		int exitcode = 0; | 
					
						
							|  |  |  | 		SafeFlag done; | 
					
						
							|  |  |  | 	}; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | private: | 
					
						
							|  |  |  | 	friend class EditorSceneTabs; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-03-30 20:12:26 +02:00
										 |  |  | 	enum { | 
					
						
							|  |  |  | 		MAX_INIT_CALLBACKS = 128, | 
					
						
							| 
									
										
										
										
											2025-01-03 21:30:25 +01:00
										 |  |  | 		MAX_BUILD_CALLBACKS = 128, | 
					
						
							| 
									
										
										
										
											2022-03-30 20:12:26 +02:00
										 |  |  | 	}; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	struct ExportDefer { | 
					
						
							|  |  |  | 		String preset; | 
					
						
							|  |  |  | 		String path; | 
					
						
							|  |  |  | 		bool debug = false; | 
					
						
							|  |  |  | 		bool pack_only = false; | 
					
						
							| 
									
										
										
										
											2023-12-05 23:35:52 -05:00
										 |  |  | 		bool android_build_template = false; | 
					
						
							| 
									
										
										
										
											2024-09-17 12:48:10 +02:00
										 |  |  | 		bool patch = false; | 
					
						
							|  |  |  | 		Vector<String> patches; | 
					
						
							| 
									
										
										
										
											2022-03-30 20:12:26 +02:00
										 |  |  | 	} export_defer; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	static EditorNode *singleton; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	EditorData editor_data; | 
					
						
							|  |  |  | 	EditorFolding editor_folding; | 
					
						
							|  |  |  | 	EditorSelectionHistory editor_history; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	EditorCommandPalette *command_palette = nullptr; | 
					
						
							| 
									
										
										
										
											2023-12-02 21:33:38 +01:00
										 |  |  | 	EditorQuickOpenDialog *quick_open_dialog = nullptr; | 
					
						
							| 
									
										
										
										
											2022-03-30 20:12:26 +02:00
										 |  |  | 	EditorExport *editor_export = nullptr; | 
					
						
							|  |  |  | 	EditorLog *log = nullptr; | 
					
						
							|  |  |  | 	EditorNativeShaderSourceVisualizer *native_shader_source_visualizer = nullptr; | 
					
						
							|  |  |  | 	EditorPluginList *editor_plugins_force_input_forwarding = nullptr; | 
					
						
							|  |  |  | 	EditorPluginList *editor_plugins_force_over = nullptr; | 
					
						
							|  |  |  | 	EditorPluginList *editor_plugins_over = nullptr; | 
					
						
							| 
									
										
										
										
											2024-05-18 10:45:16 +07:00
										 |  |  | 	EditorQuickOpenDialog *quick_open_color_palette = nullptr; | 
					
						
							| 
									
										
										
										
											2022-03-30 20:12:26 +02:00
										 |  |  | 	EditorResourcePreview *resource_preview = nullptr; | 
					
						
							|  |  |  | 	EditorSelection *editor_selection = nullptr; | 
					
						
							|  |  |  | 	EditorSettingsDialog *editor_settings_dialog = nullptr; | 
					
						
							| 
									
										
										
										
											2022-11-06 20:53:20 +01:00
										 |  |  | 	HistoryDock *history_dock = nullptr; | 
					
						
							| 
									
										
										
										
											2022-03-30 20:12:26 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | 	ProjectExportDialog *project_export = nullptr; | 
					
						
							|  |  |  | 	ProjectSettingsEditor *project_settings_editor = nullptr; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-04-02 13:43:15 +02:00
										 |  |  | 	FBXImporterManager *fbx_importer_manager = nullptr; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-03-30 20:12:26 +02:00
										 |  |  | 	Vector<EditorPlugin *> editor_plugins; | 
					
						
							|  |  |  | 	bool _initializing_plugins = false; | 
					
						
							| 
									
										
										
										
											2022-05-13 15:04:37 +02:00
										 |  |  | 	HashMap<String, EditorPlugin *> addon_name_to_plugin; | 
					
						
							| 
									
										
										
										
											2022-12-28 13:56:53 +01:00
										 |  |  | 	LocalVector<String> pending_addons; | 
					
						
							| 
									
										
										
										
											2023-01-21 22:49:06 +01:00
										 |  |  | 	HashMap<ObjectID, HashSet<EditorPlugin *>> active_plugins; | 
					
						
							|  |  |  | 	bool is_main_screen_editing = false; | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-04-04 15:06:57 +02:00
										 |  |  | 	Control *gui_base = nullptr; | 
					
						
							|  |  |  | 	VBoxContainer *main_vbox = nullptr; | 
					
						
							| 
									
										
										
										
											2022-09-07 17:44:36 -07:00
										 |  |  | 	OptionButton *renderer = nullptr; | 
					
						
							| 
									
										
										
										
											2018-07-19 18:58:15 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-04-18 14:21:57 +05:30
										 |  |  | #ifdef ANDROID_ENABLED
 | 
					
						
							| 
									
										
										
										
											2025-05-01 18:09:19 +05:30
										 |  |  | 	VBoxContainer *base_vbox = nullptr; // It only contains the title_bar and main_hbox.
 | 
					
						
							|  |  |  | 	HBoxContainer *main_hbox = nullptr; // It only contains the touch_actions_panel and main_vbox.
 | 
					
						
							| 
									
										
										
										
											2025-04-18 14:21:57 +05:30
										 |  |  | 	TouchActionsPanel *touch_actions_panel = nullptr; | 
					
						
							|  |  |  | 	void _touch_actions_panel_mode_changed(); | 
					
						
							|  |  |  | #endif
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-04-04 15:06:57 +02:00
										 |  |  | 	ConfirmationDialog *video_restart_dialog = nullptr; | 
					
						
							| 
									
										
										
										
											2018-07-19 18:58:15 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-09-07 17:44:36 -07:00
										 |  |  | 	int renderer_current = 0; | 
					
						
							|  |  |  | 	String renderer_request; | 
					
						
							| 
									
										
										
										
											2015-06-13 22:12:53 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-03-30 20:12:26 +02:00
										 |  |  | 	// Split containers.
 | 
					
						
							| 
									
										
										
										
											2023-10-27 15:55:07 -04:00
										 |  |  | 	DockSplitContainer *left_l_hsplit = nullptr; | 
					
						
							|  |  |  | 	DockSplitContainer *left_l_vsplit = nullptr; | 
					
						
							|  |  |  | 	DockSplitContainer *left_r_hsplit = nullptr; | 
					
						
							|  |  |  | 	DockSplitContainer *left_r_vsplit = nullptr; | 
					
						
							|  |  |  | 	DockSplitContainer *main_hsplit = nullptr; | 
					
						
							|  |  |  | 	DockSplitContainer *right_hsplit = nullptr; | 
					
						
							|  |  |  | 	DockSplitContainer *right_l_vsplit = nullptr; | 
					
						
							|  |  |  | 	DockSplitContainer *right_r_vsplit = nullptr; | 
					
						
							|  |  |  | 	DockSplitContainer *center_split = nullptr; | 
					
						
							| 
									
										
										
										
											2018-09-14 16:56:18 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-03-30 20:12:26 +02:00
										 |  |  | 	// Main tabs.
 | 
					
						
							| 
									
										
										
										
											2023-08-24 12:24:29 +02:00
										 |  |  | 	EditorSceneTabs *scene_tabs = nullptr; | 
					
						
							| 
									
										
										
										
											2022-10-14 20:41:05 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-05-02 16:28:25 +02:00
										 |  |  | 	int tab_closing_idx = 0; | 
					
						
							| 
									
										
										
										
											2022-10-14 20:41:05 +02:00
										 |  |  | 	List<String> tabs_to_close; | 
					
						
							| 
									
										
										
										
											2025-02-18 12:13:56 +01:00
										 |  |  | 	List<int> scenes_to_save_as; | 
					
						
							| 
									
										
										
										
											2022-10-14 20:41:05 +02:00
										 |  |  | 	int tab_closing_menu_option = -1; | 
					
						
							| 
									
										
										
										
											2015-06-13 22:12:53 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-02-15 08:56:58 -06:00
										 |  |  | 	bool exiting = false; | 
					
						
							|  |  |  | 	bool dimmed = false; | 
					
						
							| 
									
										
										
										
											2015-06-13 22:12:53 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-11-27 12:44:30 +02:00
										 |  |  | 	DisplayServer::WindowMode prev_mode = DisplayServer::WINDOW_MODE_MAXIMIZED; | 
					
						
							| 
									
										
										
										
											2022-05-02 16:28:25 +02:00
										 |  |  | 	int old_split_ofs = 0; | 
					
						
							| 
									
										
										
										
											2022-04-04 15:06:57 +02:00
										 |  |  | 	VSplitContainer *top_split = nullptr; | 
					
						
							|  |  |  | 	Control *vp_base = nullptr; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-09-22 12:06:11 +03:00
										 |  |  | 	Label *project_title = nullptr; | 
					
						
							|  |  |  | 	Control *left_menu_spacer = nullptr; | 
					
						
							|  |  |  | 	Control *right_menu_spacer = nullptr; | 
					
						
							| 
									
										
										
										
											2023-04-12 21:02:28 +02:00
										 |  |  | 	EditorTitleBar *title_bar = nullptr; | 
					
						
							|  |  |  | 	EditorRunBar *project_run_bar = nullptr; | 
					
						
							| 
									
										
										
										
											2025-05-01 18:09:31 +05:30
										 |  |  | 	HBoxContainer *right_menu_hb = nullptr; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	// Spacers to center 2D / 3D / Script buttons.
 | 
					
						
							|  |  |  | 	HBoxContainer *left_spacer = nullptr; | 
					
						
							|  |  |  | 	Control *right_spacer = nullptr; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	Control *menu_btn_spacer = nullptr; | 
					
						
							|  |  |  | 	MenuButton *main_menu_button = nullptr; | 
					
						
							|  |  |  | 	MenuBar *main_menu_bar = nullptr; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-10-15 20:52:56 +03:00
										 |  |  | 	PopupMenu *apple_menu = nullptr; | 
					
						
							| 
									
										
										
										
											2022-08-01 12:28:16 +03:00
										 |  |  | 	PopupMenu *file_menu = nullptr; | 
					
						
							|  |  |  | 	PopupMenu *project_menu = nullptr; | 
					
						
							|  |  |  | 	PopupMenu *debug_menu = nullptr; | 
					
						
							|  |  |  | 	PopupMenu *settings_menu = nullptr; | 
					
						
							|  |  |  | 	PopupMenu *help_menu = nullptr; | 
					
						
							| 
									
										
										
										
											2022-04-04 15:06:57 +02:00
										 |  |  | 	PopupMenu *tool_menu = nullptr; | 
					
						
							| 
									
										
										
										
											2022-04-06 18:11:04 +05:30
										 |  |  | 	PopupMenu *export_as_menu = nullptr; | 
					
						
							| 
									
										
										
										
											2022-04-04 15:06:57 +02:00
										 |  |  | 	Button *export_button = nullptr; | 
					
						
							| 
									
										
										
										
											2022-08-30 17:12:49 +03:00
										 |  |  | 	Button *search_button = nullptr; | 
					
						
							|  |  |  | 	TextureProgressBar *audio_vu = nullptr; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-04-04 15:06:57 +02:00
										 |  |  | 	Timer *screenshot_timer = nullptr; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-08-25 01:18:05 +02:00
										 |  |  | 	uint64_t started_timestamp = 0; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-04-04 15:06:57 +02:00
										 |  |  | 	RichTextLabel *load_errors = nullptr; | 
					
						
							| 
									
										
										
										
											2023-04-20 15:13:21 +02:00
										 |  |  | 	AcceptDialog *load_error_dialog = nullptr; | 
					
						
							| 
									
										
										
										
											2024-09-10 19:07:15 -04:00
										 |  |  | 	bool load_errors_queued_to_display = false; | 
					
						
							| 
									
										
										
										
											2022-04-04 15:06:57 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | 	RichTextLabel *execute_outputs = nullptr; | 
					
						
							| 
									
										
										
										
											2023-04-20 15:13:21 +02:00
										 |  |  | 	AcceptDialog *execute_output_dialog = nullptr; | 
					
						
							| 
									
										
										
										
											2019-04-07 15:46:52 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-01-03 16:52:37 -03:00
										 |  |  | 	Ref<Theme> theme; | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-02-14 15:13:30 -05:00
										 |  |  | 	Timer *system_theme_timer = nullptr; | 
					
						
							|  |  |  | 	bool follow_system_theme = false; | 
					
						
							|  |  |  | 	bool use_system_accent_color = false; | 
					
						
							|  |  |  | 	bool last_dark_mode_state = false; | 
					
						
							|  |  |  | 	Color last_system_base_color = Color(0, 0, 0, 0); | 
					
						
							|  |  |  | 	Color last_system_accent_color = Color(0, 0, 0, 0); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-04-04 15:06:57 +02:00
										 |  |  | 	PopupMenu *recent_scenes = nullptr; | 
					
						
							| 
									
										
										
										
											2022-03-30 20:12:26 +02:00
										 |  |  | 	String _recent_scene; | 
					
						
							| 
									
										
										
										
											2024-12-28 17:40:50 +01:00
										 |  |  | 	List<String> prev_closed_scenes; | 
					
						
							| 
									
										
										
										
											2022-03-30 20:12:26 +02:00
										 |  |  | 	String defer_load_scene; | 
					
						
							| 
									
										
										
										
											2022-04-04 15:06:57 +02:00
										 |  |  | 	Node *_last_instantiated_scene = nullptr; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	ConfirmationDialog *confirmation = nullptr; | 
					
						
							| 
									
										
										
										
											2025-07-16 00:07:25 +02:00
										 |  |  | 	bool stop_project_confirmation = false; | 
					
						
							| 
									
										
										
										
											2025-03-14 08:15:20 +04:00
										 |  |  | 	Button *confirmation_button = nullptr; | 
					
						
							| 
									
										
										
										
											2022-04-04 15:06:57 +02:00
										 |  |  | 	ConfirmationDialog *save_confirmation = nullptr; | 
					
						
							|  |  |  | 	ConfirmationDialog *import_confirmation = nullptr; | 
					
						
							|  |  |  | 	ConfirmationDialog *pick_main_scene = nullptr; | 
					
						
							| 
									
										
										
										
											2025-04-04 21:21:42 +08:00
										 |  |  | 	ConfirmationDialog *open_project_settings = nullptr; | 
					
						
							| 
									
										
										
										
											2022-04-04 15:06:57 +02:00
										 |  |  | 	Button *select_current_scene_button = nullptr; | 
					
						
							| 
									
										
										
										
											2023-04-20 15:13:21 +02:00
										 |  |  | 	AcceptDialog *accept = nullptr; | 
					
						
							|  |  |  | 	AcceptDialog *save_accept = nullptr; | 
					
						
							| 
									
										
										
										
											2022-04-04 15:06:57 +02:00
										 |  |  | 	EditorAbout *about = nullptr; | 
					
						
							| 
									
										
										
										
											2023-04-20 15:13:21 +02:00
										 |  |  | 	AcceptDialog *warning = nullptr; | 
					
						
							| 
									
										
										
										
											2022-10-16 18:09:17 +02:00
										 |  |  | 	EditorPlugin *plugin_to_save = nullptr; | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-05-02 16:28:25 +02:00
										 |  |  | 	int overridden_default_layout = -1; | 
					
						
							| 
									
										
										
										
											2016-01-11 22:23:45 +01:00
										 |  |  | 	Ref<ConfigFile> default_layout; | 
					
						
							| 
									
										
										
										
											2022-04-04 15:06:57 +02:00
										 |  |  | 	PopupMenu *editor_layouts = nullptr; | 
					
						
							|  |  |  | 	EditorLayoutsDialog *layout_dialog = nullptr; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-02-01 15:17:06 -08:00
										 |  |  | 	ConfirmationDialog *gradle_build_manage_templates = nullptr; | 
					
						
							| 
									
										
										
										
											2022-04-04 15:06:57 +02:00
										 |  |  | 	ConfirmationDialog *install_android_build_template = nullptr; | 
					
						
							|  |  |  | 	ConfirmationDialog *remove_android_build_template = nullptr; | 
					
						
							| 
									
										
										
										
											2024-02-13 14:20:23 -06:00
										 |  |  | 	Label *install_android_build_template_message = nullptr; | 
					
						
							|  |  |  | 	OptionButton *choose_android_export_profile = nullptr; | 
					
						
							|  |  |  | 	Ref<EditorExportPreset> android_export_preset; | 
					
						
							| 
									
										
										
										
											2022-04-04 15:06:57 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | 	PopupMenu *vcs_actions_menu = nullptr; | 
					
						
							|  |  |  | 	EditorFileDialog *file = nullptr; | 
					
						
							|  |  |  | 	ExportTemplateManager *export_template_manager = nullptr; | 
					
						
							|  |  |  | 	EditorFeatureProfileManager *feature_profile_manager = nullptr; | 
					
						
							| 
									
										
										
										
											2022-07-14 14:18:18 +02:00
										 |  |  | 	EditorBuildProfileManager *build_profile_manager = nullptr; | 
					
						
							| 
									
										
										
										
											2022-04-04 15:06:57 +02:00
										 |  |  | 	EditorFileDialog *file_templates = nullptr; | 
					
						
							|  |  |  | 	EditorFileDialog *file_export_lib = nullptr; | 
					
						
							|  |  |  | 	EditorFileDialog *file_script = nullptr; | 
					
						
							|  |  |  | 	EditorFileDialog *file_android_build_source = nullptr; | 
					
						
							| 
									
										
										
										
											2025-04-08 18:39:02 +02:00
										 |  |  | 	EditorFileDialog *file_pack_zip = nullptr; | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 	String current_path; | 
					
						
							| 
									
										
										
										
											2022-04-04 15:06:57 +02:00
										 |  |  | 	MenuButton *update_spinner = nullptr; | 
					
						
							| 
									
										
										
										
											2017-05-24 11:00:55 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-08-19 18:08:31 -04:00
										 |  |  | 	EditorMainScreen *editor_main_screen = nullptr; | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-04-04 15:06:57 +02:00
										 |  |  | 	AudioStreamPreviewGenerator *audio_preview_gen = nullptr; | 
					
						
							|  |  |  | 	ProgressDialog *progress_dialog = nullptr; | 
					
						
							|  |  |  | 	BackgroundProgress *progress_hb = nullptr; | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-04-04 15:06:57 +02:00
										 |  |  | 	DependencyErrorDialog *dependency_error = nullptr; | 
					
						
							| 
									
										
										
										
											2022-05-19 17:00:06 +02:00
										 |  |  | 	HashMap<String, HashSet<String>> dependency_errors; | 
					
						
							| 
									
										
										
										
											2022-04-04 15:06:57 +02:00
										 |  |  | 	DependencyEditor *dependency_fixer = nullptr; | 
					
						
							|  |  |  | 	OrphanResourcesDialog *orphan_resources = nullptr; | 
					
						
							|  |  |  | 	ConfirmationDialog *open_imported = nullptr; | 
					
						
							|  |  |  | 	Button *new_inherited_button = nullptr; | 
					
						
							| 
									
										
										
										
											2017-02-04 20:31:15 -03:00
										 |  |  | 	String open_import_request; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-10-27 15:55:07 -04:00
										 |  |  | 	EditorDockManager *editor_dock_manager = nullptr; | 
					
						
							| 
									
										
										
										
											2023-05-11 04:17:03 +02:00
										 |  |  | 	Timer *editor_layout_save_delay_timer = nullptr; | 
					
						
							| 
									
										
										
										
											2023-05-12 07:24:40 +02:00
										 |  |  | 	Timer *scan_changes_timer = nullptr; | 
					
						
							| 
									
										
										
										
											2022-04-04 15:06:57 +02:00
										 |  |  | 	Button *distraction_free = nullptr; | 
					
						
							| 
									
										
										
										
											2024-05-18 10:45:16 +07:00
										 |  |  | 	Callable palette_file_selected_callback; | 
					
						
							| 
									
										
										
										
											2015-06-13 22:12:53 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-01-30 17:22:22 -05:00
										 |  |  | 	EditorBottomPanel *bottom_panel = nullptr; | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-04-04 15:06:57 +02:00
										 |  |  | 	Tree *disk_changed_list = nullptr; | 
					
						
							| 
									
										
										
										
											2025-05-23 21:43:25 +02:00
										 |  |  | 	LocalVector<String> disk_changed_scenes; | 
					
						
							|  |  |  | 	bool disk_changed_project = false; | 
					
						
							| 
									
										
										
										
											2022-04-04 15:06:57 +02:00
										 |  |  | 	ConfirmationDialog *disk_changed = nullptr; | 
					
						
							| 
									
										
										
										
											2025-03-20 19:35:05 +08:00
										 |  |  | 	ConfirmationDialog *project_data_missing = nullptr; | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-03-30 20:12:26 +02:00
										 |  |  | 	bool scene_distraction_free = false; | 
					
						
							|  |  |  | 	bool script_distraction_free = false; | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-02-15 08:56:58 -06:00
										 |  |  | 	bool changing_scene = false; | 
					
						
							| 
									
										
										
										
											2025-02-28 11:11:10 -05:00
										 |  |  | 	bool cmdline_mode = false; | 
					
						
							| 
									
										
										
										
											2022-03-30 20:12:26 +02:00
										 |  |  | 	bool convert_old = false; | 
					
						
							|  |  |  | 	bool immediate_dialog_confirmed = false; | 
					
						
							|  |  |  | 	bool restoring_scenes = false; | 
					
						
							| 
									
										
										
										
											2022-11-21 20:07:15 +01:00
										 |  |  | 	bool settings_overrides_changed = false; | 
					
						
							| 
									
										
										
										
											2025-08-21 14:38:27 +02:00
										 |  |  | 	bool unsaved_cache = false; | 
					
						
							| 
									
										
										
										
											2023-10-30 15:34:18 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  | 	bool requested_first_scan = false; | 
					
						
							| 
									
										
										
										
											2022-02-15 08:56:58 -06:00
										 |  |  | 	bool waiting_for_first_scan = true; | 
					
						
							| 
									
										
										
										
											2024-09-04 19:31:23 -04:00
										 |  |  | 	bool load_editor_layout_done = false; | 
					
						
							| 
									
										
										
										
											2016-05-27 14:18:40 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-06-11 20:31:59 +08:00
										 |  |  | 	HashSet<Ref<Translation>> tracked_translations; | 
					
						
							|  |  |  | 	bool pending_translation_notification = false; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-05-02 16:28:25 +02:00
										 |  |  | 	int current_menu_option = 0; | 
					
						
							| 
									
										
										
										
											2022-03-30 20:12:26 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-04-04 15:06:57 +02:00
										 |  |  | 	SubViewport *scene_root = nullptr; // Root of the scene being edited.
 | 
					
						
							|  |  |  | 	Object *current = nullptr; | 
					
						
							| 
									
										
										
										
											2022-03-30 20:12:26 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | 	Ref<Resource> saving_resource; | 
					
						
							| 
									
										
										
										
											2023-03-08 19:46:55 +01:00
										 |  |  | 	HashSet<Ref<Resource>> saving_resources_in_path; | 
					
						
							| 
									
										
										
										
											2022-03-30 20:12:26 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-05-02 16:28:25 +02:00
										 |  |  | 	uint64_t update_spinner_step_msec = 0; | 
					
						
							|  |  |  | 	uint64_t update_spinner_step_frame = 0; | 
					
						
							|  |  |  | 	int update_spinner_step = 0; | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-11-20 21:57:21 +01:00
										 |  |  | 	String saving_scene; | 
					
						
							| 
									
										
										
										
											2024-08-17 08:27:10 -04:00
										 |  |  | 	EditorProgress *save_scene_progress = nullptr; | 
					
						
							| 
									
										
										
										
											2022-03-01 23:19:02 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-10-06 02:00:36 -05:00
										 |  |  | 	DynamicFontImportSettingsDialog *fontdata_import_settings = nullptr; | 
					
						
							|  |  |  | 	SceneImportSettingsDialog *scene_import_settings = nullptr; | 
					
						
							|  |  |  | 	AudioStreamImportSettingsDialog *audio_stream_import_settings = nullptr; | 
					
						
							| 
									
										
										
										
											2016-01-17 20:03:57 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-03-30 20:12:26 +02:00
										 |  |  | 	String import_reload_fn; | 
					
						
							| 
									
										
										
										
											2016-01-17 20:03:57 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-05-19 17:00:06 +02:00
										 |  |  | 	HashSet<String> textfile_extensions; | 
					
						
							| 
									
										
										
										
											2024-09-05 12:12:59 +03:00
										 |  |  | 	HashSet<String> other_file_extensions; | 
					
						
							| 
									
										
										
										
											2022-05-19 17:00:06 +02:00
										 |  |  | 	HashSet<FileDialog *> file_dialogs; | 
					
						
							|  |  |  | 	HashSet<EditorFileDialog *> editor_file_dialogs; | 
					
						
							| 
									
										
										
										
											2018-07-15 22:38:14 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-03-30 20:12:26 +02:00
										 |  |  | 	Vector<Ref<EditorResourceConversionPlugin>> resource_conversion_plugins; | 
					
						
							|  |  |  | 	PrintHandlerList print_handler; | 
					
						
							| 
									
										
										
										
											2019-08-28 19:42:27 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-05-13 15:04:37 +02:00
										 |  |  | 	HashMap<String, Ref<Texture2D>> icon_type_cache; | 
					
						
							| 
									
										
										
										
											2025-05-30 14:44:14 +02:00
										 |  |  | 	HashMap<Pair<String, String>, Ref<Texture2D>> class_icon_cache; | 
					
						
							| 
									
										
										
										
											2016-01-17 20:03:57 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-02-19 14:27:27 +01:00
										 |  |  | 	ProjectUpgradeTool *project_upgrade_tool = nullptr; | 
					
						
							|  |  |  | 	bool run_project_upgrade_tool = false; | 
					
						
							| 
									
										
										
										
											2025-01-26 19:28:57 -08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-04-15 13:19:05 +02:00
										 |  |  | 	bool was_window_windowed_last = false; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-09-25 16:57:23 -04:00
										 |  |  | 	bool unfocused_low_processor_usage_mode_enabled = true; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-03-30 20:12:26 +02:00
										 |  |  | 	static EditorBuildCallback build_callbacks[MAX_BUILD_CALLBACKS]; | 
					
						
							|  |  |  | 	static EditorPluginInitializeCallback plugin_init_callbacks[MAX_INIT_CALLBACKS]; | 
					
						
							|  |  |  | 	static int build_callback_count; | 
					
						
							|  |  |  | 	static int plugin_init_callback_count; | 
					
						
							|  |  |  | 	static Vector<EditorNodeInitCallback> _init_callbacks; | 
					
						
							| 
									
										
										
										
											2017-08-26 10:32:15 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-05-27 18:21:23 +02:00
										 |  |  | 	String _get_system_info() const; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-02-08 15:13:15 +01:00
										 |  |  | 	bool _should_display_update_spinner() const; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-01-17 14:26:16 +01:00
										 |  |  | 	static void _dependency_error_report(const String &p_path, const String &p_dep, const String &p_type) { | 
					
						
							| 
									
										
										
										
											2023-01-19 13:45:04 +01:00
										 |  |  | 		DEV_ASSERT(Thread::get_caller_id() == Thread::get_main_id()); | 
					
						
							| 
									
										
										
										
											2023-01-17 14:26:16 +01:00
										 |  |  | 		if (!singleton->dependency_errors.has(p_path)) { | 
					
						
							|  |  |  | 			singleton->dependency_errors[p_path] = HashSet<String>(); | 
					
						
							| 
									
										
										
										
											2022-03-30 20:12:26 +02:00
										 |  |  | 		} | 
					
						
							| 
									
										
										
										
											2023-01-17 14:26:16 +01:00
										 |  |  | 		singleton->dependency_errors[p_path].insert(p_dep + "::" + p_type); | 
					
						
							| 
									
										
										
										
											2022-03-30 20:12:26 +02:00
										 |  |  | 	} | 
					
						
							| 
									
										
										
										
											2016-01-17 20:03:57 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-03-30 20:12:26 +02:00
										 |  |  | 	static Ref<Texture2D> _file_dialog_get_icon(const String &p_path); | 
					
						
							|  |  |  | 	static void _file_dialog_register(FileDialog *p_dialog); | 
					
						
							|  |  |  | 	static void _file_dialog_unregister(FileDialog *p_dialog); | 
					
						
							|  |  |  | 	static void _editor_file_dialog_register(EditorFileDialog *p_dialog); | 
					
						
							|  |  |  | 	static void _editor_file_dialog_unregister(EditorFileDialog *p_dialog); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	static void _file_access_close_error_notify(const String &p_str); | 
					
						
							| 
									
										
										
										
											2023-05-19 18:45:22 +02:00
										 |  |  | 	static void _file_access_close_error_notify_impl(const String &p_str); | 
					
						
							| 
									
										
										
										
											2022-03-30 20:12:26 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-05-03 08:29:38 +09:00
										 |  |  | 	static void _print_handler(void *p_this, const String &p_string, bool p_error, bool p_rich); | 
					
						
							| 
									
										
										
										
											2023-05-19 18:45:22 +02:00
										 |  |  | 	static void _print_handler_impl(const String &p_string, bool p_error, bool p_rich); | 
					
						
							| 
									
										
										
										
											2022-05-03 01:43:50 +02:00
										 |  |  | 	static void _resource_saved(Ref<Resource> p_resource, const String &p_path); | 
					
						
							|  |  |  | 	static void _resource_loaded(Ref<Resource> p_resource, const String &p_path); | 
					
						
							| 
									
										
										
										
											2022-03-30 20:12:26 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-09-06 16:11:05 +02:00
										 |  |  | 	void _update_theme(bool p_skip_creation = false); | 
					
						
							| 
									
										
										
										
											2022-03-30 20:12:26 +02:00
										 |  |  | 	void _build_icon_type_cache(); | 
					
						
							| 
									
										
										
										
											2022-12-28 13:56:53 +01:00
										 |  |  | 	void _enable_pending_addons(); | 
					
						
							| 
									
										
										
										
											2016-03-09 00:00:52 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 	void _dialog_action(String p_file); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-02-13 16:54:33 +01:00
										 |  |  | 	void _add_to_history(const Object *p_object, const String &p_property, bool p_inspector_only); | 
					
						
							|  |  |  | 	void _edit_current(bool p_skip_foreign = false, bool p_skip_inspector_update = false); | 
					
						
							| 
									
										
										
										
											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
										 |  |  | 	void _menu_option(int p_option); | 
					
						
							|  |  |  | 	void _menu_confirm_current(); | 
					
						
							|  |  |  | 	void _menu_option_confirm(int p_option, bool p_confirmed); | 
					
						
							| 
									
										
										
										
											2019-03-29 06:53:11 -07:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-07-15 10:12:56 -03:00
										 |  |  | 	void _android_build_source_selected(const String &p_file); | 
					
						
							| 
									
										
										
										
											2024-02-13 14:20:23 -06:00
										 |  |  | 	void _android_export_preset_selected(int p_index); | 
					
						
							| 
									
										
										
										
											2025-01-03 21:30:25 +01:00
										 |  |  | 	void _android_install_build_template(); | 
					
						
							|  |  |  | 	void _android_explore_build_templates(); | 
					
						
							| 
									
										
										
										
											2021-07-15 10:12:56 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-03-29 06:53:11 -07:00
										 |  |  | 	void _request_screenshot(); | 
					
						
							|  |  |  | 	void _screenshot(bool p_use_utc = false); | 
					
						
							| 
									
										
										
										
											2025-05-29 08:07:49 +03:00
										 |  |  | 	void _save_screenshot(const String &p_path); | 
					
						
							|  |  |  | 	void _save_screenshot_with_embedded_process(int64_t p_w, int64_t p_h, const String &p_emb_path, const Rect2i &p_rect, const String &p_path); | 
					
						
							| 
									
										
										
										
											2019-03-29 06:53:11 -07:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-02-14 15:13:30 -05:00
										 |  |  | 	void _check_system_theme_changed(); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-03-16 21:50:35 -04:00
										 |  |  | 	void _tool_menu_option(int p_idx); | 
					
						
							| 
									
										
										
										
											2022-04-06 18:11:04 +05:30
										 |  |  | 	void _export_as_menu_option(int p_idx); | 
					
						
							| 
									
										
										
										
											2019-04-10 17:21:26 +02:00
										 |  |  | 	void _update_file_menu_opened(); | 
					
						
							| 
									
										
										
										
											2024-05-18 10:45:16 +07:00
										 |  |  | 	void _palette_quick_open_dialog(); | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-05-09 05:17:15 -07:00
										 |  |  | 	void _remove_plugin_from_enabled(const String &p_name); | 
					
						
							| 
									
										
										
										
											2023-02-06 15:35:33 +01:00
										 |  |  | 	void _plugin_over_edit(EditorPlugin *p_plugin, Object *p_object); | 
					
						
							| 
									
										
										
										
											2023-09-10 21:29:28 +02:00
										 |  |  | 	void _plugin_over_self_own(EditorPlugin *p_plugin); | 
					
						
							| 
									
										
										
										
											2018-07-19 10:34:22 -05:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 	void _fs_changed(); | 
					
						
							| 
									
										
										
										
											2024-07-08 14:28:43 -04:00
										 |  |  | 	void _resources_reimporting(const Vector<String> &p_resources); | 
					
						
							| 
									
										
										
										
											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); | 
					
						
							| 
									
										
										
										
											2024-04-30 21:13:10 +01:00
										 |  |  | 	void _remove_lock_file(); | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 
 | 
					
						
							|  |  |  | 	void _node_renamed(); | 
					
						
							| 
									
										
										
										
											2023-05-11 04:17:03 +02:00
										 |  |  | 	void _save_editor_states(const String &p_file, int p_idx = -1); | 
					
						
							|  |  |  | 	void _load_editor_plugin_states_from_config(const Ref<ConfigFile> &p_config_file); | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 	void _update_title(); | 
					
						
							| 
									
										
										
										
											2025-05-13 00:13:12 +02:00
										 |  |  | 	void _update_unsaved_cache(); | 
					
						
							| 
									
										
										
										
											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(); | 
					
						
							| 
									
										
										
										
											2022-09-22 12:06:11 +03:00
										 |  |  | 	void _titlebar_resized(); | 
					
						
							| 
									
										
										
										
											2023-04-15 13:19:05 +02:00
										 |  |  | 	void _viewport_resized(); | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-01-08 18:35:15 +10:00
										 |  |  | 	void _update_undo_redo_allowed(); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-11-29 16:19:17 +01:00
										 |  |  | 	int _save_external_resources(bool p_also_save_external_data = false); | 
					
						
							| 
									
										
										
										
											2025-01-03 21:30:25 +01:00
										 |  |  | 	void _save_scene_silently(); | 
					
						
							| 
									
										
										
										
											2019-02-27 20:00:40 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-08-24 12:24:29 +02:00
										 |  |  | 	void _set_current_scene(int p_idx); | 
					
						
							|  |  |  | 	void _set_current_scene_nocheck(int p_idx); | 
					
						
							| 
									
										
										
										
											2018-11-27 18:56:31 -03:00
										 |  |  | 	bool _validate_scene_recursive(const String &p_filename, Node *p_node); | 
					
						
							| 
									
										
										
										
											2025-06-20 23:03:22 +02: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()); | 
					
						
							| 
									
										
										
										
											2023-08-24 12:24:29 +02:00
										 |  |  | 	void _scene_tab_closed(int p_tab); | 
					
						
							| 
									
										
										
										
											2024-03-28 19:22:52 +08:00
										 |  |  | 	void _cancel_close_scene_tab(); | 
					
						
							| 
									
										
										
										
											2025-07-16 00:07:25 +02:00
										 |  |  | 	void _cancel_confirmation(); | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-01-27 05:50:27 +04:00
										 |  |  | 	void _prepare_save_confirmation_popup(); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-05-07 23:35:23 -03:00
										 |  |  | 	void _inherit_request(String p_file); | 
					
						
							| 
									
										
										
										
											2021-06-17 16:03:09 -06:00
										 |  |  | 	void _instantiate_request(const Vector<String> &p_files); | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-12-02 21:33:38 +01:00
										 |  |  | 	void _quick_opened(const String &p_file_path); | 
					
						
							| 
									
										
										
										
											2021-05-29 18:58:16 +05:30
										 |  |  | 	void _open_command_palette(); | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-04-12 21:02:28 +02:00
										 |  |  | 	void _project_run_started(); | 
					
						
							|  |  |  | 	void _project_run_stopped(); | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-12-28 17:40:50 +01:00
										 |  |  | 	void _update_prev_closed_scenes(const String &p_scene_path, bool p_add_scene); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 	void _add_to_recent_scenes(const String &p_scene); | 
					
						
							|  |  |  | 	void _update_recent_scenes(); | 
					
						
							|  |  |  | 	void _open_recent_scene(int p_idx); | 
					
						
							| 
									
										
										
										
											2024-12-28 17:40:50 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-04-10 21:25:24 +02:00
										 |  |  | 	void _dropped_files(const Vector<String> &p_files); | 
					
						
							| 
									
										
										
										
											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
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-05-02 01:18:56 +02:00
										 |  |  | 	void _update_vsync_mode(); | 
					
						
							| 
									
										
										
										
											2022-03-30 20:12:26 +02:00
										 |  |  | 	void _update_from_settings(); | 
					
						
							| 
									
										
										
										
											2023-08-04 20:34:14 -05:00
										 |  |  | 	void _gdextensions_reloaded(); | 
					
						
							| 
									
										
										
										
											2024-09-13 00:50:09 +08:00
										 |  |  | 	void _update_translations(); | 
					
						
							| 
									
										
										
										
											2025-06-11 20:31:59 +08:00
										 |  |  | 	void _translation_resources_changed(); | 
					
						
							|  |  |  | 	void _queue_translation_notification(); | 
					
						
							|  |  |  | 	void _propagate_translation_notification(); | 
					
						
							| 
									
										
										
										
											2019-01-17 09:09:01 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-09-07 17:44:36 -07:00
										 |  |  | 	void _renderer_selected(int); | 
					
						
							|  |  |  | 	void _update_renderer_color(); | 
					
						
							| 
									
										
										
										
											2023-12-14 11:38:46 +08:00
										 |  |  | 	void _add_renderer_entry(const String &p_renderer_name, bool p_mark_overridden); | 
					
						
							| 
									
										
										
										
											2025-01-03 21:30:25 +01:00
										 |  |  | 	void _set_renderer_name_save_and_restart(); | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-03-30 20:12:26 +02:00
										 |  |  | 	void _exit_editor(int p_exit_code); | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-11-29 21:16:53 +01:00
										 |  |  | 	virtual void input(const Ref<InputEvent> &p_event) override; | 
					
						
							| 
									
										
										
										
											2022-01-11 15:59:52 +02:00
										 |  |  | 	virtual void shortcut_input(const Ref<InputEvent> &p_event) override; | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 
 | 
					
						
							|  |  |  | 	bool has_main_screen() const { return true; } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											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); | 
					
						
							| 
									
										
										
										
											2022-05-13 15:04:37 +02:00
										 |  |  | 	bool _find_and_save_resource(Ref<Resource> p_res, HashMap<Ref<Resource>, bool> &processed, int32_t flags); | 
					
						
							|  |  |  | 	bool _find_and_save_edited_subresources(Object *obj, HashMap<Ref<Resource>, bool> &processed, int32_t flags); | 
					
						
							|  |  |  | 	void _save_edited_subresources(Node *scene, HashMap<Ref<Resource>, bool> &processed, int32_t flags); | 
					
						
							| 
									
										
										
										
											2017-06-30 00:37:54 +07:00
										 |  |  | 	void _mark_unsaved_scenes(); | 
					
						
							| 
									
										
										
										
											2024-03-30 08:41:06 +01:00
										 |  |  | 	bool _is_scene_unsaved(int p_idx); | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-05-31 01:59:42 -03:00
										 |  |  | 	void _find_node_types(Node *p_node, int &count_2d, int &count_3d); | 
					
						
							| 
									
										
										
										
											2025-06-20 23:13:27 +02:00
										 |  |  | 	void _save_scene_with_preview(String p_file, int p_idx = -1); | 
					
						
							| 
									
										
										
										
											2024-08-17 08:27:10 -04:00
										 |  |  | 	void _close_save_scene_progress(); | 
					
						
							| 
									
										
										
										
											2015-05-31 01:59:42 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-06-19 02:23:03 -03:00
										 |  |  | 	bool _find_scene_in_use(Node *p_node, const String &p_path) const; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-10-14 20:41:05 +02:00
										 |  |  | 	void _proceed_closing_scene_tabs(); | 
					
						
							| 
									
										
										
										
											2025-02-18 12:13:56 +01:00
										 |  |  | 	void _proceed_save_asing_scene_tabs(); | 
					
						
							| 
									
										
										
										
											2022-10-14 20:41:05 +02:00
										 |  |  | 	bool _is_closing_editor() const; | 
					
						
							| 
									
										
										
										
											2025-01-25 12:24:29 +01:00
										 |  |  | 	void _restart_editor(bool p_goto_project_manager = false); | 
					
						
							| 
									
										
										
										
											2015-06-22 00:03:19 -03:00
										 |  |  | 
 | 
					
						
							|  |  |  | 	Dictionary _get_main_scene_state(); | 
					
						
							| 
									
										
										
										
											2016-06-28 18:53:31 -03:00
										 |  |  | 	void _set_main_scene_state(Dictionary p_state, Node *p_for_scene); | 
					
						
							| 
									
										
										
										
											2015-06-13 22:12:53 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-05-11 04:17:03 +02:00
										 |  |  | 	void _save_editor_layout(); | 
					
						
							|  |  |  | 	void _load_editor_layout(); | 
					
						
							| 
									
										
										
										
											2015-11-22 19:11:17 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-05-11 04:17:03 +02:00
										 |  |  | 	void _save_central_editor_layout_to_config(Ref<ConfigFile> p_config_file); | 
					
						
							|  |  |  | 	void _load_central_editor_layout_from_config(Ref<ConfigFile> p_config_file); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-04-15 13:19:05 +02:00
										 |  |  | 	void _save_window_settings_to_config(Ref<ConfigFile> p_layout, const String &p_section); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-05-11 04:17:03 +02:00
										 |  |  | 	void _save_open_scenes_to_config(Ref<ConfigFile> p_layout); | 
					
						
							|  |  |  | 	void _load_open_scenes_from_config(Ref<ConfigFile> p_layout); | 
					
						
							| 
									
										
										
										
											2017-11-24 23:32:54 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											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
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-02-27 23:10:44 -03:00
										 |  |  | 	void _update_addon_config(); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-09-13 09:46:17 -03:00
										 |  |  | 	void _toggle_distraction_free_mode(); | 
					
						
							| 
									
										
										
										
											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
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-12-11 16:52:25 +01:00
										 |  |  | 	void _update_update_spinner(); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											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(); | 
					
						
							| 
									
										
										
										
											2025-05-23 21:43:25 +02:00
										 |  |  | 	void _resave_externally_modified_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); | 
					
						
							| 
									
										
										
										
											2023-03-31 21:17:59 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-01-28 10:27:56 +01:00
										 |  |  | 	Ref<Texture2D> _get_class_or_script_icon(const String &p_class, const String &p_script_path, const String &p_fallback = "Object", bool p_fallback_script_to_theme = false); | 
					
						
							| 
									
										
										
										
											2025-03-21 15:46:37 +02:00
										 |  |  | 	Ref<Texture2D> _get_editor_theme_native_menu_icon(const StringName &p_name, bool p_global_menu, bool p_dark_mode) const; | 
					
						
							| 
									
										
										
										
											2019-04-08 19:18:03 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-07-07 00:10:07 +10:00
										 |  |  | 	void _pick_main_scene_custom_action(const String &p_custom_action_name); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-08-20 15:32:56 -03:00
										 |  |  | 	void _immediate_dialog_confirmed(); | 
					
						
							| 
									
										
										
										
											2020-08-04 22:14:39 -05:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-08-19 14:21:43 +02:00
										 |  |  | 	void _begin_first_scan(); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-05-21 02:31:27 +01:00
										 |  |  | 	void _notify_nodes_scene_reimported(Node *p_node, Array p_reimported_nodes); | 
					
						
							| 
									
										
										
										
											2023-09-28 05:32:32 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-07-08 14:28:43 -04:00
										 |  |  | 	void _remove_all_not_owned_children(Node *p_node, Node *p_owner); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-09-10 19:07:15 -04:00
										 |  |  | 	void _progress_dialog_visibility_changed(); | 
					
						
							| 
									
										
										
										
											2024-09-14 15:11:42 -04:00
										 |  |  | 	void _load_error_dialog_visibility_changed(); | 
					
						
							| 
									
										
										
										
											2024-09-10 19:07:15 -04:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-02-10 19:44:36 -05:00
										 |  |  | 	void _execute_upgrades(); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-03-20 19:35:05 +08:00
										 |  |  | 	bool _is_project_data_missing(); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-05-01 18:09:31 +05:30
										 |  |  | 	void _update_main_menu_type(); | 
					
						
							|  |  |  | 	void _add_to_main_menu(const String &p_name, PopupMenu *p_menu); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | protected: | 
					
						
							| 
									
										
										
										
											2022-03-30 20:12:26 +02:00
										 |  |  | 	friend class FileSystemDock; | 
					
						
							| 
									
										
										
										
											2019-03-29 06:53:11 -07:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-11-22 19:11:17 +01:00
										 |  |  | 	static void _bind_methods(); | 
					
						
							| 
									
										
										
										
											2022-03-30 20:12:26 +02:00
										 |  |  | 	void _notification(int p_what); | 
					
						
							| 
									
										
										
										
											2019-06-04 05:36:23 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-03-05 16:44:50 +01:00
										 |  |  | public: | 
					
						
							| 
									
										
										
										
											2020-12-06 16:09:18 +01:00
										 |  |  | 	// Public for use with callable_mp.
 | 
					
						
							| 
									
										
										
										
											2024-05-24 01:30:16 -04:00
										 |  |  | 	void init_plugins(); | 
					
						
							| 
									
										
										
										
											2020-12-06 16:09:18 +01:00
										 |  |  | 	void _on_plugin_ready(Object *p_script, const String &p_activate_name); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-03-30 20:12:26 +02:00
										 |  |  | 	bool call_build(); | 
					
						
							| 
									
										
										
										
											2016-08-06 19:00:54 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-11-22 16:15:02 +01:00
										 |  |  | 	// This is a very naive estimation, but we need something now. Will be reworked later.
 | 
					
						
							|  |  |  | 	bool is_editor_ready() const { return is_inside_tree() && !waiting_for_first_scan; } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-05-04 22:50:23 -03:00
										 |  |  | 	static EditorNode *get_singleton() { return singleton; } | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-03-30 20:12:26 +02:00
										 |  |  | 	static EditorLog *get_log() { return singleton->log; } | 
					
						
							|  |  |  | 	static EditorData &get_editor_data() { return singleton->editor_data; } | 
					
						
							|  |  |  | 	static EditorFolding &get_editor_folding() { return singleton->editor_folding; } | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-04-12 21:02:28 +02:00
										 |  |  | 	static EditorTitleBar *get_title_bar() { return singleton->title_bar; } | 
					
						
							| 
									
										
										
										
											2022-03-30 20:12:26 +02:00
										 |  |  | 	static VSplitContainer *get_top_split() { return singleton->top_split; } | 
					
						
							| 
									
										
										
										
											2024-01-30 17:22:22 -05:00
										 |  |  | 	static EditorBottomPanel *get_bottom_panel() { return singleton->bottom_panel; } | 
					
						
							| 
									
										
										
										
											2024-08-19 18:08:31 -04:00
										 |  |  | 	static EditorMainScreen *get_editor_main_screen() { return singleton->editor_main_screen; } | 
					
						
							| 
									
										
										
										
											2022-03-30 20:12:26 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-06-11 18:23:48 +02:00
										 |  |  | 	static String adjust_scene_name_casing(const String &p_root_name); | 
					
						
							|  |  |  | 	static String adjust_script_name_casing(const String &p_file_name, ScriptLanguage::ScriptNameCasing p_auto_casing); | 
					
						
							| 
									
										
										
										
											2022-09-09 10:29:59 +10:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-03-30 20:12:26 +02:00
										 |  |  | 	static bool has_unsaved_changes() { return singleton->unsaved_cache; } | 
					
						
							|  |  |  | 	static void disambiguate_filenames(const Vector<String> p_full_paths, Vector<String> &r_filenames); | 
					
						
							|  |  |  | 	static void add_io_error(const String &p_error); | 
					
						
							| 
									
										
										
										
											2023-06-07 13:44:37 +02:00
										 |  |  | 	static void add_io_warning(const String &p_warning); | 
					
						
							| 
									
										
										
										
											2022-03-30 20:12:26 +02: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); | 
					
						
							|  |  |  | 	static void progress_end_task(const String &p_task); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	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); | 
					
						
							| 
									
										
										
										
											2018-02-13 22:31:38 -06:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											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
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-05-11 16:46:53 -05:00
										 |  |  | 	static void add_extension_editor_plugin(const StringName &p_class_name); | 
					
						
							|  |  |  | 	static void remove_extension_editor_plugin(const StringName &p_class_name); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-03-30 20:12:26 +02:00
										 |  |  | 	static void add_plugin_init_callback(EditorPluginInitializeCallback p_callback); | 
					
						
							|  |  |  | 	static void add_init_callback(EditorNodeInitCallback p_callback) { _init_callbacks.push_back(p_callback); } | 
					
						
							|  |  |  | 	static void add_build_callback(EditorBuildCallback p_callback); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-10-19 13:31:26 +02:00
										 |  |  | 	static bool immediate_confirmation_dialog(const String &p_text, const String &p_ok_text = TTR("Ok"), const String &p_cancel_text = TTR("Cancel"), uint32_t p_wrap_width = 0); | 
					
						
							| 
									
										
										
										
											2022-03-30 20:12:26 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-06-19 00:32:00 +02:00
										 |  |  | 	static bool is_cmdline_mode(); | 
					
						
							| 
									
										
										
										
											2022-05-01 11:57:36 +02:00
										 |  |  | 	static void cleanup(); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-03-30 20:12:26 +02:00
										 |  |  | 	EditorPluginList *get_editor_plugins_force_input_forwarding() { return editor_plugins_force_input_forwarding; } | 
					
						
							|  |  |  | 	EditorPluginList *get_editor_plugins_force_over() { return editor_plugins_force_over; } | 
					
						
							|  |  |  | 	EditorPluginList *get_editor_plugins_over() { return editor_plugins_over; } | 
					
						
							|  |  |  | 	EditorSelection *get_editor_selection() { return editor_selection; } | 
					
						
							|  |  |  | 	EditorSelectionHistory *get_editor_selection_history() { return &editor_history; } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	ProjectSettingsEditor *get_project_settings() { return project_settings_editor; } | 
					
						
							| 
									
										
										
										
											2020-05-26 21:49:05 -07:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-08-24 12:24:29 +02:00
										 |  |  | 	void trigger_menu_option(int p_option, bool p_confirmed); | 
					
						
							| 
									
										
										
										
											2024-12-28 17:40:50 +01:00
										 |  |  | 	bool has_previous_closed_scenes() const; | 
					
						
							| 
									
										
										
										
											2023-08-24 12:24:29 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-04-29 23:30:31 +02:00
										 |  |  | 	void new_inherited_scene() { _menu_option_confirm(SCENE_NEW_INHERITED_SCENE, false); } | 
					
						
							| 
									
										
										
										
											2016-05-11 11:46:08 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-08-19 18:08:31 -04:00
										 |  |  | 	void update_distraction_free_mode(); | 
					
						
							| 
									
										
										
										
											2016-05-30 19:29:43 +01:00
										 |  |  | 	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
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											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); | 
					
						
							| 
									
										
										
										
											2022-11-19 12:45:49 +01:00
										 |  |  | 	void edit_resource(const Ref<Resource> &p_resource); | 
					
						
							| 
									
										
										
										
											2015-09-01 00:49:47 -03:00
										 |  |  | 
 | 
					
						
							|  |  |  | 	void save_resource_in_path(const Ref<Resource> &p_resource, const String &p_path); | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 	void save_resource(const Ref<Resource> &p_resource); | 
					
						
							| 
									
										
										
										
											2016-05-11 11:46:08 -03:00
										 |  |  | 	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); } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-06-18 22:10:48 -03:00
										 |  |  | 	void push_item(Object *p_object, const String &p_property = "", bool p_inspector_only = false); | 
					
						
							| 
									
										
										
										
											2024-02-13 16:54:33 +01:00
										 |  |  | 	void push_item_no_inspector(Object *p_object); | 
					
						
							| 
									
										
										
										
											2024-06-12 20:51:51 -04:00
										 |  |  | 	void edit_previous_item(); | 
					
						
							| 
									
										
										
										
											2023-01-21 22:49:06 +01:00
										 |  |  | 	void edit_item(Object *p_object, Object *p_editing_owner); | 
					
						
							| 
									
										
										
										
											2023-02-01 00:50:34 +01:00
										 |  |  | 	void push_node_item(Node *p_node); | 
					
						
							| 
									
										
										
										
											2023-01-21 22:49:06 +01:00
										 |  |  | 	void hide_unused_editors(const Object *p_editing_owner = nullptr); | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-09-09 19:39:37 +01:00
										 |  |  | 	void replace_resources_in_object( | 
					
						
							|  |  |  | 			Object *p_object, | 
					
						
							|  |  |  | 			const Vector<Ref<Resource>> &p_source_resources, | 
					
						
							|  |  |  | 			const Vector<Ref<Resource>> &p_target_resource); | 
					
						
							|  |  |  | 	void replace_resources_in_scenes( | 
					
						
							|  |  |  | 			const Vector<Ref<Resource>> &p_source_resources, | 
					
						
							|  |  |  | 			const Vector<Ref<Resource>> &p_target_resource); | 
					
						
							| 
									
										
										
										
											2022-05-03 01:43:50 +02:00
										 |  |  | 	void edit_foreign_resource(Ref<Resource> p_resource); | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-09-07 10:14:06 +01:00
										 |  |  | 	bool is_resource_read_only(Ref<Resource> p_resource, bool p_foreign_resources_are_writable = false); | 
					
						
							| 
									
										
										
										
											2022-04-29 07:06:48 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-11-06 12:41:08 +01:00
										 |  |  | 	String get_multiwindow_support_tooltip_text() const; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-06-22 00:03:19 -03:00
										 |  |  | 	bool is_changing_scene() const; | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-03-30 20:12:26 +02:00
										 |  |  | 	SubViewport *get_scene_root() { return scene_root; } // Root of the scene being edited.
 | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-06-22 00:03:19 -03:00
										 |  |  | 	void set_edited_scene(Node *p_scene); | 
					
						
							| 
									
										
										
										
											2024-06-04 22:03:11 +08:00
										 |  |  | 	void set_edited_scene_root(Node *p_scene, bool p_auto_add); | 
					
						
							| 
									
										
										
										
											2015-06-22 00:03:19 -03:00
										 |  |  | 	Node *get_edited_scene() { return editor_data.get_edited_scene_root(); } | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-09-13 00:50:09 +08:00
										 |  |  | 	String get_preview_locale() const; | 
					
						
							|  |  |  | 	void set_preview_locale(const String &p_locale); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-08-23 20:15:56 -03:00
										 |  |  | 	void fix_dependencies(const String &p_for_file); | 
					
						
							| 
									
										
										
										
											2019-08-15 19:47:21 +02:00
										 |  |  | 	int new_scene(); | 
					
						
							| 
									
										
										
										
											2024-09-14 15:11:42 -04:00
										 |  |  | 	Error load_scene(const String &p_scene, bool p_ignore_broken_deps = false, bool p_set_inherited = false, 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); | 
					
						
							| 
									
										
										
										
											2024-12-28 17:40:50 +01:00
										 |  |  | 	Error load_scene_or_resource(const String &p_file, bool p_ignore_broken_deps = false, bool p_change_scene_tab_if_already_open = true); | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-05-23 11:07:51 +01:00
										 |  |  | 	HashMap<StringName, Variant> get_modified_properties_for_node(Node *p_node, bool p_node_references_only); | 
					
						
							| 
									
										
										
										
											2024-08-06 17:59:41 -04:00
										 |  |  | 	HashMap<StringName, Variant> get_modified_properties_reference_to_nodes(Node *p_node, List<Node *> &p_nodes_referenced_by); | 
					
						
							| 
									
										
										
										
											2022-01-30 21:31:32 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-09-25 16:57:23 -04:00
										 |  |  | 	void set_unfocused_low_processor_usage_mode_enabled(bool p_enabled); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-01-30 21:31:32 +00:00
										 |  |  | 	struct AdditiveNodeEntry { | 
					
						
							|  |  |  | 		Node *node = nullptr; | 
					
						
							| 
									
										
										
										
											2024-06-21 11:19:04 -05:00
										 |  |  | 		NodePath parent; | 
					
						
							| 
									
										
										
										
											2022-01-30 21:31:32 +00:00
										 |  |  | 		Node *owner = nullptr; | 
					
						
							|  |  |  | 		int index = 0; | 
					
						
							|  |  |  | 		// Used if the original parent node is lost
 | 
					
						
							|  |  |  | 		Transform2D transform_2d; | 
					
						
							|  |  |  | 		Transform3D transform_3d; | 
					
						
							|  |  |  | 	}; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	struct ConnectionWithNodePath { | 
					
						
							|  |  |  | 		Connection connection; | 
					
						
							|  |  |  | 		NodePath node_path; | 
					
						
							|  |  |  | 	}; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	struct ModificationNodeEntry { | 
					
						
							|  |  |  | 		HashMap<StringName, Variant> property_table; | 
					
						
							|  |  |  | 		List<ConnectionWithNodePath> connections_to; | 
					
						
							|  |  |  | 		List<Connection> connections_from; | 
					
						
							|  |  |  | 		List<Node::GroupInfo> groups; | 
					
						
							|  |  |  | 	}; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-08-06 17:59:41 -04:00
										 |  |  | 	struct InstanceModificationsEntry { | 
					
						
							|  |  |  | 		Node *original_node; | 
					
						
							| 
									
										
										
										
											2024-08-07 20:07:27 -04:00
										 |  |  | 		String instance_path; | 
					
						
							| 
									
										
										
										
											2024-08-06 17:59:41 -04:00
										 |  |  | 		List<Node *> instance_list; | 
					
						
							|  |  |  | 		HashMap<NodePath, ModificationNodeEntry> modifications; | 
					
						
							|  |  |  | 		List<AdditiveNodeEntry> addition_list; | 
					
						
							|  |  |  | 	}; | 
					
						
							| 
									
										
										
										
											2024-07-08 14:28:43 -04:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-08-06 17:59:41 -04:00
										 |  |  | 	struct SceneModificationsEntry { | 
					
						
							|  |  |  | 		List<InstanceModificationsEntry> instance_list; | 
					
						
							|  |  |  | 		HashMap<NodePath, ModificationNodeEntry> other_instances_modifications; | 
					
						
							|  |  |  | 	}; | 
					
						
							| 
									
										
										
										
											2023-02-22 18:07:36 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-08-27 05:26:54 +01:00
										 |  |  | 	struct SceneEditorDataEntry { | 
					
						
							| 
									
										
										
										
											2024-12-06 09:09:39 +01:00
										 |  |  | 		bool is_editable = false; | 
					
						
							|  |  |  | 		bool is_display_folded = false; | 
					
						
							| 
									
										
										
										
											2024-08-27 05:26:54 +01:00
										 |  |  | 	}; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-08-06 17:59:41 -04:00
										 |  |  | 	HashMap<int, SceneModificationsEntry> scenes_modification_table; | 
					
						
							| 
									
										
										
										
											2024-06-11 20:11:10 -04:00
										 |  |  | 	List<String> scenes_reimported; | 
					
						
							|  |  |  | 	List<String> resources_reimported; | 
					
						
							| 
									
										
										
										
											2024-08-06 17:59:41 -04:00
										 |  |  | 
 | 
					
						
							|  |  |  | 	void update_node_from_node_modification_entry(Node *p_node, ModificationNodeEntry &p_node_modification); | 
					
						
							| 
									
										
										
										
											2024-05-23 11:07:51 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-08-27 05:26:54 +01:00
										 |  |  | 	void get_scene_editor_data_for_node(Node *p_root, Node *p_node, HashMap<NodePath, SceneEditorDataEntry> &p_table); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-07-08 14:28:43 -04:00
										 |  |  | 	void get_preload_scene_modification_table( | 
					
						
							|  |  |  | 			Node *p_edited_scene, | 
					
						
							|  |  |  | 			Node *p_reimported_root, | 
					
						
							| 
									
										
										
										
											2024-08-06 17:59:41 -04:00
										 |  |  | 			Node *p_node, InstanceModificationsEntry &p_instance_modifications); | 
					
						
							| 
									
										
										
										
											2024-07-08 14:28:43 -04:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-08-06 17:59:41 -04:00
										 |  |  | 	void get_preload_modifications_reference_to_nodes( | 
					
						
							|  |  |  | 			Node *p_root, | 
					
						
							| 
									
										
										
										
											2024-05-23 11:07:51 +01:00
										 |  |  | 			Node *p_node, | 
					
						
							| 
									
										
										
										
											2024-08-27 05:26:54 +01:00
										 |  |  | 			HashSet<Node *> &p_excluded_nodes, | 
					
						
							| 
									
										
										
										
											2024-08-06 17:59:41 -04:00
										 |  |  | 			List<Node *> &p_instance_list_with_children, | 
					
						
							|  |  |  | 			HashMap<NodePath, ModificationNodeEntry> &p_modification_table); | 
					
						
							|  |  |  | 	void get_children_nodes(Node *p_node, List<Node *> &p_nodes); | 
					
						
							| 
									
										
										
										
											2024-07-08 14:28:43 -04:00
										 |  |  | 	bool is_additional_node_in_scene(Node *p_edited_scene, Node *p_reimported_root, Node *p_node); | 
					
						
							| 
									
										
										
										
											2022-01-30 21:31:32 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-08-02 16:50:22 -04:00
										 |  |  | 	void replace_history_reimported_nodes(Node *p_original_root_node, Node *p_new_root_node, Node *p_node); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-08-23 20:15:56 -03:00
										 |  |  | 	bool is_scene_open(const String &p_path); | 
					
						
							| 
									
										
										
										
											2023-11-06 12:41:08 +01:00
										 |  |  | 	bool is_multi_window_enabled() const; | 
					
						
							| 
									
										
										
										
											2015-08-23 20:15:56 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-10-11 14:57:20 +02:00
										 |  |  | 	void setup_color_picker(ColorPicker *p_picker); | 
					
						
							| 
									
										
										
										
											2022-06-30 23:43:46 -04:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-11-16 00:13:39 +01:00
										 |  |  | 	void request_instantiate_scene(const String &p_path); | 
					
						
							| 
									
										
										
										
											2021-06-17 16:03:09 -06:00
										 |  |  | 	void request_instantiate_scenes(const Vector<String> &p_files); | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 
 | 
					
						
							|  |  |  | 	void set_convert_old_scene(bool p_old) { convert_old = p_old; } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-02-07 02:52:05 +01:00
										 |  |  | 	void notify_all_debug_sessions_exited(); | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-04-12 21:02:28 +02:00
										 |  |  | 	OS::ProcessID has_child_process(OS::ProcessID p_pid) const; | 
					
						
							| 
									
										
										
										
											2020-02-07 02:52:05 +01:00
										 |  |  | 	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; } | 
					
						
							| 
									
										
										
										
											2023-09-06 16:11:05 +02:00
										 |  |  | 	void update_preview_themes(int p_mode); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											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; | 
					
						
							| 
									
										
										
										
											2022-05-05 14:27:29 +02:00
										 |  |  | 	Ref<Texture2D> get_object_icon(const Object *p_object, const String &p_fallback = "Object"); | 
					
						
							| 
									
										
										
										
											2023-08-01 20:04:28 +03:00
										 |  |  | 	Ref<Texture2D> get_class_icon(const String &p_class, const String &p_fallback = ""); | 
					
						
							| 
									
										
										
										
											2015-01-03 16:52:37 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-10-08 00:16:54 +02:00
										 |  |  | 	bool is_object_of_custom_type(const Object *p_object, const StringName &p_class); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-05-26 23:41:19 -03:00
										 |  |  | 	void show_accept(const String &p_text, const String &p_title); | 
					
						
							| 
									
										
										
										
											2021-09-11 01:35:13 +00:00
										 |  |  | 	void show_save_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); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-09-17 12:48:10 +02:00
										 |  |  | 	Error export_preset(const String &p_preset, const String &p_path, bool p_debug, bool p_pack_only, bool p_android_build_template, bool p_patch, const Vector<String> &p_patches); | 
					
						
							| 
									
										
										
										
											2023-11-20 14:44:38 +01:00
										 |  |  | 	bool is_project_exporting() const; | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 
 | 
					
						
							|  |  |  | 	Control *get_gui_base() { return gui_base; } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-08-26 10:32:15 -03:00
										 |  |  | 	void save_scene_to_path(String p_file, bool p_with_preview = true) { | 
					
						
							| 
									
										
										
										
											2025-06-20 23:13:27 +02:00
										 |  |  | 		if (p_with_preview) { | 
					
						
							|  |  |  | 			_save_scene_with_preview(p_file); | 
					
						
							|  |  |  | 		} else { | 
					
						
							|  |  |  | 			_save_scene(p_file); | 
					
						
							|  |  |  | 		} | 
					
						
							| 
									
										
										
										
											2017-08-26 10:32:15 -03:00
										 |  |  | 	} | 
					
						
							| 
									
										
										
										
											2014-06-19 02:23:03 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-04-17 19:37:55 +02:00
										 |  |  | 	bool close_scene(); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-06-19 02:23:03 -03:00
										 |  |  | 	bool is_scene_in_use(const String &p_path); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-05-11 04:17:03 +02:00
										 |  |  | 	void save_editor_layout_delayed(); | 
					
						
							| 
									
										
										
										
											2023-04-12 21:02:28 +02:00
										 |  |  | 	void save_default_environment(); | 
					
						
							| 
									
										
										
										
											2015-06-22 00:03:19 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-03-20 23:31:41 -03:00
										 |  |  | 	void open_export_template_manager(); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-06-28 18:53:31 -03:00
										 |  |  | 	void reload_scene(const String &p_path); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-08-27 05:26:54 +01:00
										 |  |  | 	void find_all_instances_inheriting_path_in_node(Node *p_root, Node *p_node, const String &p_instance_path, HashSet<Node *> &p_instance_list); | 
					
						
							| 
									
										
										
										
											2024-08-07 20:07:27 -04:00
										 |  |  | 	void preload_reimporting_with_path_in_edited_scenes(const List<String> &p_scenes); | 
					
						
							|  |  |  | 	void reload_instances_with_path_in_edited_scenes(); | 
					
						
							| 
									
										
										
										
											2022-01-30 21:31:32 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-06-07 22:08:12 -03:00
										 |  |  | 	bool is_exiting() const { return exiting; } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-04-05 22:26:29 +02:00
										 |  |  | 	Dictionary drag_resource(const Ref<Resource> &p_res, Control *p_from); | 
					
						
							|  |  |  | 	Dictionary drag_files_and_dirs(const Vector<String> &p_paths, Control *p_from); | 
					
						
							| 
									
										
										
										
											2016-05-11 11:46:08 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-12-02 21:33:38 +01:00
										 |  |  | 	EditorQuickOpenDialog *get_quick_open_dialog() { return quick_open_dialog; } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-12-16 00:04:21 +01:00
										 |  |  | 	void add_tool_menu_item(const String &p_name, const Callable &p_callback); | 
					
						
							| 
									
										
										
										
											2016-08-07 11:01:22 -03: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
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-04-06 18:11:04 +05:30
										 |  |  | 	PopupMenu *get_export_as_menu(); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-01-25 17:23:56 -03:00
										 |  |  | 	void save_all_scenes(); | 
					
						
							| 
									
										
										
										
											2023-10-25 16:16:38 +03:00
										 |  |  | 	void save_scene_if_open(const String &p_scene_path); | 
					
						
							|  |  |  | 	void save_scene_list(const HashSet<String> &p_scene_paths); | 
					
						
							| 
									
										
										
										
											2023-04-12 21:02:28 +02:00
										 |  |  | 	void save_before_run(); | 
					
						
							|  |  |  | 	void try_autosave(); | 
					
						
							| 
									
										
										
										
											2024-07-28 20:31:36 +02:00
										 |  |  | 	void restart_editor(bool p_goto_project_manager = false); | 
					
						
							| 
									
										
										
										
											2024-07-09 09:48:45 +03:00
										 |  |  | 	void unload_editor_addons(); | 
					
						
							| 
									
										
										
										
											2018-07-19 18:58:15 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-11-21 20:07:15 +01:00
										 |  |  | 	void open_setting_override(const String &p_property); | 
					
						
							|  |  |  | 	void notify_settings_overrides_changed(); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-05-28 20:58:03 -03:00
										 |  |  | 	void dim_editor(bool p_dimming); | 
					
						
							| 
									
										
										
										
											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(); } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-09-21 00:14:04 -03:00
										 |  |  | 	bool has_scenes_in_session(); | 
					
						
							| 
									
										
										
										
											2018-05-17 01:01:47 -05:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-07-03 15:14:51 +02:00
										 |  |  | 	void undo(); | 
					
						
							|  |  |  | 	void redo(); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-11-11 17:20:04 -08: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, String *r_output = nullptr); | 
					
						
							| 
									
										
										
										
											2019-04-07 15:46:52 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-03-09 00:00:52 +01:00
										 |  |  | 	EditorNode(); | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 	~EditorNode(); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											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); | 
					
						
							| 
									
										
										
										
											2022-09-09 19:39:37 +01:00
										 |  |  | 	Vector<Ref<EditorResourceConversionPlugin>> find_resource_conversion_plugin_for_resource(const Ref<Resource> &p_for_resource); | 
					
						
							|  |  |  | 	Vector<Ref<EditorResourceConversionPlugin>> find_resource_conversion_plugin_for_type_name(const String &p_type); | 
					
						
							| 
									
										
										
										
											2017-09-22 09:20:28 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-03-22 02:08:28 +01:00
										 |  |  | 	bool ensure_main_scene(bool p_from_native); | 
					
						
							| 
									
										
										
										
											2025-04-04 21:21:42 +08:00
										 |  |  | 	bool validate_custom_directory(); | 
					
						
							| 
									
										
										
										
											2025-05-13 02:07:26 -04:00
										 |  |  | 	void run_editor_script(const Ref<Script> &p_script); | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-03-29 20:02:53 -03:00
										 |  |  | class EditorPluginList : public Object { | 
					
						
							|  |  |  | private: | 
					
						
							|  |  |  | 	Vector<EditorPlugin *> plugins_list; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | public: | 
					
						
							|  |  |  | 	void set_plugins_list(Vector<EditorPlugin *> p_plugins_list) { | 
					
						
							|  |  |  | 		plugins_list = p_plugins_list; | 
					
						
							|  |  |  | 	} | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-07-04 10:43:07 -03: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); | 
					
						
							| 
									
										
										
										
											2022-09-08 18:38:33 +02:00
										 |  |  | 	EditorPlugin::AfterGUIInput forward_3d_gui_input(Camera3D *p_camera, const Ref<InputEvent> &p_event, bool serve_when_force_input_enabled); | 
					
						
							|  |  |  | 	void forward_3d_draw_over_viewport(Control *p_overlay); | 
					
						
							|  |  |  | 	void forward_3d_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-05-21 15:29:25 +02:00
										 |  |  | }; | 
					
						
							| 
									
										
										
										
											2016-03-29 20:02:53 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | struct EditorProgressBG { | 
					
						
							|  |  |  | 	String task; | 
					
						
							|  |  |  | 	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; | 
					
						
							|  |  |  | 	} | 
					
						
							|  |  |  | 	~EditorProgressBG() { EditorNode::progress_end_task_bg(task); } | 
					
						
							|  |  |  | }; |