mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Add String.to_{camel,pascal,snake}_case methods
This commit is contained in:
parent
432b25d364
commit
d4555ef5fb
18 changed files with 234 additions and 88 deletions
|
|
@ -898,7 +898,7 @@ ScriptLanguage::ScriptTemplate ScriptCreateDialog::_parse_template(const ScriptL
|
|||
|
||||
// Get name from file name if no name in meta information
|
||||
if (script_template.name == String()) {
|
||||
script_template.name = p_filename.get_basename().replace("_", " ").capitalize();
|
||||
script_template.name = p_filename.get_basename().capitalize();
|
||||
}
|
||||
|
||||
return script_template;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue