diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2019-04-29 18:37:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-29 18:37:57 +0200 |
commit | 82fcc9957336ffd79b059a4d3718314c72c4ecf2 (patch) | |
tree | 064abcdbded9e4139db75f38a3c9526df83d69f9 | |
parent | f5cc29f9f3536d965917161103c0ae12f2e70358 (diff) | |
parent | f33c554de174ac6d4513f66387436cbdf5f6a813 (diff) |
Merge pull request #28104 from homer666/connections-error-dialog
Update signal connections error dialog
-rw-r--r-- | editor/connections_dialog.cpp | 7 | ||||
-rw-r--r-- | editor/connections_dialog.h | 2 |
2 files changed, 5 insertions, 4 deletions
diff --git a/editor/connections_dialog.cpp b/editor/connections_dialog.cpp index 03a71f3248..a9a96da7b1 100644 --- a/editor/connections_dialog.cpp +++ b/editor/connections_dialog.cpp @@ -113,14 +113,14 @@ Signal automatically called by parent dialog. void ConnectDialog::ok_pressed() { if (dst_method->get_text() == "") { - error->set_text(TTR("Method in target Node must be specified!")); + error->set_text(TTR("Method in target node must be specified.")); error->popup_centered_minsize(); return; } Node *target = tree->get_selected(); if (target->get_script().is_null()) { if (!target->has_method(dst_method->get_text())) { - error->set_text(TTR("Target method not found! Specify a valid method or attach a script to target Node.")); + error->set_text(TTR("Target method not found. Specify a valid method or attach a script to the target node.")); error->popup_centered_minsize(); return; } @@ -444,8 +444,9 @@ ConnectDialog::ConnectDialog() { cdbinds = memnew(ConnectDialogBinds); - error = memnew(ConfirmationDialog); + error = memnew(AcceptDialog); add_child(error); + error->set_title(TTR("Cannot connect signal")); error->get_ok()->set_text(TTR("Close")); get_ok()->set_text(TTR("Connect")); } diff --git a/editor/connections_dialog.h b/editor/connections_dialog.h index 59fe6dacfe..9b35d84426 100644 --- a/editor/connections_dialog.h +++ b/editor/connections_dialog.h @@ -64,7 +64,7 @@ class ConnectDialog : public ConfirmationDialog { VBoxContainer *vbc_right; SceneTreeEditor *tree; - ConfirmationDialog *error; + AcceptDialog *error; EditorInspector *bind_editor; OptionButton *type_list; CheckButton *deferred; |