mirror of
https://github.com/godotengine/godot.git
synced 2025-12-07 22:00:10 +00:00
Use create script dialog for script-type resources
This commit is contained in:
parent
235a32ad11
commit
23b6f129c7
1 changed files with 4 additions and 0 deletions
|
|
@ -2722,6 +2722,10 @@ void FileSystemDock::_resource_created() {
|
|||
make_shader_dialog->config(fpath.path_join("new_shader"), false, false, type_name);
|
||||
make_shader_dialog->popup_centered();
|
||||
return;
|
||||
} else if (ClassDB::is_parent_class(type_name, "Script")) {
|
||||
make_script_dialog->config("Node", fpath.path_join("new_script"), false, false);
|
||||
make_script_dialog->popup_centered();
|
||||
return;
|
||||
}
|
||||
|
||||
Variant c = new_resource_dialog->instantiate_selected();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue