diff options
author | DualMatrix <piet.goris@gmail.com> | 2018-09-23 00:29:24 +0200 |
---|---|---|
committer | DualMatrix <piet.goris@gmail.com> | 2018-09-23 17:38:59 +0200 |
commit | 6dc0120c60eaac130fcf60fea83e9420f785380e (patch) | |
tree | 6805feb3f3afdf36148ff16d91af82c682b7a33f /editor/script_create_dialog.h | |
parent | 2613e59f59a67d78214e58cdb8856f50bfc08b19 (diff) | |
download | redot-engine-6dc0120c60eaac130fcf60fea83e9420f785380e.tar.gz |
Prevent built-in-scripts from being made from FileSystem dock
Prevent built-in-scripts from being made from FileSystem dock
Diffstat (limited to 'editor/script_create_dialog.h')
-rw-r--r-- | editor/script_create_dialog.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/editor/script_create_dialog.h b/editor/script_create_dialog.h index 1ad4a1b7a1..e0bf336b56 100644 --- a/editor/script_create_dialog.h +++ b/editor/script_create_dialog.h @@ -69,11 +69,13 @@ class ScriptCreateDialog : public ConfirmationDialog { bool is_parent_name_valid; bool is_class_name_valid; bool is_built_in; + bool built_in_enabled; int current_language; bool re_check_path; String script_template; Vector<String> template_list; + bool _can_be_built_in(); void _path_changed(const String &p_path = String()); void _path_entered(const String &p_path = String()); void _lang_changed(int l = 0); @@ -96,8 +98,7 @@ protected: static void _bind_methods(); public: - void config(const String &p_base_name, const String &p_base_path); - + void config(const String &p_base_name, const String &p_base_path, bool p_built_in_enabled = true); ScriptCreateDialog(); }; |