mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2024-12-27 22:27:15 +01:00
Moved ScriptEditorPlugin and ScriptEditor out from the editor folder.
This commit is contained in:
parent
de757b8b02
commit
65c91c6899
@ -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/editor/script_editor.h"
|
#include "modules/code_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/editor/script_editor.h"
|
#include "modules/code_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/editor/script_editor_plugin.h"
|
#include "modules/code_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/editor/script_editor.h"
|
#include "modules/code_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/editor/script_editor.h"
|
#include "modules/code_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/editor/script_editor.h"
|
#include "modules/code_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/editor/script_editor.h"
|
#include "modules/code_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/editor/script_editor.h"
|
#include "modules/code_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/editor/script_editor.h"
|
#include "modules/code_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/editor/script_editor.h"
|
#include "modules/code_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/editor/script_editor.h"
|
#include "modules/code_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/editor/script_editor.h"
|
#include "modules/code_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/editor/script_editor.h"
|
#include "modules/code_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/editor/script_editor.h"
|
#include "modules/code_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/editor/script_editor.h"
|
#include "modules/code_editor/script_editor.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Static members */
|
/* Static members */
|
||||||
|
@ -16,8 +16,8 @@ sources = [
|
|||||||
"find_replace_bar.cpp",
|
"find_replace_bar.cpp",
|
||||||
"script_editor_quick_open.cpp",
|
"script_editor_quick_open.cpp",
|
||||||
|
|
||||||
"editor/script_editor_plugin.cpp",
|
"script_editor_plugin.cpp",
|
||||||
"editor/script_editor.cpp",
|
"script_editor.cpp",
|
||||||
]
|
]
|
||||||
|
|
||||||
env_mlp.add_source_files(env.modules_sources, sources)
|
env_mlp.add_source_files(env.modules_sources, sources)
|
||||||
|
@ -67,7 +67,7 @@
|
|||||||
#include "find_replace_bar.h"
|
#include "find_replace_bar.h"
|
||||||
#include "goto_line_dialog.h"
|
#include "goto_line_dialog.h"
|
||||||
|
|
||||||
#include "editor/script_editor.h"
|
#include "script_editor.h"
|
||||||
|
|
||||||
// This function should be used to handle shortcuts that could otherwise
|
// This function should be used to handle shortcuts that could otherwise
|
||||||
// be handled too late if they weren't handled here.
|
// be handled too late if they weren't handled here.
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
|
|
||||||
#include "register_types.h"
|
#include "register_types.h"
|
||||||
|
|
||||||
#include "editor/script_editor.h"
|
#include "script_editor.h"
|
||||||
#include "editor/script_editor_plugin.h"
|
#include "script_editor_plugin.h"
|
||||||
|
|
||||||
#include "script_editor_base.h"
|
#include "script_editor_base.h"
|
||||||
//#include "script_text_editor.h"
|
//#include "script_text_editor.h"
|
||||||
|
@ -91,9 +91,9 @@
|
|||||||
#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_editor_quick_open.h"
|
||||||
#include "../script_text_editor.h"
|
#include "script_text_editor.h"
|
||||||
#include "../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;
|
@ -90,9 +90,9 @@
|
|||||||
#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_editor_quick_open.h"
|
||||||
#include "../script_text_editor.h"
|
#include "script_text_editor.h"
|
||||||
#include "../text_editor.h"
|
#include "text_editor.h"
|
||||||
|
|
||||||
#include "script_editor.h"
|
#include "script_editor.h"
|
||||||
|
|
@ -71,7 +71,7 @@
|
|||||||
#include "script_editor_quick_open.h"
|
#include "script_editor_quick_open.h"
|
||||||
|
|
||||||
#include "connection_info_dialog.h"
|
#include "connection_info_dialog.h"
|
||||||
#include "editor/script_editor.h"
|
#include "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 "editor/script_editor.h"
|
#include "script_editor.h"
|
||||||
#include "goto_line_dialog.h"
|
#include "goto_line_dialog.h"
|
||||||
#include "find_replace_bar.h"
|
#include "find_replace_bar.h"
|
||||||
|
|
||||||
|
@ -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/editor/script_editor.h"
|
#include "modules/code_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/editor/script_editor.h"
|
#include "modules/code_editor/script_editor.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
class EditorExportGDScript : public EditorExportPlugin {
|
class EditorExportGDScript : public EditorExportPlugin {
|
||||||
|
Loading…
Reference in New Issue
Block a user