Add an editor tooltip to document gizmo visibility options
See discussion in https://github.com/godotengine/godot-proposals/issues/716.
This commit is contained in:
parent
8da68fe910
commit
138a4eecb3
|
@ -5397,6 +5397,9 @@ void Node3DEditor::_update_gizmos_menu() {
|
||||||
const int plugin_state = gizmo_plugins_by_name[i]->get_state();
|
const int plugin_state = gizmo_plugins_by_name[i]->get_state();
|
||||||
gizmos_menu->add_multistate_item(TTR(plugin_name), 3, plugin_state, i);
|
gizmos_menu->add_multistate_item(TTR(plugin_name), 3, plugin_state, i);
|
||||||
const int idx = gizmos_menu->get_item_index(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) {
|
switch (plugin_state) {
|
||||||
case EditorNode3DGizmoPlugin::VISIBLE:
|
case EditorNode3DGizmoPlugin::VISIBLE:
|
||||||
gizmos_menu->set_item_icon(idx, gizmos_menu->get_theme_icon("visibility_visible"));
|
gizmos_menu->set_item_icon(idx, gizmos_menu->get_theme_icon("visibility_visible"));
|
||||||
|
|
Loading…
Reference in New Issue