add tooltip for toggling favorite nodes
This commit is contained in:
parent
26b1fd0d84
commit
14b2533ef6
1 changed files with 1 additions and 1 deletions
|
@ -1392,7 +1392,7 @@ void SceneTreeDock::_notification(int p_what) {
|
||||||
node_shortcuts_toggle->set_flat(true);
|
node_shortcuts_toggle->set_flat(true);
|
||||||
node_shortcuts_toggle->set_icon(get_editor_theme_icon(SNAME("Favorites")));
|
node_shortcuts_toggle->set_icon(get_editor_theme_icon(SNAME("Favorites")));
|
||||||
node_shortcuts_toggle->set_toggle_mode(true);
|
node_shortcuts_toggle->set_toggle_mode(true);
|
||||||
node_shortcuts_toggle->set_tooltip_text(TTR("Switch to Favorite Nodes"));
|
node_shortcuts_toggle->set_tooltip_text(TTR("Toggle the display of favorite nodes."));
|
||||||
node_shortcuts_toggle->set_pressed(EDITOR_GET("_use_favorites_root_selection"));
|
node_shortcuts_toggle->set_pressed(EDITOR_GET("_use_favorites_root_selection"));
|
||||||
node_shortcuts_toggle->set_anchors_and_offsets_preset(Control::PRESET_CENTER_RIGHT);
|
node_shortcuts_toggle->set_anchors_and_offsets_preset(Control::PRESET_CENTER_RIGHT);
|
||||||
node_shortcuts_toggle->connect("pressed", callable_mp(this, &SceneTreeDock::_update_create_root_dialog));
|
node_shortcuts_toggle->connect("pressed", callable_mp(this, &SceneTreeDock::_update_create_root_dialog));
|
||||||
|
|
Loading…
Reference in a new issue