[Scene] Add SceneStringNames::pressed
This commit is contained in:
parent
78cce1954d
commit
ee79386f7b
147 changed files with 727 additions and 722 deletions
|
|
@ -213,7 +213,7 @@ EditorDirDialog::EditorDirDialog() {
|
|||
|
||||
makedir = memnew(Button(TTR("Create Folder")));
|
||||
hb->add_child(makedir);
|
||||
makedir->connect("pressed", callable_mp(this, &EditorDirDialog::_make_dir));
|
||||
makedir->connect(SceneStringName(pressed), callable_mp(this, &EditorDirDialog::_make_dir));
|
||||
|
||||
tree = memnew(Tree);
|
||||
vb->add_child(tree);
|
||||
|
|
@ -224,7 +224,7 @@ EditorDirDialog::EditorDirDialog() {
|
|||
set_ok_button_text(TTR("Move"));
|
||||
|
||||
copy = add_button(TTR("Copy"), !DisplayServer::get_singleton()->get_swap_cancel_ok());
|
||||
copy->connect("pressed", callable_mp(this, &EditorDirDialog::_copy_pressed));
|
||||
copy->connect(SceneStringName(pressed), callable_mp(this, &EditorDirDialog::_copy_pressed));
|
||||
|
||||
makedialog = memnew(DirectoryCreateDialog);
|
||||
add_child(makedialog);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue