mirror of
				https://github.com/godotengine/godot.git
				synced 2025-10-31 21:51:22 +00:00 
			
		
		
		
	Improve editor template workflow
Co-Authored-By: jmb462 <jmb462@gmail.com>
This commit is contained in:
		
							parent
							
								
									28174d531b
								
							
						
					
					
						commit
						9d5b807059
					
				
					 29 changed files with 944 additions and 528 deletions
				
			
		|  | @ -2241,22 +2241,17 @@ void VisualScriptLanguage::get_comment_delimiters(List<String> *p_delimiters) co | |||
| void VisualScriptLanguage::get_string_delimiters(List<String> *p_delimiters) const { | ||||
| } | ||||
| 
 | ||||
| Ref<Script> VisualScriptLanguage::get_template(const String &p_class_name, const String &p_base_class_name) const { | ||||
| bool VisualScriptLanguage::is_using_templates() { | ||||
| 	return false; | ||||
| } | ||||
| 
 | ||||
| Ref<Script> VisualScriptLanguage::make_template(const String &p_template, const String &p_class_name, const String &p_base_class_name) const { | ||||
| 	Ref<VisualScript> script; | ||||
| 	script.instantiate(); | ||||
| 	script->set_instance_base_type(p_base_class_name); | ||||
| 	return script; | ||||
| } | ||||
| 
 | ||||
| bool VisualScriptLanguage::is_using_templates() { | ||||
| 	return true; | ||||
| } | ||||
| 
 | ||||
| void VisualScriptLanguage::make_template(const String &p_class_name, const String &p_base_class_name, Ref<Script> &p_script) { | ||||
| 	Ref<VisualScript> script = p_script; | ||||
| 	script->set_instance_base_type(p_base_class_name); | ||||
| } | ||||
| 
 | ||||
| bool VisualScriptLanguage::validate(const String &p_script, const String &p_path, List<String> *r_functions, List<ScriptLanguage::ScriptError> *r_errors, List<ScriptLanguage::Warning> *r_warnings, Set<int> *r_safe_lines) const { | ||||
| 	return false; | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 fabriceci
						fabriceci