You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-09 12:50: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:
@@ -2412,6 +2412,10 @@ bool VisualScriptLanguage::has_named_classes() const {
|
||||
|
||||
return false;
|
||||
}
|
||||
bool VisualScriptLanguage::supports_builtin_mode() const {
|
||||
|
||||
return true;
|
||||
}
|
||||
int VisualScriptLanguage::find_function(const String &p_function, const String &p_code) const {
|
||||
|
||||
return -1;
|
||||
|
||||
@@ -569,6 +569,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 = NULL) 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;
|
||||
|
||||
Reference in New Issue
Block a user