diff --git a/editor/debugger/debug_adapter/debug_adapter_server.h b/editor/debugger/debug_adapter/debug_adapter_server.h index c834ab218265..310bac1b6c9e 100644 --- a/editor/debugger/debug_adapter/debug_adapter_server.h +++ b/editor/debugger/debug_adapter/debug_adapter_server.h @@ -32,7 +32,7 @@ #define DEBUG_ADAPTER_SERVER_H #include "debug_adapter_protocol.h" -#include "editor/editor_plugin.h" +#include "editor/plugins/editor_plugin.h" class DebugAdapterServer : public EditorPlugin { GDCLASS(DebugAdapterServer, EditorPlugin); diff --git a/editor/editor_audio_buses.h b/editor/editor_audio_buses.h index 99e3214781e5..b1f811fbf6c5 100644 --- a/editor/editor_audio_buses.h +++ b/editor/editor_audio_buses.h @@ -31,7 +31,7 @@ #ifndef EDITOR_AUDIO_BUSES_H #define EDITOR_AUDIO_BUSES_H -#include "editor/editor_plugin.h" +#include "editor/plugins/editor_plugin.h" #include "scene/gui/box_container.h" #include "scene/gui/button.h" #include "scene/gui/control.h" diff --git a/editor/editor_data.cpp b/editor/editor_data.cpp index bdc650441713..bd1eef8e53bf 100644 --- a/editor/editor_data.cpp +++ b/editor/editor_data.cpp @@ -36,9 +36,9 @@ #include "core/io/image_loader.h" #include "core/io/resource_loader.h" #include "editor/editor_node.h" -#include "editor/editor_plugin.h" #include "editor/editor_undo_redo_manager.h" #include "editor/multi_node_edit.h" +#include "editor/plugins/editor_plugin.h" #include "editor/plugins/script_editor_plugin.h" #include "editor/themes/editor_scale.h" #include "scene/resources/packed_scene.h" diff --git a/editor/editor_help.h b/editor/editor_help.h index 078b42b439d0..ca3a05275f5c 100644 --- a/editor/editor_help.h +++ b/editor/editor_help.h @@ -34,7 +34,7 @@ #include "core/os/thread.h" #include "editor/code_editor.h" #include "editor/doc_tools.h" -#include "editor/editor_plugin.h" +#include "editor/plugins/editor_plugin.h" #include "scene/gui/menu_button.h" #include "scene/gui/panel_container.h" #include "scene/gui/popup.h" diff --git a/editor/editor_help_search.h b/editor/editor_help_search.h index 39ffc2f71b6e..58061dae4c2d 100644 --- a/editor/editor_help_search.h +++ b/editor/editor_help_search.h @@ -34,7 +34,7 @@ #include "core/templates/rb_map.h" #include "editor/code_editor.h" #include "editor/editor_help.h" -#include "editor/editor_plugin.h" +#include "editor/plugins/editor_plugin.h" #include "scene/gui/option_button.h" #include "scene/gui/tree.h" diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp index 134733fa118e..b9ac7b6d4269 100644 --- a/editor/editor_node.cpp +++ b/editor/editor_node.cpp @@ -90,7 +90,6 @@ #include "editor/editor_log.h" #include "editor/editor_native_shader_source_visualizer.h" #include "editor/editor_paths.h" -#include "editor/editor_plugin.h" #include "editor/editor_properties.h" #include "editor/editor_property_name_processor.h" #include "editor/editor_quick_open.h" @@ -134,12 +133,12 @@ #include "editor/inspector_dock.h" #include "editor/multi_node_edit.h" #include "editor/node_dock.h" -#include "editor/plugin_config_dialog.h" #include "editor/plugins/animation_player_editor_plugin.h" #include "editor/plugins/asset_library_editor_plugin.h" #include "editor/plugins/canvas_item_editor_plugin.h" #include "editor/plugins/debugger_editor_plugin.h" #include "editor/plugins/dedicated_server_export_plugin.h" +#include "editor/plugins/editor_plugin.h" #include "editor/plugins/editor_preview_plugins.h" #include "editor/plugins/editor_resource_conversion_plugin.h" #include "editor/plugins/gdextension_export_plugin.h" @@ -148,6 +147,7 @@ #include "editor/plugins/node_3d_editor_plugin.h" #include "editor/plugins/packed_scene_translation_parser_plugin.h" #include "editor/plugins/particle_process_material_editor_plugin.h" +#include "editor/plugins/plugin_config_dialog.h" #include "editor/plugins/root_motion_editor_plugin.h" #include "editor/plugins/script_text_editor.h" #include "editor/plugins/text_editor.h" diff --git a/editor/editor_node.h b/editor/editor_node.h index ad0a7ec5e084..54c84bc6a6d5 100644 --- a/editor/editor_node.h +++ b/editor/editor_node.h @@ -35,7 +35,7 @@ #include "core/templates/safe_refcount.h" #include "editor/editor_data.h" #include "editor/editor_folding.h" -#include "editor/editor_plugin.h" +#include "editor/plugins/editor_plugin.h" typedef void (*EditorNodeInitCallback)(); typedef void (*EditorPluginInitializeCallback)(); diff --git a/editor/import/audio_stream_import_settings.h b/editor/import/audio_stream_import_settings.h index da6344adb9b1..931faf45aff5 100644 --- a/editor/import/audio_stream_import_settings.h +++ b/editor/import/audio_stream_import_settings.h @@ -31,7 +31,7 @@ #ifndef AUDIO_STREAM_IMPORT_SETTINGS_H #define AUDIO_STREAM_IMPORT_SETTINGS_H -#include "editor/editor_plugin.h" +#include "editor/plugins/editor_plugin.h" #include "scene/audio/audio_stream_player.h" #include "scene/gui/color_rect.h" #include "scene/gui/dialogs.h" diff --git a/editor/import_defaults_editor.cpp b/editor/import_defaults_editor.cpp index 569fdc091e88..968f2a89156e 100644 --- a/editor/import_defaults_editor.cpp +++ b/editor/import_defaults_editor.cpp @@ -34,9 +34,9 @@ #include "core/io/resource_importer.h" #include "editor/action_map_editor.h" #include "editor/editor_autoload_settings.h" -#include "editor/editor_plugin_settings.h" #include "editor/editor_sectioned_inspector.h" #include "editor/localization_editor.h" +#include "editor/plugins/editor_plugin_settings.h" #include "editor/shader_globals_editor.h" #include "scene/gui/center_container.h" diff --git a/editor/plugins/abstract_polygon_2d_editor.h b/editor/plugins/abstract_polygon_2d_editor.h index 70cccebf40cf..42170d9ffd1c 100644 --- a/editor/plugins/abstract_polygon_2d_editor.h +++ b/editor/plugins/abstract_polygon_2d_editor.h @@ -31,7 +31,7 @@ #ifndef ABSTRACT_POLYGON_2D_EDITOR_H #define ABSTRACT_POLYGON_2D_EDITOR_H -#include "editor/editor_plugin.h" +#include "editor/plugins/editor_plugin.h" #include "scene/2d/polygon_2d.h" #include "scene/gui/box_container.h" diff --git a/editor/plugins/animation_blend_space_1d_editor.h b/editor/plugins/animation_blend_space_1d_editor.h index a0ed81310091..00bd3c767d4d 100644 --- a/editor/plugins/animation_blend_space_1d_editor.h +++ b/editor/plugins/animation_blend_space_1d_editor.h @@ -31,8 +31,8 @@ #ifndef ANIMATION_BLEND_SPACE_1D_EDITOR_H #define ANIMATION_BLEND_SPACE_1D_EDITOR_H -#include "editor/editor_plugin.h" #include "editor/plugins/animation_tree_editor_plugin.h" +#include "editor/plugins/editor_plugin.h" #include "scene/animation/animation_blend_space_1d.h" #include "scene/gui/graph_edit.h" #include "scene/gui/popup.h" diff --git a/editor/plugins/animation_blend_space_2d_editor.h b/editor/plugins/animation_blend_space_2d_editor.h index a89a7b4511dc..15d81c070759 100644 --- a/editor/plugins/animation_blend_space_2d_editor.h +++ b/editor/plugins/animation_blend_space_2d_editor.h @@ -31,8 +31,8 @@ #ifndef ANIMATION_BLEND_SPACE_2D_EDITOR_H #define ANIMATION_BLEND_SPACE_2D_EDITOR_H -#include "editor/editor_plugin.h" #include "editor/plugins/animation_tree_editor_plugin.h" +#include "editor/plugins/editor_plugin.h" #include "scene/animation/animation_blend_space_2d.h" #include "scene/gui/graph_edit.h" #include "scene/gui/popup.h" diff --git a/editor/plugins/animation_library_editor.h b/editor/plugins/animation_library_editor.h index a268e6893266..c8d9274f4f20 100644 --- a/editor/plugins/animation_library_editor.h +++ b/editor/plugins/animation_library_editor.h @@ -32,7 +32,7 @@ #define ANIMATION_LIBRARY_EDITOR_H #include "editor/animation_track_editor.h" -#include "editor/editor_plugin.h" +#include "editor/plugins/editor_plugin.h" #include "scene/animation/animation_mixer.h" #include "scene/gui/dialogs.h" #include "scene/gui/tree.h" diff --git a/editor/plugins/animation_player_editor_plugin.h b/editor/plugins/animation_player_editor_plugin.h index a1175e2a0f99..70b31759fc32 100644 --- a/editor/plugins/animation_player_editor_plugin.h +++ b/editor/plugins/animation_player_editor_plugin.h @@ -32,8 +32,8 @@ #define ANIMATION_PLAYER_EDITOR_PLUGIN_H #include "editor/animation_track_editor.h" -#include "editor/editor_plugin.h" #include "editor/plugins/animation_library_editor.h" +#include "editor/plugins/editor_plugin.h" #include "scene/animation/animation_player.h" #include "scene/gui/dialogs.h" #include "scene/gui/slider.h" diff --git a/editor/plugins/animation_tree_editor_plugin.h b/editor/plugins/animation_tree_editor_plugin.h index da979a5315f4..8dc820695ae9 100644 --- a/editor/plugins/animation_tree_editor_plugin.h +++ b/editor/plugins/animation_tree_editor_plugin.h @@ -31,7 +31,7 @@ #ifndef ANIMATION_TREE_EDITOR_PLUGIN_H #define ANIMATION_TREE_EDITOR_PLUGIN_H -#include "editor/editor_plugin.h" +#include "editor/plugins/editor_plugin.h" #include "scene/animation/animation_tree.h" #include "scene/gui/graph_edit.h" diff --git a/editor/plugins/asset_library_editor_plugin.h b/editor/plugins/asset_library_editor_plugin.h index cb38933bf429..a80e7c8f9683 100644 --- a/editor/plugins/asset_library_editor_plugin.h +++ b/editor/plugins/asset_library_editor_plugin.h @@ -32,8 +32,8 @@ #define ASSET_LIBRARY_EDITOR_PLUGIN_H #include "editor/editor_asset_installer.h" -#include "editor/editor_plugin.h" -#include "editor/editor_plugin_settings.h" +#include "editor/plugins/editor_plugin.h" +#include "editor/plugins/editor_plugin_settings.h" #include "scene/gui/box_container.h" #include "scene/gui/check_box.h" #include "scene/gui/grid_container.h" diff --git a/editor/plugins/audio_stream_editor_plugin.h b/editor/plugins/audio_stream_editor_plugin.h index 52aa5f615085..0501409c178f 100644 --- a/editor/plugins/audio_stream_editor_plugin.h +++ b/editor/plugins/audio_stream_editor_plugin.h @@ -32,7 +32,7 @@ #define AUDIO_STREAM_EDITOR_PLUGIN_H #include "editor/editor_inspector.h" -#include "editor/editor_plugin.h" +#include "editor/plugins/editor_plugin.h" #include "scene/audio/audio_stream_player.h" #include "scene/gui/button.h" #include "scene/gui/color_rect.h" diff --git a/editor/plugins/audio_stream_randomizer_editor_plugin.h b/editor/plugins/audio_stream_randomizer_editor_plugin.h index 535ab4114ba9..9d2fc76e9e90 100644 --- a/editor/plugins/audio_stream_randomizer_editor_plugin.h +++ b/editor/plugins/audio_stream_randomizer_editor_plugin.h @@ -31,7 +31,7 @@ #ifndef AUDIO_STREAM_RANDOMIZER_EDITOR_PLUGIN_H #define AUDIO_STREAM_RANDOMIZER_EDITOR_PLUGIN_H -#include "editor/editor_plugin.h" +#include "editor/plugins/editor_plugin.h" #include "servers/audio/audio_stream.h" class AudioStreamRandomizerEditorPlugin : public EditorPlugin { diff --git a/editor/plugins/bit_map_editor_plugin.h b/editor/plugins/bit_map_editor_plugin.h index afab1da2f742..030536ab6b35 100644 --- a/editor/plugins/bit_map_editor_plugin.h +++ b/editor/plugins/bit_map_editor_plugin.h @@ -32,7 +32,7 @@ #define BIT_MAP_EDITOR_PLUGIN_H #include "editor/editor_inspector.h" -#include "editor/editor_plugin.h" +#include "editor/plugins/editor_plugin.h" #include "scene/resources/bit_map.h" class TextureRect; diff --git a/editor/plugins/bone_map_editor_plugin.h b/editor/plugins/bone_map_editor_plugin.h index 2e7d1ff1248d..f3aa2fc84df3 100644 --- a/editor/plugins/bone_map_editor_plugin.h +++ b/editor/plugins/bone_map_editor_plugin.h @@ -32,8 +32,8 @@ #define BONE_MAP_EDITOR_PLUGIN_H #include "editor/editor_node.h" -#include "editor/editor_plugin.h" #include "editor/editor_properties.h" +#include "editor/plugins/editor_plugin.h" #include "modules/modules_enabled.gen.h" // For regex. #ifdef MODULE_REGEX_ENABLED diff --git a/editor/plugins/camera_3d_editor_plugin.h b/editor/plugins/camera_3d_editor_plugin.h index 7d5fae6f2b06..2e4d8a1ee375 100644 --- a/editor/plugins/camera_3d_editor_plugin.h +++ b/editor/plugins/camera_3d_editor_plugin.h @@ -31,7 +31,7 @@ #ifndef CAMERA_3D_EDITOR_PLUGIN_H #define CAMERA_3D_EDITOR_PLUGIN_H -#include "editor/editor_plugin.h" +#include "editor/plugins/editor_plugin.h" #include "scene/3d/camera_3d.h" class Camera3DEditor : public Control { diff --git a/editor/plugins/canvas_item_editor_plugin.h b/editor/plugins/canvas_item_editor_plugin.h index f52ad3dc4f54..6d951a77ec00 100644 --- a/editor/plugins/canvas_item_editor_plugin.h +++ b/editor/plugins/canvas_item_editor_plugin.h @@ -31,7 +31,7 @@ #ifndef CANVAS_ITEM_EDITOR_PLUGIN_H #define CANVAS_ITEM_EDITOR_PLUGIN_H -#include "editor/editor_plugin.h" +#include "editor/plugins/editor_plugin.h" #include "scene/gui/base_button.h" #include "scene/gui/box_container.h" diff --git a/editor/plugins/cast_2d_editor_plugin.h b/editor/plugins/cast_2d_editor_plugin.h index 36b302f311ff..cbe7e0300869 100644 --- a/editor/plugins/cast_2d_editor_plugin.h +++ b/editor/plugins/cast_2d_editor_plugin.h @@ -31,7 +31,7 @@ #ifndef CAST_2D_EDITOR_PLUGIN_H #define CAST_2D_EDITOR_PLUGIN_H -#include "editor/editor_plugin.h" +#include "editor/plugins/editor_plugin.h" #include "scene/2d/node_2d.h" class CanvasItemEditor; diff --git a/editor/plugins/collision_shape_2d_editor_plugin.h b/editor/plugins/collision_shape_2d_editor_plugin.h index 19b2de382104..672e1d9ce0ab 100644 --- a/editor/plugins/collision_shape_2d_editor_plugin.h +++ b/editor/plugins/collision_shape_2d_editor_plugin.h @@ -31,7 +31,7 @@ #ifndef COLLISION_SHAPE_2D_EDITOR_PLUGIN_H #define COLLISION_SHAPE_2D_EDITOR_PLUGIN_H -#include "editor/editor_plugin.h" +#include "editor/plugins/editor_plugin.h" #include "scene/2d/physics/collision_shape_2d.h" class CanvasItemEditor; diff --git a/editor/plugins/control_editor_plugin.h b/editor/plugins/control_editor_plugin.h index 4a411c0241f6..b87ec52931d5 100644 --- a/editor/plugins/control_editor_plugin.h +++ b/editor/plugins/control_editor_plugin.h @@ -32,7 +32,7 @@ #define CONTROL_EDITOR_PLUGIN_H #include "editor/editor_inspector.h" -#include "editor/editor_plugin.h" +#include "editor/plugins/editor_plugin.h" #include "scene/gui/box_container.h" #include "scene/gui/button.h" #include "scene/gui/check_box.h" diff --git a/editor/plugins/cpu_particles_2d_editor_plugin.h b/editor/plugins/cpu_particles_2d_editor_plugin.h index a408f771eb5d..4d59c9981e3e 100644 --- a/editor/plugins/cpu_particles_2d_editor_plugin.h +++ b/editor/plugins/cpu_particles_2d_editor_plugin.h @@ -31,7 +31,7 @@ #ifndef CPU_PARTICLES_2D_EDITOR_PLUGIN_H #define CPU_PARTICLES_2D_EDITOR_PLUGIN_H -#include "editor/editor_plugin.h" +#include "editor/plugins/editor_plugin.h" #include "scene/2d/cpu_particles_2d.h" #include "scene/2d/physics/collision_polygon_2d.h" #include "scene/gui/box_container.h" diff --git a/editor/plugins/curve_editor_plugin.h b/editor/plugins/curve_editor_plugin.h index b6a74d9b93bf..c844f420296f 100644 --- a/editor/plugins/curve_editor_plugin.h +++ b/editor/plugins/curve_editor_plugin.h @@ -32,8 +32,8 @@ #define CURVE_EDITOR_PLUGIN_H #include "editor/editor_inspector.h" -#include "editor/editor_plugin.h" #include "editor/editor_resource_preview.h" +#include "editor/plugins/editor_plugin.h" #include "scene/resources/curve.h" class EditorSpinSlider; diff --git a/editor/plugins/debugger_editor_plugin.h b/editor/plugins/debugger_editor_plugin.h index b7453e3e81e2..a6df83496e6c 100644 --- a/editor/plugins/debugger_editor_plugin.h +++ b/editor/plugins/debugger_editor_plugin.h @@ -31,7 +31,7 @@ #ifndef DEBUGGER_EDITOR_PLUGIN_H #define DEBUGGER_EDITOR_PLUGIN_H -#include "editor/editor_plugin.h" +#include "editor/plugins/editor_plugin.h" class EditorFileServer; class MenuButton; diff --git a/editor/editor_plugin.compat.inc b/editor/plugins/editor_plugin.compat.inc similarity index 100% rename from editor/editor_plugin.compat.inc rename to editor/plugins/editor_plugin.compat.inc diff --git a/editor/editor_plugin.cpp b/editor/plugins/editor_plugin.cpp similarity index 100% rename from editor/editor_plugin.cpp rename to editor/plugins/editor_plugin.cpp diff --git a/editor/editor_plugin.h b/editor/plugins/editor_plugin.h similarity index 100% rename from editor/editor_plugin.h rename to editor/plugins/editor_plugin.h diff --git a/editor/editor_plugin_settings.cpp b/editor/plugins/editor_plugin_settings.cpp similarity index 100% rename from editor/editor_plugin_settings.cpp rename to editor/plugins/editor_plugin_settings.cpp diff --git a/editor/editor_plugin_settings.h b/editor/plugins/editor_plugin_settings.h similarity index 98% rename from editor/editor_plugin_settings.h rename to editor/plugins/editor_plugin_settings.h index 8db8ffd78c59..5b470b3e5835 100644 --- a/editor/editor_plugin_settings.h +++ b/editor/plugins/editor_plugin_settings.h @@ -32,7 +32,7 @@ #define EDITOR_PLUGIN_SETTINGS_H #include "editor/editor_data.h" -#include "editor/plugin_config_dialog.h" +#include "editor/plugins/plugin_config_dialog.h" class Tree; diff --git a/editor/plugins/font_config_plugin.h b/editor/plugins/font_config_plugin.h index 1adb5789506e..7b2d26da4aa4 100644 --- a/editor/plugins/font_config_plugin.h +++ b/editor/plugins/font_config_plugin.h @@ -32,9 +32,9 @@ #define FONT_CONFIG_PLUGIN_H #include "core/io/marshalls.h" -#include "editor/editor_plugin.h" #include "editor/editor_properties.h" #include "editor/editor_properties_array_dict.h" +#include "editor/plugins/editor_plugin.h" /*************************************************************************/ diff --git a/editor/plugins/gpu_particles_2d_editor_plugin.h b/editor/plugins/gpu_particles_2d_editor_plugin.h index aad623ee6014..bb0ca5de3a8f 100644 --- a/editor/plugins/gpu_particles_2d_editor_plugin.h +++ b/editor/plugins/gpu_particles_2d_editor_plugin.h @@ -31,7 +31,7 @@ #ifndef GPU_PARTICLES_2D_EDITOR_PLUGIN_H #define GPU_PARTICLES_2D_EDITOR_PLUGIN_H -#include "editor/editor_plugin.h" +#include "editor/plugins/editor_plugin.h" #include "scene/2d/gpu_particles_2d.h" #include "scene/2d/physics/collision_polygon_2d.h" #include "scene/gui/box_container.h" diff --git a/editor/plugins/gpu_particles_3d_editor_plugin.h b/editor/plugins/gpu_particles_3d_editor_plugin.h index 176a45df56a4..3b2ab2f8ca45 100644 --- a/editor/plugins/gpu_particles_3d_editor_plugin.h +++ b/editor/plugins/gpu_particles_3d_editor_plugin.h @@ -31,7 +31,7 @@ #ifndef GPU_PARTICLES_3D_EDITOR_PLUGIN_H #define GPU_PARTICLES_3D_EDITOR_PLUGIN_H -#include "editor/editor_plugin.h" +#include "editor/plugins/editor_plugin.h" #include "scene/3d/gpu_particles_3d.h" #include "scene/gui/spin_box.h" diff --git a/editor/plugins/gpu_particles_collision_sdf_editor_plugin.h b/editor/plugins/gpu_particles_collision_sdf_editor_plugin.h index 9f59f6e2cdbe..bba8bd258411 100644 --- a/editor/plugins/gpu_particles_collision_sdf_editor_plugin.h +++ b/editor/plugins/gpu_particles_collision_sdf_editor_plugin.h @@ -31,7 +31,7 @@ #ifndef GPU_PARTICLES_COLLISION_SDF_EDITOR_PLUGIN_H #define GPU_PARTICLES_COLLISION_SDF_EDITOR_PLUGIN_H -#include "editor/editor_plugin.h" +#include "editor/plugins/editor_plugin.h" #include "scene/3d/gpu_particles_collision_3d.h" #include "scene/resources/material.h" diff --git a/editor/plugins/gradient_editor_plugin.h b/editor/plugins/gradient_editor_plugin.h index 06d79d55abcf..f211e4ef3053 100644 --- a/editor/plugins/gradient_editor_plugin.h +++ b/editor/plugins/gradient_editor_plugin.h @@ -32,7 +32,7 @@ #define GRADIENT_EDITOR_PLUGIN_H #include "editor/editor_inspector.h" -#include "editor/editor_plugin.h" +#include "editor/plugins/editor_plugin.h" class EditorSpinSlider; class ColorPicker; diff --git a/editor/plugins/gradient_texture_2d_editor_plugin.h b/editor/plugins/gradient_texture_2d_editor_plugin.h index 33570593cc82..a9f247c3ccd8 100644 --- a/editor/plugins/gradient_texture_2d_editor_plugin.h +++ b/editor/plugins/gradient_texture_2d_editor_plugin.h @@ -32,7 +32,7 @@ #define GRADIENT_TEXTURE_2D_EDITOR_PLUGIN_H #include "editor/editor_inspector.h" -#include "editor/editor_plugin.h" +#include "editor/plugins/editor_plugin.h" class Button; class EditorSpinSlider; diff --git a/editor/plugins/input_event_editor_plugin.h b/editor/plugins/input_event_editor_plugin.h index 779e59edd4ab..48c16a480714 100644 --- a/editor/plugins/input_event_editor_plugin.h +++ b/editor/plugins/input_event_editor_plugin.h @@ -33,7 +33,7 @@ #include "editor/action_map_editor.h" #include "editor/editor_inspector.h" -#include "editor/editor_plugin.h" +#include "editor/plugins/editor_plugin.h" class InputEventConfigContainer : public VBoxContainer { GDCLASS(InputEventConfigContainer, VBoxContainer); diff --git a/editor/plugins/lightmap_gi_editor_plugin.h b/editor/plugins/lightmap_gi_editor_plugin.h index 1234438c8d83..3e739adf9e66 100644 --- a/editor/plugins/lightmap_gi_editor_plugin.h +++ b/editor/plugins/lightmap_gi_editor_plugin.h @@ -31,7 +31,7 @@ #ifndef LIGHTMAP_GI_EDITOR_PLUGIN_H #define LIGHTMAP_GI_EDITOR_PLUGIN_H -#include "editor/editor_plugin.h" +#include "editor/plugins/editor_plugin.h" #include "scene/3d/lightmap_gi.h" #include "scene/resources/material.h" diff --git a/editor/plugins/material_editor_plugin.h b/editor/plugins/material_editor_plugin.h index c60de1ade9d4..fb6bafc0efb7 100644 --- a/editor/plugins/material_editor_plugin.h +++ b/editor/plugins/material_editor_plugin.h @@ -32,7 +32,7 @@ #define MATERIAL_EDITOR_PLUGIN_H #include "editor/editor_inspector.h" -#include "editor/editor_plugin.h" +#include "editor/plugins/editor_plugin.h" #include "editor/plugins/editor_resource_conversion_plugin.h" #include "scene/resources/3d/primitive_meshes.h" #include "scene/resources/material.h" diff --git a/editor/plugins/mesh_editor_plugin.h b/editor/plugins/mesh_editor_plugin.h index a8ef476f84c3..85d92e7800d1 100644 --- a/editor/plugins/mesh_editor_plugin.h +++ b/editor/plugins/mesh_editor_plugin.h @@ -32,7 +32,7 @@ #define MESH_EDITOR_PLUGIN_H #include "editor/editor_inspector.h" -#include "editor/editor_plugin.h" +#include "editor/plugins/editor_plugin.h" #include "scene/3d/camera_3d.h" #include "scene/3d/light_3d.h" #include "scene/3d/mesh_instance_3d.h" diff --git a/editor/plugins/mesh_instance_3d_editor_plugin.h b/editor/plugins/mesh_instance_3d_editor_plugin.h index ce7d23239c49..20c151fb9269 100644 --- a/editor/plugins/mesh_instance_3d_editor_plugin.h +++ b/editor/plugins/mesh_instance_3d_editor_plugin.h @@ -31,7 +31,7 @@ #ifndef MESH_INSTANCE_3D_EDITOR_PLUGIN_H #define MESH_INSTANCE_3D_EDITOR_PLUGIN_H -#include "editor/editor_plugin.h" +#include "editor/plugins/editor_plugin.h" #include "scene/3d/mesh_instance_3d.h" #include "scene/gui/option_button.h" diff --git a/editor/plugins/mesh_library_editor_plugin.h b/editor/plugins/mesh_library_editor_plugin.h index 3895d10c3705..94f46beea1df 100644 --- a/editor/plugins/mesh_library_editor_plugin.h +++ b/editor/plugins/mesh_library_editor_plugin.h @@ -31,7 +31,7 @@ #ifndef MESH_LIBRARY_EDITOR_PLUGIN_H #define MESH_LIBRARY_EDITOR_PLUGIN_H -#include "editor/editor_plugin.h" +#include "editor/plugins/editor_plugin.h" #include "scene/resources/3d/mesh_library.h" class EditorFileDialog; diff --git a/editor/plugins/multimesh_editor_plugin.h b/editor/plugins/multimesh_editor_plugin.h index b21a932809f7..5051926c64f8 100644 --- a/editor/plugins/multimesh_editor_plugin.h +++ b/editor/plugins/multimesh_editor_plugin.h @@ -31,7 +31,7 @@ #ifndef MULTIMESH_EDITOR_PLUGIN_H #define MULTIMESH_EDITOR_PLUGIN_H -#include "editor/editor_plugin.h" +#include "editor/plugins/editor_plugin.h" #include "scene/3d/multimesh_instance_3d.h" #include "scene/gui/slider.h" #include "scene/gui/spin_box.h" diff --git a/editor/plugins/navigation_link_2d_editor_plugin.h b/editor/plugins/navigation_link_2d_editor_plugin.h index ea731ca2cdd8..7a4be18c3167 100644 --- a/editor/plugins/navigation_link_2d_editor_plugin.h +++ b/editor/plugins/navigation_link_2d_editor_plugin.h @@ -31,7 +31,7 @@ #ifndef NAVIGATION_LINK_2D_EDITOR_PLUGIN_H #define NAVIGATION_LINK_2D_EDITOR_PLUGIN_H -#include "editor/editor_plugin.h" +#include "editor/plugins/editor_plugin.h" #include "scene/2d/navigation_link_2d.h" class CanvasItemEditor; diff --git a/editor/plugins/navigation_obstacle_3d_editor_plugin.h b/editor/plugins/navigation_obstacle_3d_editor_plugin.h index 74094dc86f5b..c62a5a281b82 100644 --- a/editor/plugins/navigation_obstacle_3d_editor_plugin.h +++ b/editor/plugins/navigation_obstacle_3d_editor_plugin.h @@ -31,7 +31,7 @@ #ifndef NAVIGATION_OBSTACLE_3D_EDITOR_PLUGIN_H #define NAVIGATION_OBSTACLE_3D_EDITOR_PLUGIN_H -#include "editor/editor_plugin.h" +#include "editor/plugins/editor_plugin.h" #include "scene/3d/mesh_instance_3d.h" #include "scene/3d/physics/collision_polygon_3d.h" #include "scene/gui/box_container.h" diff --git a/editor/plugins/navigation_polygon_editor_plugin.h b/editor/plugins/navigation_polygon_editor_plugin.h index bf2474bc55fb..4d6d245cc506 100644 --- a/editor/plugins/navigation_polygon_editor_plugin.h +++ b/editor/plugins/navigation_polygon_editor_plugin.h @@ -33,7 +33,7 @@ #include "editor/plugins/abstract_polygon_2d_editor.h" -#include "editor/editor_plugin.h" +#include "editor/plugins/editor_plugin.h" class AcceptDialog; class HBoxContainer; diff --git a/editor/plugins/node_3d_editor_plugin.h b/editor/plugins/node_3d_editor_plugin.h index 66fa932f7c05..96210de40327 100644 --- a/editor/plugins/node_3d_editor_plugin.h +++ b/editor/plugins/node_3d_editor_plugin.h @@ -31,7 +31,7 @@ #ifndef NODE_3D_EDITOR_PLUGIN_H #define NODE_3D_EDITOR_PLUGIN_H -#include "editor/editor_plugin.h" +#include "editor/plugins/editor_plugin.h" #include "editor/plugins/node_3d_editor_gizmos.h" #include "editor/themes/editor_scale.h" #include "scene/gui/box_container.h" diff --git a/editor/plugins/occluder_instance_3d_editor_plugin.h b/editor/plugins/occluder_instance_3d_editor_plugin.h index 54ac95c9e176..7920ff59c9ed 100644 --- a/editor/plugins/occluder_instance_3d_editor_plugin.h +++ b/editor/plugins/occluder_instance_3d_editor_plugin.h @@ -31,7 +31,7 @@ #ifndef OCCLUDER_INSTANCE_3D_EDITOR_PLUGIN_H #define OCCLUDER_INSTANCE_3D_EDITOR_PLUGIN_H -#include "editor/editor_plugin.h" +#include "editor/plugins/editor_plugin.h" #include "scene/3d/occluder_instance_3d.h" #include "scene/resources/material.h" diff --git a/editor/plugins/packed_scene_editor_plugin.h b/editor/plugins/packed_scene_editor_plugin.h index 308bcf1c0545..0e18d989780d 100644 --- a/editor/plugins/packed_scene_editor_plugin.h +++ b/editor/plugins/packed_scene_editor_plugin.h @@ -32,7 +32,7 @@ #define PACKED_SCENE_EDITOR_PLUGIN_H #include "editor/editor_inspector.h" -#include "editor/editor_plugin.h" +#include "editor/plugins/editor_plugin.h" #include "scene/gui/box_container.h" class PackedSceneEditor : public VBoxContainer { diff --git a/editor/plugins/parallax_background_editor_plugin.h b/editor/plugins/parallax_background_editor_plugin.h index ba394d04dc84..07a562edac14 100644 --- a/editor/plugins/parallax_background_editor_plugin.h +++ b/editor/plugins/parallax_background_editor_plugin.h @@ -31,7 +31,7 @@ #ifndef PARALLAX_BACKGROUND_EDITOR_PLUGIN_H #define PARALLAX_BACKGROUND_EDITOR_PLUGIN_H -#include "editor/editor_plugin.h" +#include "editor/plugins/editor_plugin.h" class HBoxContainer; class MenuButton; diff --git a/editor/plugins/particle_process_material_editor_plugin.h b/editor/plugins/particle_process_material_editor_plugin.h index 0d9725397e29..623d3d4ba384 100644 --- a/editor/plugins/particle_process_material_editor_plugin.h +++ b/editor/plugins/particle_process_material_editor_plugin.h @@ -31,8 +31,8 @@ #ifndef PARTICLE_PROCESS_MATERIAL_EDITOR_PLUGIN_H #define PARTICLE_PROCESS_MATERIAL_EDITOR_PLUGIN_H -#include "editor/editor_plugin.h" #include "editor/editor_properties.h" +#include "editor/plugins/editor_plugin.h" class Button; class EditorSpinSlider; diff --git a/editor/plugins/path_2d_editor_plugin.h b/editor/plugins/path_2d_editor_plugin.h index 8efd65149480..7d1a64160b5f 100644 --- a/editor/plugins/path_2d_editor_plugin.h +++ b/editor/plugins/path_2d_editor_plugin.h @@ -31,7 +31,7 @@ #ifndef PATH_2D_EDITOR_PLUGIN_H #define PATH_2D_EDITOR_PLUGIN_H -#include "editor/editor_plugin.h" +#include "editor/plugins/editor_plugin.h" #include "scene/2d/path_2d.h" #include "scene/gui/box_container.h" diff --git a/editor/plugins/path_3d_editor_plugin.h b/editor/plugins/path_3d_editor_plugin.h index 6a933a419fd7..ee73df1617a3 100644 --- a/editor/plugins/path_3d_editor_plugin.h +++ b/editor/plugins/path_3d_editor_plugin.h @@ -31,7 +31,7 @@ #ifndef PATH_3D_EDITOR_PLUGIN_H #define PATH_3D_EDITOR_PLUGIN_H -#include "editor/editor_plugin.h" +#include "editor/plugins/editor_plugin.h" #include "editor/plugins/node_3d_editor_gizmos.h" #include "scene/3d/camera_3d.h" #include "scene/3d/path_3d.h" diff --git a/editor/plugins/physical_bone_3d_editor_plugin.h b/editor/plugins/physical_bone_3d_editor_plugin.h index 5c49e641a5ff..fb6f30cc5779 100644 --- a/editor/plugins/physical_bone_3d_editor_plugin.h +++ b/editor/plugins/physical_bone_3d_editor_plugin.h @@ -31,7 +31,7 @@ #ifndef PHYSICAL_BONE_3D_EDITOR_PLUGIN_H #define PHYSICAL_BONE_3D_EDITOR_PLUGIN_H -#include "editor/editor_plugin.h" +#include "editor/plugins/editor_plugin.h" #include "scene/gui/box_container.h" #include "scene/gui/button.h" diff --git a/editor/plugin_config_dialog.cpp b/editor/plugins/plugin_config_dialog.cpp similarity index 90% rename from editor/plugin_config_dialog.cpp rename to editor/plugins/plugin_config_dialog.cpp index 184a9233a841..a535b18b9ddb 100644 --- a/editor/plugin_config_dialog.cpp +++ b/editor/plugins/plugin_config_dialog.cpp @@ -33,9 +33,10 @@ #include "core/io/config_file.h" #include "core/io/dir_access.h" #include "core/object/script_language.h" +#include "editor/editor_file_system.h" #include "editor/editor_node.h" -#include "editor/editor_plugin.h" #include "editor/gui/editor_validation_panel.h" +#include "editor/plugins/editor_plugin.h" #include "editor/project_settings_editor.h" #include "editor/themes/editor_scale.h" #include "scene/gui/grid_container.h" @@ -58,30 +59,35 @@ void PluginConfigDialog::_on_confirmed() { return; } } - - int lang_idx = script_option_edit->get_selected(); - ScriptLanguage *language = ScriptServer::get_language(lang_idx); - if (language == nullptr) { - return; - } - String ext = language->get_extension(); - String script_name = script_edit->get_text().is_empty() ? _get_subfolder() : script_edit->get_text(); - if (script_name.get_extension() != ext) { - script_name += "." + ext; - } - String script_path = path.path_join(script_name); - + // Create the plugin.cfg file. Ref cf = memnew(ConfigFile); cf->load(path.path_join("plugin.cfg")); cf->set_value("plugin", "name", name_edit->get_text()); cf->set_value("plugin", "description", desc_edit->get_text()); cf->set_value("plugin", "author", author_edit->get_text()); cf->set_value("plugin", "version", version_edit->get_text()); - cf->set_value("plugin", "script", script_name); - + // Language-specific settings. + int lang_index = script_option_edit->get_selected(); + _create_script_for_plugin(path, cf, lang_index); + // Save and inform the editor. cf->save(path.path_join("plugin.cfg")); + EditorNode::get_singleton()->get_project_settings()->update_plugins(); + EditorFileSystem::get_singleton()->scan(); + _clear_fields(); +} - if (!_edit_mode) { +void PluginConfigDialog::_create_script_for_plugin(const String &p_plugin_path, Ref p_config_file, int p_script_lang_index) { + ScriptLanguage *language = ScriptServer::get_language(p_script_lang_index); + ERR_FAIL_COND(language == nullptr); + String ext = language->get_extension(); + String script_name = script_edit->get_text().is_empty() ? _get_subfolder() : script_edit->get_text(); + if (script_name.get_extension() != ext) { + script_name += "." + ext; + } + String script_path = p_plugin_path.path_join(script_name); + p_config_file->set_value("plugin", "script", script_name); + // If the requested script does not exist, create it. + if (!_edit_mode && !FileAccess::exists(script_path)) { String class_name = script_name.get_basename(); String template_content = ""; Vector templates = language->get_built_in_templates("EditorPlugin"); @@ -91,12 +97,9 @@ void PluginConfigDialog::_on_confirmed() { Ref