Rename hint_tooltip to tooltip_text & setget
`hint_tooltip` -> `tooltip_text` `set_tooltip` -> `set_tooltip_text` `_get_tooltip` -> `get_tooltip_text` Updates documentation, too.
This commit is contained in:
parent
4808d01b2b
commit
ef5b9a06a9
85 changed files with 468 additions and 463 deletions
|
|
@ -1230,7 +1230,7 @@ void SceneTreeDock::_notification(int p_what) {
|
|||
node_shortcuts_toggle->set_name("NodeShortcutsToggle");
|
||||
node_shortcuts_toggle->set_icon(get_theme_icon(SNAME("Favorites"), SNAME("EditorIcons")));
|
||||
node_shortcuts_toggle->set_toggle_mode(true);
|
||||
node_shortcuts_toggle->set_tooltip(TTR("Switch to Favorite Nodes"));
|
||||
node_shortcuts_toggle->set_tooltip_text(TTR("Switch to Favorite Nodes"));
|
||||
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->connect("pressed", callable_mp(this, &SceneTreeDock::_update_create_root_dialog));
|
||||
|
|
@ -3397,14 +3397,14 @@ SceneTreeDock::SceneTreeDock(Node *p_scene_root, EditorSelection *p_editor_selec
|
|||
button_add = memnew(Button);
|
||||
button_add->set_flat(true);
|
||||
button_add->connect("pressed", callable_mp(this, &SceneTreeDock::_tool_selected).bind(TOOL_NEW, false));
|
||||
button_add->set_tooltip(TTR("Add/Create a New Node."));
|
||||
button_add->set_tooltip_text(TTR("Add/Create a New Node."));
|
||||
button_add->set_shortcut(ED_GET_SHORTCUT("scene_tree/add_child_node"));
|
||||
filter_hbc->add_child(button_add);
|
||||
|
||||
button_instance = memnew(Button);
|
||||
button_instance->set_flat(true);
|
||||
button_instance->connect("pressed", callable_mp(this, &SceneTreeDock::_tool_selected).bind(TOOL_INSTANTIATE, false));
|
||||
button_instance->set_tooltip(TTR("Instantiate a scene file as a Node. Creates an inherited scene if no root node exists."));
|
||||
button_instance->set_tooltip_text(TTR("Instantiate a scene file as a Node. Creates an inherited scene if no root node exists."));
|
||||
button_instance->set_shortcut(ED_GET_SHORTCUT("scene_tree/instance_scene"));
|
||||
filter_hbc->add_child(button_instance);
|
||||
|
||||
|
|
@ -3419,7 +3419,7 @@ SceneTreeDock::SceneTreeDock(Node *p_scene_root, EditorSelection *p_editor_selec
|
|||
button_create_script = memnew(Button);
|
||||
button_create_script->set_flat(true);
|
||||
button_create_script->connect("pressed", callable_mp(this, &SceneTreeDock::_tool_selected).bind(TOOL_ATTACH_SCRIPT, false));
|
||||
button_create_script->set_tooltip(TTR("Attach a new or existing script to the selected node."));
|
||||
button_create_script->set_tooltip_text(TTR("Attach a new or existing script to the selected node."));
|
||||
button_create_script->set_shortcut(ED_GET_SHORTCUT("scene_tree/attach_script"));
|
||||
filter_hbc->add_child(button_create_script);
|
||||
button_create_script->hide();
|
||||
|
|
@ -3427,7 +3427,7 @@ SceneTreeDock::SceneTreeDock(Node *p_scene_root, EditorSelection *p_editor_selec
|
|||
button_detach_script = memnew(Button);
|
||||
button_detach_script->set_flat(true);
|
||||
button_detach_script->connect("pressed", callable_mp(this, &SceneTreeDock::_tool_selected).bind(TOOL_DETACH_SCRIPT, false));
|
||||
button_detach_script->set_tooltip(TTR("Detach the script from the selected node."));
|
||||
button_detach_script->set_tooltip_text(TTR("Detach the script from the selected node."));
|
||||
button_detach_script->set_shortcut(ED_GET_SHORTCUT("scene_tree/detach_script"));
|
||||
filter_hbc->add_child(button_detach_script);
|
||||
button_detach_script->hide();
|
||||
|
|
@ -3450,7 +3450,7 @@ SceneTreeDock::SceneTreeDock(Node *p_scene_root, EditorSelection *p_editor_selec
|
|||
edit_remote->set_h_size_flags(SIZE_EXPAND_FILL);
|
||||
edit_remote->set_text(TTR("Remote"));
|
||||
edit_remote->set_toggle_mode(true);
|
||||
edit_remote->set_tooltip(TTR("If selected, the Remote scene tree dock will cause the project to stutter every time it updates.\nSwitch back to the Local scene tree dock to improve performance."));
|
||||
edit_remote->set_tooltip_text(TTR("If selected, the Remote scene tree dock will cause the project to stutter every time it updates.\nSwitch back to the Local scene tree dock to improve performance."));
|
||||
edit_remote->connect("pressed", callable_mp(this, &SceneTreeDock::_remote_tree_selected));
|
||||
|
||||
edit_local = memnew(Button);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue