diff --git a/editor/connections_dialog.cpp b/editor/connections_dialog.cpp index 556b9dc4b..18a85e1be 100644 --- a/editor/connections_dialog.cpp +++ b/editor/connections_dialog.cpp @@ -74,8 +74,8 @@ #include "modules/modules_enabled.gen.h" -#ifdef MODULE_CODE_EDITOR_ENABLED -#include "modules/code_editor/script_editor.h" +#ifdef MODULE_EDITOR_CODE_EDITOR_ENABLED +#include "modules/editor_code_editor/script_editor.h" #endif static Node *_find_first_script(Node *p_root, Node *p_node) { @@ -816,7 +816,7 @@ void ConnectionsDock::_go_to_script(TreeItem &item) { return; } -#ifdef MODULE_CODE_EDITOR_ENABLED +#ifdef MODULE_EDITOR_CODE_EDITOR_ENABLED if (script.is_valid() && ScriptEditor::get_singleton()->script_goto_method(script, c.method)) { editor->call("_editor_select", EditorNode::EDITOR_SCRIPT); } diff --git a/editor/editor_data.cpp b/editor/editor_data.cpp index b0a974759..cbc1b90a8 100644 --- a/editor/editor_data.cpp +++ b/editor/editor_data.cpp @@ -45,8 +45,8 @@ #include "modules/modules_enabled.gen.h" -#ifdef MODULE_CODE_EDITOR_ENABLED -#include "modules/code_editor/script_editor.h" +#ifdef MODULE_EDITOR_CODE_EDITOR_ENABLED +#include "modules/editor_code_editor/script_editor.h" #endif class Resource; @@ -557,7 +557,7 @@ void EditorData::remove_scene(int p_idx) { current_edited_scene--; } -#ifdef MODULE_CODE_EDITOR_ENABLED +#ifdef MODULE_EDITOR_CODE_EDITOR_ENABLED if (edited_scene[p_idx].path != String()) { ScriptEditor::get_singleton()->close_builtin_scripts_from_scene(edited_scene[p_idx].path); } diff --git a/editor/editor_data.h b/editor/editor_data.h index 876b1f0db..824a25705 100644 --- a/editor/editor_data.h +++ b/editor/editor_data.h @@ -54,8 +54,8 @@ #include "modules/modules_enabled.gen.h" -#ifdef MODULE_CODE_EDITOR_ENABLED -#include "modules/code_editor/script_editor_plugin.h" +#ifdef MODULE_EDITOR_CODE_EDITOR_ENABLED +#include "modules/editor_code_editor/script_editor_plugin.h" #endif class ConfigFile; diff --git a/editor/editor_export.cpp b/editor/editor_export.cpp index 49d66ca20..26517c258 100644 --- a/editor/editor_export.cpp +++ b/editor/editor_export.cpp @@ -59,8 +59,8 @@ #include "modules/modules_enabled.gen.h" -#ifdef MODULE_CODE_EDITOR_ENABLED -#include "modules/code_editor/script_editor.h" +#ifdef MODULE_EDITOR_CODE_EDITOR_ENABLED +#include "modules/editor_code_editor/script_editor.h" #endif static int _get_pad(int p_alignment, int p_n) { @@ -333,7 +333,7 @@ void EditorExportPlatform::gen_debug_flags(Vector &r_flags, int p_flags) } } -#ifdef MODULE_CODE_EDITOR_ENABLED +#ifdef MODULE_EDITOR_CODE_EDITOR_ENABLED int remote_port = (int)EditorSettings::get_singleton()->get("network/debug/remote_port"); if (p_flags & DEBUG_FLAG_REMOTE_DEBUG) { @@ -1260,7 +1260,7 @@ void EditorExportPlatform::gen_export_flags(Vector &r_flags, int p_flags } } -#ifdef MODULE_CODE_EDITOR_ENABLED +#ifdef MODULE_EDITOR_CODE_EDITOR_ENABLED int remote_port = (int)EditorSettings::get_singleton()->get("network/debug/remote_port"); if (p_flags & DEBUG_FLAG_REMOTE_DEBUG) { diff --git a/editor/editor_help.cpp b/editor/editor_help.cpp index 1c18c91ab..fd1676910 100644 --- a/editor/editor_help.cpp +++ b/editor/editor_help.cpp @@ -65,8 +65,8 @@ #include "modules/modules_enabled.gen.h" -#ifdef MODULE_CODE_EDITOR_ENABLED -#include "modules/code_editor/script_editor.h" +#ifdef MODULE_EDITOR_CODE_EDITOR_ENABLED +#include "modules/editor_code_editor/script_editor.h" #endif #define CONTRIBUTE_URL vformat("%s/community/contributing/updating_the_class_reference.html", VERSION_DOCS_URL) @@ -1703,7 +1703,7 @@ EditorHelp::~EditorHelp() { void EditorHelpBit::_go_to_help(String p_what) { EditorNode::get_singleton()->set_visible_editor(EditorNode::EDITOR_SCRIPT); -#ifdef MODULE_CODE_EDITOR_ENABLED +#ifdef MODULE_EDITOR_CODE_EDITOR_ENABLED ScriptEditor::get_singleton()->goto_help(p_what); #endif emit_signal("request_hide"); diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp index c728db343..7fe35f3fe 100644 --- a/editor/editor_node.cpp +++ b/editor/editor_node.cpp @@ -192,10 +192,10 @@ #include "modules/modules_enabled.gen.h" -#ifdef MODULE_CODE_EDITOR_ENABLED -#include "modules/code_editor/script_editor.h" -#include "modules/code_editor/script_text_editor.h" -#include "modules/code_editor/text_editor.h" +#ifdef MODULE_EDITOR_CODE_EDITOR_ENABLED +#include "modules/editor_code_editor/script_editor.h" +#include "modules/editor_code_editor/script_text_editor.h" +#include "modules/editor_code_editor/text_editor.h" #endif class Camera; @@ -588,7 +588,7 @@ void EditorNode::_notification(int p_what) { recent_scenes->set_as_minsize(); -#ifdef MODULE_CODE_EDITOR_ENABLED +#ifdef MODULE_EDITOR_CODE_EDITOR_ENABLED // debugger area if (ScriptEditor::get_singleton()->get_debugger()->is_visible()) { bottom_panel->add_theme_style_override("panel", gui_base->get_theme_stylebox("BottomPanelDebuggerOverride", "EditorStyles")); @@ -2011,7 +2011,7 @@ void EditorNode::_edit_current(bool p_skip_foreign) { Object *prev_inspected_object = get_inspector()->get_edited_object(); bool disable_folding = bool(EDITOR_GET("interface/inspector/disable_folding")); -#ifdef MODULE_CODE_EDITOR_ENABLED +#ifdef MODULE_EDITOR_CODE_EDITOR_ENABLED bool stay_in_script_editor_on_node_selected = bool(EDITOR_GET("text_editor/navigation/stay_in_script_editor_on_node_selected")); #endif bool is_resource = current_obj->is_class("Resource"); @@ -2052,7 +2052,7 @@ void EditorNode::_edit_current(bool p_skip_foreign) { node_dock->set_node(current_node); scene_tree_dock->set_selected(current_node); inspector_dock->update(current_node); -#ifdef MODULE_CODE_EDITOR_ENABLED +#ifdef MODULE_EDITOR_CODE_EDITOR_ENABLED if (!inspector_only) { inspector_only = stay_in_script_editor_on_node_selected && ScriptEditor::get_singleton()->is_visible_in_tree(); } @@ -2134,7 +2134,7 @@ void EditorNode::_edit_current(bool p_skip_foreign) { if (!changing_scene) { main_plugin->edit(current_obj); } -#ifdef MODULE_CODE_EDITOR_ENABLED +#ifdef MODULE_EDITOR_CODE_EDITOR_ENABLED } else if (main_plugin != editor_plugin_screen && (!ScriptEditor::get_singleton() || !ScriptEditor::get_singleton()->is_visible_in_tree() || ScriptEditor::get_singleton()->can_take_away_focus())) { // update screen main_plugin _editor_select(plugin_index); @@ -2240,7 +2240,7 @@ void EditorNode::_run(bool p_current, const String &p_custom) { args = ProjectSettings::get_singleton()->get("editor/main_run_args"); -#ifdef MODULE_CODE_EDITOR_ENABLED +#ifdef MODULE_EDITOR_CODE_EDITOR_ENABLED skip_breakpoints = ScriptEditor::get_singleton()->get_debugger()->is_skip_breakpoints(); #endif emit_signal("play_pressed"); @@ -2409,7 +2409,7 @@ void EditorNode::_menu_option_confirm(int p_option, bool p_confirmed) { if (!scene) { if (p_option == FILE_SAVE_SCENE) { -#ifdef MODULE_CODE_EDITOR_ENABLED +#ifdef MODULE_EDITOR_CODE_EDITOR_ENABLED // Pressing Ctrl + S saves the current script if a scene is currently open, but it won't if the scene has no root node. // Work around this by explicitly saving the script in this case (similar to pressing Ctrl + Alt + S). ScriptEditor::get_singleton()->save_current_script(); @@ -2730,7 +2730,7 @@ void EditorNode::_menu_option_confirm(int p_option, bool p_confirmed) { bool ischecked = debug_menu->get_popup()->is_item_checked(debug_menu->get_popup()->get_item_index(RUN_LIVE_DEBUG)); debug_menu->get_popup()->set_item_checked(debug_menu->get_popup()->get_item_index(RUN_LIVE_DEBUG), !ischecked); -#ifdef MODULE_CODE_EDITOR_ENABLED +#ifdef MODULE_EDITOR_CODE_EDITOR_ENABLED ScriptEditor::get_singleton()->get_debugger()->set_live_debugging(!ischecked); #endif EditorSettings::get_singleton()->set_project_metadata("debug_options", "run_live_debug", !ischecked); @@ -2770,7 +2770,7 @@ void EditorNode::_menu_option_confirm(int p_option, bool p_confirmed) { bool ischecked = debug_menu->get_popup()->is_item_checked(debug_menu->get_popup()->get_item_index(RUN_RELOAD_SCRIPTS)); debug_menu->get_popup()->set_item_checked(debug_menu->get_popup()->get_item_index(RUN_RELOAD_SCRIPTS), !ischecked); -#ifdef MODULE_CODE_EDITOR_ENABLED +#ifdef MODULE_EDITOR_CODE_EDITOR_ENABLED ScriptEditor::get_singleton()->set_live_auto_reload_running_scripts(!ischecked); #endif EditorSettings::get_singleton()->set_project_metadata("debug_options", "run_reload_scripts", !ischecked); @@ -3464,7 +3464,7 @@ void EditorNode::_set_main_scene_state(Dictionary p_state, Node *p_for_scene) { //this should only happen at the very end -#ifdef MODULE_CODE_EDITOR_ENABLED +#ifdef MODULE_EDITOR_CODE_EDITOR_ENABLED ScriptEditor::get_singleton()->get_debugger()->update_live_edit_root(); ScriptEditor::get_singleton()->set_scene_root_script(editor_data.get_scene_root_script(editor_data.get_edited_scene())); #endif @@ -3698,7 +3698,7 @@ Error EditorNode::load_scene(const String &p_scene, bool p_ignore_broken_deps, b opening_prev = false; scene_tree_dock->set_selected(new_scene); -#ifdef MODULE_CODE_EDITOR_ENABLED +#ifdef MODULE_EDITOR_CODE_EDITOR_ENABLED ScriptEditor::get_singleton()->get_debugger()->update_live_edit_root(); #endif @@ -5129,7 +5129,7 @@ void EditorNode::_bottom_panel_switch(bool p_enable, int p_idx) { bottom_panel_items[i].control->set_visible(i == p_idx); } -#ifdef MODULE_CODE_EDITOR_ENABLED +#ifdef MODULE_EDITOR_CODE_EDITOR_ENABLED if (ScriptEditor::get_singleton()->get_debugger() == bottom_panel_items[p_idx].control) { // this is the debug panel which uses tabs, so the top section should be smaller bottom_panel->add_theme_style_override("panel", gui_base->get_theme_stylebox("BottomPanelDebuggerOverride", "EditorStyles")); } else { diff --git a/editor/editor_plugin.cpp b/editor/editor_plugin.cpp index f53173e1d..fa1154ea7 100644 --- a/editor/editor_plugin.cpp +++ b/editor/editor_plugin.cpp @@ -76,8 +76,8 @@ #include "modules/modules_enabled.gen.h" -#ifdef MODULE_CODE_EDITOR_ENABLED -#include "modules/code_editor/script_editor.h" +#ifdef MODULE_EDITOR_CODE_EDITOR_ENABLED +#include "modules/editor_code_editor/script_editor.h" #endif class ConfigFile; @@ -211,7 +211,7 @@ void EditorInterface::edit_node(Node *p_node) { } void EditorInterface::edit_script(const Ref