diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-09-30 23:00:07 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-30 23:00:07 +0200 |
commit | 3e1b6304613855cad56938e8a58848f09363a298 (patch) | |
tree | 2d0456e7247b899053397f1584617c56890a8d60 /editor/plugins/script_editor_plugin.h | |
parent | 1c0ae31c9eb1cd7d228e82ea6ad6babee5231395 (diff) | |
parent | 6596c7bdc2692ea5717209750de08f4df7e0412b (diff) |
Merge pull request #53025 from Paulb23/textfile-ux
Diffstat (limited to 'editor/plugins/script_editor_plugin.h')
-rw-r--r-- | editor/plugins/script_editor_plugin.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/editor/plugins/script_editor_plugin.h b/editor/plugins/script_editor_plugin.h index 6d9b27e0be..e0c7e668ce 100644 --- a/editor/plugins/script_editor_plugin.h +++ b/editor/plugins/script_editor_plugin.h @@ -366,6 +366,7 @@ class ScriptEditor : public PanelContainer { void _add_callback(Object *p_obj, const String &p_function, const PackedStringArray &p_args); void _res_saved_callback(const Ref<Resource> &p_res); + bool open_textfile_after_create = true; bool trim_trailing_whitespace_on_save; bool use_space_indentation; bool convert_indent_on_save; @@ -472,6 +473,8 @@ public: bool is_scripts_panel_toggled(); void apply_scripts() const; void open_script_create_dialog(const String &p_base_name, const String &p_base_path); + void open_text_file_create_dialog(const String &p_base_path, const String &p_base_name = ""); + RES open_file(const String &p_file); void ensure_select_current(); |