diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2020-06-08 08:24:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-08 08:24:55 +0200 |
commit | 67f56ff73ac2f7341ae531540076e53deb9c2423 (patch) | |
tree | f4214ae52e0477270973f82c1c417d99f4b42812 | |
parent | ba4ae6225b12dbf039307578cedacbf8990eb4ed (diff) | |
parent | 138a4eecb305016a686c43409c554331fcf7c3c7 (diff) |
Merge pull request #39365 from Calinou/editor-gizmos-visibility-tooltip
Add an editor tooltip to document gizmo visibility options
-rw-r--r-- | editor/plugins/node_3d_editor_plugin.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/editor/plugins/node_3d_editor_plugin.cpp b/editor/plugins/node_3d_editor_plugin.cpp index 2dd29f7046..b8209fe50d 100644 --- a/editor/plugins/node_3d_editor_plugin.cpp +++ b/editor/plugins/node_3d_editor_plugin.cpp @@ -5401,6 +5401,9 @@ void Node3DEditor::_update_gizmos_menu() { const int plugin_state = gizmo_plugins_by_name[i]->get_state(); gizmos_menu->add_multistate_item(TTR(plugin_name), 3, plugin_state, i); const int idx = gizmos_menu->get_item_index(i); + gizmos_menu->set_item_tooltip( + idx, + TTR("Click to toggle between visibility states.\n\nOpen eye: Gizmo is visible.\nClosed eye: Gizmo is hidden.\nHalf-open eye: Gizmo is also visible through opaque surfaces (\"x-ray\").")); switch (plugin_state) { case EditorNode3DGizmoPlugin::VISIBLE: gizmos_menu->set_item_icon(idx, gizmos_menu->get_theme_icon("visibility_visible")); |