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