Make the script templates' blank lines conform with the official style guide
This commit is contained in:
parent
3c83137771
commit
7ecaff578b
2 changed files with 4 additions and 0 deletions
|
@ -727,6 +727,7 @@ static Dictionary _get_builtin_script_templates() {
|
||||||
templates["no_comments.gd"] =
|
templates["no_comments.gd"] =
|
||||||
"extends %BASE%\n"
|
"extends %BASE%\n"
|
||||||
"\n"
|
"\n"
|
||||||
|
"\n"
|
||||||
"func _ready()%VOID_RETURN%:\n"
|
"func _ready()%VOID_RETURN%:\n"
|
||||||
"%TS%pass\n";
|
"%TS%pass\n";
|
||||||
|
|
||||||
|
|
|
@ -83,15 +83,18 @@ String GDScriptLanguage::_get_processed_template(const String &p_template, const
|
||||||
|
|
||||||
Ref<Script> GDScriptLanguage::get_template(const String &p_class_name, const String &p_base_class_name) const {
|
Ref<Script> GDScriptLanguage::get_template(const String &p_class_name, const String &p_base_class_name) const {
|
||||||
String _template = "extends %BASE%\n"
|
String _template = "extends %BASE%\n"
|
||||||
|
"\n"
|
||||||
"\n"
|
"\n"
|
||||||
"# Declare member variables here. Examples:\n"
|
"# Declare member variables here. Examples:\n"
|
||||||
"# var a%INT_TYPE% = 2\n"
|
"# var a%INT_TYPE% = 2\n"
|
||||||
"# var b%STRING_TYPE% = \"text\"\n"
|
"# var b%STRING_TYPE% = \"text\"\n"
|
||||||
"\n"
|
"\n"
|
||||||
|
"\n"
|
||||||
"# Called when the node enters the scene tree for the first time.\n"
|
"# Called when the node enters the scene tree for the first time.\n"
|
||||||
"func _ready()%VOID_RETURN%:\n"
|
"func _ready()%VOID_RETURN%:\n"
|
||||||
"%TS%pass # Replace with function body.\n"
|
"%TS%pass # Replace with function body.\n"
|
||||||
"\n"
|
"\n"
|
||||||
|
"\n"
|
||||||
"# Called every frame. 'delta' is the elapsed time since the previous frame.\n"
|
"# Called every frame. 'delta' is the elapsed time since the previous frame.\n"
|
||||||
"#func _process(delta%FLOAT_TYPE%)%VOID_RETURN%:\n"
|
"#func _process(delta%FLOAT_TYPE%)%VOID_RETURN%:\n"
|
||||||
"#%TS%pass\n";
|
"#%TS%pass\n";
|
||||||
|
|
Loading…
Reference in a new issue