diff options
author | Ignacio Etcheverry <ignalfonsore@gmail.com> | 2017-10-24 01:54:47 +0200 |
---|---|---|
committer | Ignacio Etcheverry <ignalfonsore@gmail.com> | 2017-10-24 15:48:58 +0200 |
commit | e218a13a64d417505ba8ca0abb79dddfb943f2c7 (patch) | |
tree | d8dbc2944129383e6f3e9823e9ea453b916baf96 /modules/gdnative/nativescript/nativescript.h | |
parent | 9905002fa68f151f90a588a2c4b62b939ff31a0d (diff) | |
download | redot-engine-e218a13a64d417505ba8ca0abb79dddfb943f2c7.tar.gz |
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.
Diffstat (limited to 'modules/gdnative/nativescript/nativescript.h')
-rw-r--r-- | modules/gdnative/nativescript/nativescript.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/gdnative/nativescript/nativescript.h b/modules/gdnative/nativescript/nativescript.h index b5db641179..e6ea4fed80 100644 --- a/modules/gdnative/nativescript/nativescript.h +++ b/modules/gdnative/nativescript/nativescript.h @@ -271,6 +271,7 @@ public: virtual bool validate(const String &p_script, int &r_line_error, int &r_col_error, String &r_test_error, const String &p_path, List<String> *r_functions) const; virtual Script *create_script() const; virtual bool has_named_classes() const; + virtual bool supports_builtin_mode() const; virtual int find_function(const String &p_function, const String &p_code) const; virtual String make_function(const String &p_class, const String &p_name, const PoolStringArray &p_args) const; virtual void auto_indent_code(String &p_code, int p_from_line, int p_to_line) const; |