mirror of
https://github.com/godotengine/godot.git
synced 2025-10-21 08:53:35 +00:00
Add ScriptLanguage::supports_builtin_mode and improve ScriptCreateDialog
- Make ScriptCreateDialog disable the built-in script checked button if the language does not support it. - ScriptLanguage's get_template and make_template now receive the script path as class name if the the script language does not have named classes.
This commit is contained in:
parent
9905002fa6
commit
e218a13a64
14 changed files with 60 additions and 10 deletions
|
@ -129,6 +129,7 @@ typedef struct {
|
|||
const char **comment_delimiters; // NULL terminated array
|
||||
const char **string_delimiters; // NULL terminated array
|
||||
godot_bool has_named_classes;
|
||||
godot_bool supports_builtin_mode;
|
||||
|
||||
godot_string (*get_template_source_code)(godot_pluginscript_language_data *p_data, const godot_string *p_class_name, const godot_string *p_base_class_name);
|
||||
godot_bool (*validate)(godot_pluginscript_language_data *p_data, const godot_string *p_script, int *r_line_error, int *r_col_error, godot_string *r_test_error, const godot_string *p_path, godot_pool_string_array *r_functions);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue