diff options
author | James Buck <jamesbuck11@gmail.com> | 2019-06-11 16:05:24 -0500 |
---|---|---|
committer | James Buck <jamesbuck11@gmail.com> | 2019-06-11 16:05:24 -0500 |
commit | 2d28e393d6e3e82acac9804b5ad9f7cd6ddfbae2 (patch) | |
tree | d1af8641398a19dcec82b2de8f57d63c026d0e27 /editor/script_create_dialog.h | |
parent | abbbde87e28982150d30e748b89c5303384909ca (diff) | |
download | redot-engine-2d28e393d6e3e82acac9804b5ad9f7cd6ddfbae2.tar.gz |
Fix script create dialog
- Correctly validate parent/class names
- Trigger parent validation when selecting from buttons
- Fix enabling/disabling parent buttons
- Clear class name if not supported
- Minor cleanup
Diffstat (limited to 'editor/script_create_dialog.h')
-rw-r--r-- | editor/script_create_dialog.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/editor/script_create_dialog.h b/editor/script_create_dialog.h index c6dba78f56..61f87f5732 100644 --- a/editor/script_create_dialog.h +++ b/editor/script_create_dialog.h @@ -87,7 +87,8 @@ class ScriptCreateDialog : public ConfirmationDialog { void _path_entered(const String &p_path = String()); void _lang_changed(int l = 0); void _built_in_pressed(); - bool _validate(const String &p_string); + bool _validate_parent(const String &p_string); + bool _validate_class(const String &p_string); String _validate_path(const String &p_path, bool p_file_must_exist); void _class_name_changed(const String &p_name); void _parent_name_changed(const String &p_parent); |