mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 16:33:30 +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
|
@ -133,6 +133,10 @@ bool PluginScriptLanguage::has_named_classes() const {
|
|||
return _desc.has_named_classes;
|
||||
}
|
||||
|
||||
bool PluginScriptLanguage::supports_builtin_mode() const {
|
||||
return _desc.supports_builtin_mode;
|
||||
}
|
||||
|
||||
int PluginScriptLanguage::find_function(const String &p_function, const String &p_code) const {
|
||||
if (_desc.find_function) {
|
||||
return _desc.find_function(_data, (godot_string *)&p_function, (godot_string *)&p_code);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue