summaryrefslogtreecommitdiffstats
path: root/editor/gui
diff options
context:
space:
mode:
authorYevhen Babiichuk (DustDFG) <dfgdust@gmail.com>2024-10-02 13:01:09 +0300
committerYevhen Babiichuk (DustDFG) <dfgdust@gmail.com>2024-10-02 13:35:12 +0300
commit4a5ae8c388803124ac704c694f1c42517e1229c4 (patch)
treeafb876272e6fad84d4f69b1937d7711fb7fa0e40 /editor/gui
parentf4af8201bac157b9d47e336203d3e8a8ef729de2 (diff)
downloadredot-engine-4a5ae8c388803124ac704c694f1c42517e1229c4.tar.gz
Fix tooltip message of button that opens groups/signals dock
Signed-off-by: Yevhen Babiichuk (DustDFG) <dfgdust@gmail.com> Co-authored-by: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com>
Diffstat (limited to 'editor/gui')
-rw-r--r--editor/gui/scene_tree_editor.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/editor/gui/scene_tree_editor.cpp b/editor/gui/scene_tree_editor.cpp
index 2e36b66025..626df0ed7b 100644
--- a/editor/gui/scene_tree_editor.cpp
+++ b/editor/gui/scene_tree_editor.cpp
@@ -369,16 +369,14 @@ void SceneTreeEditor::_add_nodes(Node *p_node, TreeItem *p_parent) {
msg_temp += String::utf8("• ") + String(E.name) + "\n";
}
}
- }
- if (num_connections >= 1 || num_groups >= 1) {
- if (num_groups < 1) {
- msg_temp += "\n";
- }
- msg_temp += TTR("Click to show signals dock.");
+ } else {
+ msg_temp += "\n";
}
Ref<Texture2D> icon_temp;
SceneTreeEditorButton signal_temp = BUTTON_SIGNALS;
+ String msg_temp_end = TTR("Click to show signals dock.");
+
if (num_connections >= 1 && num_groups >= 1) {
icon_temp = get_editor_theme_icon(SNAME("SignalsAndGroups"));
} else if (num_connections >= 1) {
@@ -386,9 +384,11 @@ void SceneTreeEditor::_add_nodes(Node *p_node, TreeItem *p_parent) {
} else if (num_groups >= 1) {
icon_temp = get_editor_theme_icon(SNAME("Groups"));
signal_temp = BUTTON_GROUPS;
+ msg_temp_end = TTR("Click to show groups dock.");
}
if (num_connections >= 1 || num_groups >= 1) {
+ msg_temp += msg_temp_end;
item->add_button(0, icon_temp, signal_temp, false, msg_temp);
}
}