mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-01-24 18:17:21 +01:00
Moved ScriptEditor and ScriptEditorPlugin to a new editor subfolder.
This commit is contained in:
parent
cf2894324a
commit
e32e63242b
@ -75,7 +75,7 @@
|
|||||||
#include "modules/modules_enabled.gen.h"
|
#include "modules/modules_enabled.gen.h"
|
||||||
|
|
||||||
#ifdef MODULE_CODE_EDITOR_ENABLED
|
#ifdef MODULE_CODE_EDITOR_ENABLED
|
||||||
#include "modules/code_editor/script_editor.h"
|
#include "modules/code_editor/editor/script_editor.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static Node *_find_first_script(Node *p_root, Node *p_node) {
|
static Node *_find_first_script(Node *p_root, Node *p_node) {
|
||||||
|
@ -46,7 +46,7 @@
|
|||||||
#include "modules/modules_enabled.gen.h"
|
#include "modules/modules_enabled.gen.h"
|
||||||
|
|
||||||
#ifdef MODULE_CODE_EDITOR_ENABLED
|
#ifdef MODULE_CODE_EDITOR_ENABLED
|
||||||
#include "modules/code_editor/script_editor.h"
|
#include "modules/code_editor/editor/script_editor.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
class Resource;
|
class Resource;
|
||||||
|
@ -55,7 +55,7 @@
|
|||||||
#include "modules/modules_enabled.gen.h"
|
#include "modules/modules_enabled.gen.h"
|
||||||
|
|
||||||
#ifdef MODULE_CODE_EDITOR_ENABLED
|
#ifdef MODULE_CODE_EDITOR_ENABLED
|
||||||
#include "modules/code_editor/script_editor_plugin.h"
|
#include "modules/code_editor/editor/script_editor_plugin.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
class ConfigFile;
|
class ConfigFile;
|
||||||
|
@ -60,7 +60,7 @@
|
|||||||
#include "modules/modules_enabled.gen.h"
|
#include "modules/modules_enabled.gen.h"
|
||||||
|
|
||||||
#ifdef MODULE_CODE_EDITOR_ENABLED
|
#ifdef MODULE_CODE_EDITOR_ENABLED
|
||||||
#include "modules/code_editor/script_editor.h"
|
#include "modules/code_editor/editor/script_editor.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static int _get_pad(int p_alignment, int p_n) {
|
static int _get_pad(int p_alignment, int p_n) {
|
||||||
|
@ -66,7 +66,7 @@
|
|||||||
#include "modules/modules_enabled.gen.h"
|
#include "modules/modules_enabled.gen.h"
|
||||||
|
|
||||||
#ifdef MODULE_CODE_EDITOR_ENABLED
|
#ifdef MODULE_CODE_EDITOR_ENABLED
|
||||||
#include "modules/code_editor/script_editor.h"
|
#include "modules/code_editor/editor/script_editor.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define CONTRIBUTE_URL vformat("%s/community/contributing/updating_the_class_reference.html", VERSION_DOCS_URL)
|
#define CONTRIBUTE_URL vformat("%s/community/contributing/updating_the_class_reference.html", VERSION_DOCS_URL)
|
||||||
|
@ -193,7 +193,7 @@
|
|||||||
#include "modules/modules_enabled.gen.h"
|
#include "modules/modules_enabled.gen.h"
|
||||||
|
|
||||||
#ifdef MODULE_CODE_EDITOR_ENABLED
|
#ifdef MODULE_CODE_EDITOR_ENABLED
|
||||||
#include "modules/code_editor/script_editor.h"
|
#include "modules/code_editor/editor/script_editor.h"
|
||||||
#include "modules/code_editor/script_text_editor.h"
|
#include "modules/code_editor/script_text_editor.h"
|
||||||
#include "modules/code_editor/text_editor.h"
|
#include "modules/code_editor/text_editor.h"
|
||||||
#endif
|
#endif
|
||||||
|
@ -77,7 +77,7 @@
|
|||||||
#include "modules/modules_enabled.gen.h"
|
#include "modules/modules_enabled.gen.h"
|
||||||
|
|
||||||
#ifdef MODULE_CODE_EDITOR_ENABLED
|
#ifdef MODULE_CODE_EDITOR_ENABLED
|
||||||
#include "modules/code_editor/script_editor.h"
|
#include "modules/code_editor/editor/script_editor.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
class ConfigFile;
|
class ConfigFile;
|
||||||
|
@ -72,7 +72,7 @@
|
|||||||
#include "modules/modules_enabled.gen.h"
|
#include "modules/modules_enabled.gen.h"
|
||||||
|
|
||||||
#ifdef MODULE_CODE_EDITOR_ENABLED
|
#ifdef MODULE_CODE_EDITOR_ENABLED
|
||||||
#include "modules/code_editor/script_editor.h"
|
#include "modules/code_editor/editor/script_editor.h"
|
||||||
#include "modules/code_editor/script_editor_base.h"
|
#include "modules/code_editor/script_editor_base.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -45,7 +45,7 @@
|
|||||||
#include "modules/modules_enabled.gen.h"
|
#include "modules/modules_enabled.gen.h"
|
||||||
|
|
||||||
#ifdef MODULE_CODE_EDITOR_ENABLED
|
#ifdef MODULE_CODE_EDITOR_ENABLED
|
||||||
#include "modules/code_editor/script_editor.h"
|
#include "modules/code_editor/editor/script_editor.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
EditorRun::Status EditorRun::get_status() const {
|
EditorRun::Status EditorRun::get_status() const {
|
||||||
|
@ -103,7 +103,7 @@
|
|||||||
#include "modules/modules_enabled.gen.h"
|
#include "modules/modules_enabled.gen.h"
|
||||||
|
|
||||||
#ifdef MODULE_CODE_EDITOR_ENABLED
|
#ifdef MODULE_CODE_EDITOR_ENABLED
|
||||||
#include "modules/code_editor/script_editor.h"
|
#include "modules/code_editor/editor/script_editor.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Min and Max are power of two in order to play nicely with successive increment.
|
// Min and Max are power of two in order to play nicely with successive increment.
|
||||||
|
@ -102,7 +102,7 @@
|
|||||||
#include "modules/modules_enabled.gen.h"
|
#include "modules/modules_enabled.gen.h"
|
||||||
|
|
||||||
#ifdef MODULE_CODE_EDITOR_ENABLED
|
#ifdef MODULE_CODE_EDITOR_ENABLED
|
||||||
#include "modules/code_editor/script_editor.h"
|
#include "modules/code_editor/editor/script_editor.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define DISTANCE_DEFAULT 4
|
#define DISTANCE_DEFAULT 4
|
||||||
|
@ -99,7 +99,7 @@
|
|||||||
#include "modules/modules_enabled.gen.h"
|
#include "modules/modules_enabled.gen.h"
|
||||||
|
|
||||||
#ifdef MODULE_CODE_EDITOR_ENABLED
|
#ifdef MODULE_CODE_EDITOR_ENABLED
|
||||||
#include "modules/code_editor/script_editor.h"
|
#include "modules/code_editor/editor/script_editor.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void SceneTreeDock::_nodes_drag_begin() {
|
void SceneTreeDock::_nodes_drag_begin() {
|
||||||
|
@ -67,7 +67,7 @@
|
|||||||
#include "modules/modules_enabled.gen.h"
|
#include "modules/modules_enabled.gen.h"
|
||||||
|
|
||||||
#ifdef MODULE_CODE_EDITOR_ENABLED
|
#ifdef MODULE_CODE_EDITOR_ENABLED
|
||||||
#include "modules/code_editor/script_editor.h"
|
#include "modules/code_editor/editor/script_editor.h"
|
||||||
#include "modules/code_editor/script_editor_base.h"
|
#include "modules/code_editor/script_editor_base.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -70,7 +70,7 @@
|
|||||||
#include "modules/modules_enabled.gen.h"
|
#include "modules/modules_enabled.gen.h"
|
||||||
|
|
||||||
#ifdef MODULE_CODE_EDITOR_ENABLED
|
#ifdef MODULE_CODE_EDITOR_ENABLED
|
||||||
#include "modules/code_editor/script_editor.h"
|
#include "modules/code_editor/editor/script_editor.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void EditorSettingsDialog::ok_pressed() {
|
void EditorSettingsDialog::ok_pressed() {
|
||||||
|
@ -86,7 +86,7 @@
|
|||||||
|
|
||||||
#include "modules/modules_enabled.gen.h"
|
#include "modules/modules_enabled.gen.h"
|
||||||
#ifdef MODULE_CODE_EDITOR_ENABLED
|
#ifdef MODULE_CODE_EDITOR_ENABLED
|
||||||
#include "modules/code_editor/script_editor.h"
|
#include "modules/code_editor/editor/script_editor.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Static members */
|
/* Static members */
|
||||||
|
@ -7,15 +7,16 @@ env_mlp = env.Clone()
|
|||||||
sources = [
|
sources = [
|
||||||
"register_types.cpp",
|
"register_types.cpp",
|
||||||
"code_editor.cpp",
|
"code_editor.cpp",
|
||||||
"script_editor_plugin.cpp",
|
|
||||||
"script_text_editor.cpp",
|
"script_text_editor.cpp",
|
||||||
"text_editor.cpp",
|
"text_editor.cpp",
|
||||||
"script_editor_quick_open.cpp",
|
|
||||||
"script_editor_base.cpp",
|
"script_editor_base.cpp",
|
||||||
"script_editor.cpp",
|
|
||||||
"connection_info_dialog.cpp",
|
"connection_info_dialog.cpp",
|
||||||
"goto_line_dialog.cpp",
|
"goto_line_dialog.cpp",
|
||||||
"find_replace_bar.cpp",
|
"find_replace_bar.cpp",
|
||||||
|
"script_editor_quick_open.cpp",
|
||||||
|
|
||||||
|
"editor/script_editor_plugin.cpp",
|
||||||
|
"editor/script_editor.cpp",
|
||||||
]
|
]
|
||||||
|
|
||||||
env_mlp.add_source_files(env.modules_sources, sources)
|
env_mlp.add_source_files(env.modules_sources, sources)
|
||||||
|
@ -63,11 +63,11 @@
|
|||||||
#include "scene/resources/dynamic_font.h"
|
#include "scene/resources/dynamic_font.h"
|
||||||
#include "scene/resources/font.h"
|
#include "scene/resources/font.h"
|
||||||
#include "scene/resources/texture.h"
|
#include "scene/resources/texture.h"
|
||||||
#include "script_editor_plugin.h"
|
|
||||||
|
|
||||||
#include "find_replace_bar.h"
|
#include "find_replace_bar.h"
|
||||||
#include "goto_line_dialog.h"
|
#include "goto_line_dialog.h"
|
||||||
#include "script_editor.h"
|
|
||||||
|
#include "editor/script_editor.h"
|
||||||
|
|
||||||
/*** CODE EDITOR ****/
|
/*** CODE EDITOR ****/
|
||||||
|
|
||||||
|
@ -90,9 +90,10 @@
|
|||||||
#include "scene/resources/text_file.h"
|
#include "scene/resources/text_file.h"
|
||||||
#include "scene/resources/texture.h"
|
#include "scene/resources/texture.h"
|
||||||
#include "scene/scene_string_names.h"
|
#include "scene/scene_string_names.h"
|
||||||
#include "script_editor_quick_open.h"
|
|
||||||
#include "script_text_editor.h"
|
#include "../script_editor_quick_open.h"
|
||||||
#include "text_editor.h"
|
#include "../script_text_editor.h"
|
||||||
|
#include "../text_editor.h"
|
||||||
|
|
||||||
#include "modules/modules_enabled.gen.h"
|
#include "modules/modules_enabled.gen.h"
|
||||||
|
|
@ -52,7 +52,7 @@
|
|||||||
#include "core/variant/variant.h"
|
#include "core/variant/variant.h"
|
||||||
#include "core/containers/vector.h"
|
#include "core/containers/vector.h"
|
||||||
|
|
||||||
#include "script_editor_base.h"
|
#include "../script_editor_base.h"
|
||||||
|
|
||||||
class Button;
|
class Button;
|
||||||
class ConfigFile;
|
class ConfigFile;
|
@ -89,9 +89,10 @@
|
|||||||
#include "scene/resources/text_file.h"
|
#include "scene/resources/text_file.h"
|
||||||
#include "scene/resources/texture.h"
|
#include "scene/resources/texture.h"
|
||||||
#include "scene/scene_string_names.h"
|
#include "scene/scene_string_names.h"
|
||||||
#include "script_editor_quick_open.h"
|
|
||||||
#include "script_text_editor.h"
|
#include "../script_editor_quick_open.h"
|
||||||
#include "text_editor.h"
|
#include "../script_text_editor.h"
|
||||||
|
#include "../text_editor.h"
|
||||||
|
|
||||||
#include "script_editor.h"
|
#include "script_editor.h"
|
||||||
|
|
@ -1,12 +1,13 @@
|
|||||||
|
|
||||||
#include "register_types.h"
|
#include "register_types.h"
|
||||||
|
|
||||||
#include "script_editor_plugin.h"
|
#include "editor/script_editor_plugin.h"
|
||||||
|
#include "editor/script_editor.h"
|
||||||
|
|
||||||
#include "script_text_editor.h"
|
#include "script_text_editor.h"
|
||||||
#include "text_editor.h"
|
#include "text_editor.h"
|
||||||
#include "script_editor_base.h"
|
#include "script_editor_base.h"
|
||||||
#include "script_editor.h"
|
|
||||||
|
|
||||||
void register_code_editor_types(ModuleRegistrationLevel p_level) {
|
void register_code_editor_types(ModuleRegistrationLevel p_level) {
|
||||||
if (p_level == MODULE_REGISTRATION_LEVEL_SCENE) {
|
if (p_level == MODULE_REGISTRATION_LEVEL_SCENE) {
|
||||||
|
@ -68,11 +68,10 @@
|
|||||||
#include "scene/main/node.h"
|
#include "scene/main/node.h"
|
||||||
#include "scene/main/scene_tree.h"
|
#include "scene/main/scene_tree.h"
|
||||||
#include "scene/resources/texture.h"
|
#include "scene/resources/texture.h"
|
||||||
#include "script_editor_plugin.h"
|
|
||||||
#include "script_editor_quick_open.h"
|
#include "script_editor_quick_open.h"
|
||||||
|
|
||||||
#include "connection_info_dialog.h"
|
#include "connection_info_dialog.h"
|
||||||
#include "script_editor.h"
|
#include "editor/script_editor.h"
|
||||||
#include "goto_line_dialog.h"
|
#include "goto_line_dialog.h"
|
||||||
#include "find_replace_bar.h"
|
#include "find_replace_bar.h"
|
||||||
|
|
||||||
|
@ -50,7 +50,7 @@
|
|||||||
#include "scene/resources/text_file.h"
|
#include "scene/resources/text_file.h"
|
||||||
#include "scene/resources/texture.h"
|
#include "scene/resources/texture.h"
|
||||||
|
|
||||||
#include "script_editor.h"
|
#include "editor/script_editor.h"
|
||||||
#include "goto_line_dialog.h"
|
#include "goto_line_dialog.h"
|
||||||
#include "find_replace_bar.h"
|
#include "find_replace_bar.h"
|
||||||
|
|
||||||
|
@ -32,16 +32,16 @@
|
|||||||
|
|
||||||
#include "script_editor_base.h"
|
#include "script_editor_base.h"
|
||||||
|
|
||||||
#include "core/math/color.h"
|
#include "code_editor.h"
|
||||||
#include "core/containers/list.h"
|
#include "core/containers/list.h"
|
||||||
#include "core/containers/rb_map.h"
|
#include "core/containers/rb_map.h"
|
||||||
|
#include "core/containers/vector.h"
|
||||||
|
#include "core/math/color.h"
|
||||||
#include "core/object/object.h"
|
#include "core/object/object.h"
|
||||||
#include "core/object/reference.h"
|
#include "core/object/reference.h"
|
||||||
#include "core/object/resource.h"
|
#include "core/object/resource.h"
|
||||||
#include "core/string/ustring.h"
|
#include "core/string/ustring.h"
|
||||||
#include "core/variant/variant.h"
|
#include "core/variant/variant.h"
|
||||||
#include "core/containers/vector.h"
|
|
||||||
#include "code_editor.h"
|
|
||||||
|
|
||||||
class Control;
|
class Control;
|
||||||
class HBoxContainer;
|
class HBoxContainer;
|
||||||
|
@ -51,7 +51,7 @@ Ref<ResourceFormatSaverCScript> resource_saver_cscript;
|
|||||||
#include "editor/editor_settings.h"
|
#include "editor/editor_settings.h"
|
||||||
|
|
||||||
#ifdef MODULE_CODE_EDITOR_ENABLED
|
#ifdef MODULE_CODE_EDITOR_ENABLED
|
||||||
#include "modules/code_editor/script_editor.h"
|
#include "modules/code_editor/editor/script_editor.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
class EditorExportCScript : public EditorExportPlugin {
|
class EditorExportCScript : public EditorExportPlugin {
|
||||||
|
@ -51,7 +51,7 @@ Ref<ResourceFormatSaverGDScript> resource_saver_gd;
|
|||||||
#include "editor/gdscript_highlighter.h"
|
#include "editor/gdscript_highlighter.h"
|
||||||
|
|
||||||
#ifdef MODULE_CODE_EDITOR_ENABLED
|
#ifdef MODULE_CODE_EDITOR_ENABLED
|
||||||
#include "modules/code_editor/script_editor.h"
|
#include "modules/code_editor/editor/script_editor.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
class EditorExportGDScript : public EditorExportPlugin {
|
class EditorExportGDScript : public EditorExportPlugin {
|
||||||
|
Loading…
Reference in New Issue
Block a user