Rename TreeItem's set_tooltip to set_tooltip_text
`set_tooltip` -> `set_tooltip_text` `get_tooltip` -> `get_tooltip_text` For consistency: `get_button_tooltip` -> `get_button_tooltip_text` And the `tooltip` parameter in `add_button` was renamed to `tooltip_text`
This commit is contained in:
parent
c3332018fb
commit
97f8c9b97c
22 changed files with 67 additions and 67 deletions
|
|
@ -1070,7 +1070,7 @@ void ConnectionsDock::update_tree() {
|
|||
}
|
||||
|
||||
// "::" separators used in make_custom_tooltip for formatting.
|
||||
signal_item->set_tooltip(0, String(signal_name) + "::" + signaldesc + "::" + descr);
|
||||
signal_item->set_tooltip_text(0, String(signal_name) + "::" + signaldesc + "::" + descr);
|
||||
}
|
||||
|
||||
// List existing connections.
|
||||
|
|
|
|||
|
|
@ -313,7 +313,7 @@ void CreateDialog::_configure_search_option_item(TreeItem *r_item, const String
|
|||
}
|
||||
|
||||
const String &description = DTR(EditorHelp::get_doc_data()->class_list[p_type].brief_description);
|
||||
r_item->set_tooltip(0, description);
|
||||
r_item->set_tooltip_text(0, description);
|
||||
|
||||
if (p_type_category == TypeCategory::OTHER_TYPE && !script_type) {
|
||||
Ref<Texture2D> icon = EditorNode::get_editor_data().get_custom_types()[custom_type_parents[p_type]][custom_type_indices[p_type]].icon;
|
||||
|
|
|
|||
|
|
@ -155,7 +155,7 @@ void EditorDebuggerTree::update_scene_tree(const SceneDebuggerTree *p_tree, int
|
|||
const SceneDebuggerTree::RemoteNode &node = p_tree->nodes[i];
|
||||
TreeItem *item = create_item(parent);
|
||||
item->set_text(0, node.name);
|
||||
item->set_tooltip(0, TTR("Type:") + " " + node.type_name);
|
||||
item->set_tooltip_text(0, TTR("Type:") + " " + node.type_name);
|
||||
Ref<Texture2D> icon = EditorNode::get_singleton()->get_class_icon(node.type_name, "");
|
||||
if (icon.is_valid()) {
|
||||
item->set_icon(0, icon);
|
||||
|
|
|
|||
|
|
@ -61,7 +61,7 @@ void EditorPerformanceProfiler::Monitor::update_value(float p_value) {
|
|||
} break;
|
||||
}
|
||||
item->set_text(1, label);
|
||||
item->set_tooltip(1, tooltip);
|
||||
item->set_tooltip_text(1, tooltip);
|
||||
|
||||
if (p_value > max) {
|
||||
max = p_value;
|
||||
|
|
@ -73,7 +73,7 @@ void EditorPerformanceProfiler::Monitor::reset() {
|
|||
max = 0.0f;
|
||||
if (item) {
|
||||
item->set_text(1, "");
|
||||
item->set_tooltip(1, "");
|
||||
item->set_tooltip_text(1, "");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -356,7 +356,7 @@ void EditorProfiler::_update_frame() {
|
|||
item->set_metadata(1, it.script);
|
||||
item->set_metadata(2, it.line);
|
||||
item->set_text_alignment(2, HORIZONTAL_ALIGNMENT_RIGHT);
|
||||
item->set_tooltip(0, it.name + "\n" + it.script + ":" + itos(it.line));
|
||||
item->set_tooltip_text(0, it.name + "\n" + it.script + ":" + itos(it.line));
|
||||
|
||||
float time = dtime == DISPLAY_SELF_TIME ? it.self : it.total;
|
||||
|
||||
|
|
|
|||
|
|
@ -580,8 +580,8 @@ void ScriptEditorDebugger::_parse_message(const String &p_msg, const Array &p_da
|
|||
stack_trace->set_text(1, frame_txt);
|
||||
}
|
||||
|
||||
error->set_tooltip(0, tooltip);
|
||||
error->set_tooltip(1, tooltip);
|
||||
error->set_tooltip_text(0, tooltip);
|
||||
error->set_tooltip_text(1, tooltip);
|
||||
|
||||
if (warning_count == 0 && error_count == 0) {
|
||||
expand_all_button->set_disabled(false);
|
||||
|
|
|
|||
|
|
@ -215,11 +215,11 @@ void EditorAssetInstaller::open(const String &p_path, int p_depth) {
|
|||
if (FileAccess::exists(res_path)) {
|
||||
num_file_conflicts += 1;
|
||||
ti->set_custom_color(0, tree->get_theme_color(SNAME("error_color"), SNAME("Editor")));
|
||||
ti->set_tooltip(0, vformat(TTR("%s (already exists)"), res_path));
|
||||
ti->set_tooltip_text(0, vformat(TTR("%s (already exists)"), res_path));
|
||||
ti->set_checked(0, false);
|
||||
ti->propagate_check(0);
|
||||
} else {
|
||||
ti->set_tooltip(0, res_path);
|
||||
ti->set_tooltip_text(0, res_path);
|
||||
}
|
||||
|
||||
ti->set_metadata(0, res_path);
|
||||
|
|
|
|||
|
|
@ -630,7 +630,7 @@ void EditorFeatureProfileManager::_class_list_item_selected() {
|
|||
property->set_selectable(0, true);
|
||||
property->set_checked(0, !edited->is_class_property_disabled(class_name, name));
|
||||
property->set_text(0, text);
|
||||
property->set_tooltip(0, tooltip);
|
||||
property->set_tooltip_text(0, tooltip);
|
||||
property->set_metadata(0, name);
|
||||
String icon_type = Variant::get_type_name(E.type);
|
||||
property->set_icon(0, EditorNode::get_singleton()->get_class_icon(icon_type));
|
||||
|
|
|
|||
|
|
@ -562,8 +562,8 @@ TreeItem *EditorHelpSearch::Runner::_create_class_item(TreeItem *p_parent, const
|
|||
item->set_icon(0, icon);
|
||||
item->set_text(0, p_doc->name);
|
||||
item->set_text(1, TTR("Class"));
|
||||
item->set_tooltip(0, tooltip);
|
||||
item->set_tooltip(1, tooltip);
|
||||
item->set_tooltip_text(0, tooltip);
|
||||
item->set_tooltip_text(1, tooltip);
|
||||
item->set_metadata(0, "class_name:" + p_doc->name);
|
||||
if (p_gray) {
|
||||
item->set_custom_color(0, disabled_color);
|
||||
|
|
@ -639,8 +639,8 @@ TreeItem *EditorHelpSearch::Runner::_create_member_item(TreeItem *p_parent, cons
|
|||
item->set_icon(0, icon);
|
||||
item->set_text(0, text);
|
||||
item->set_text(1, TTRGET(p_type));
|
||||
item->set_tooltip(0, p_tooltip);
|
||||
item->set_tooltip(1, p_tooltip);
|
||||
item->set_tooltip_text(0, p_tooltip);
|
||||
item->set_tooltip_text(1, p_tooltip);
|
||||
item->set_metadata(0, "class_" + p_metatype + ":" + p_class_name + ":" + p_name);
|
||||
|
||||
_match_item(item, p_name);
|
||||
|
|
|
|||
|
|
@ -102,7 +102,7 @@ void EditorPluginSettings::update_plugins() {
|
|||
|
||||
TreeItem *item = plugin_list->create_item(root);
|
||||
item->set_text(0, name);
|
||||
item->set_tooltip(0, TTR("Name:") + " " + name + "\n" + TTR("Path:") + " " + path + "\n" + TTR("Main Script:") + " " + script + "\n" + TTR("Description:") + " " + description);
|
||||
item->set_tooltip_text(0, TTR("Name:") + " " + name + "\n" + TTR("Path:") + " " + path + "\n" + TTR("Main Script:") + " " + script + "\n" + TTR("Description:") + " " + description);
|
||||
item->set_metadata(0, path);
|
||||
item->set_text(1, version);
|
||||
item->set_metadata(1, script);
|
||||
|
|
|
|||
|
|
@ -283,7 +283,7 @@ void SectionedInspector::update_category_list() {
|
|||
const String tooltip = EditorPropertyNameProcessor::get_singleton()->process_name(sectionarr[i], tooltip_style);
|
||||
|
||||
ms->set_text(0, text);
|
||||
ms->set_tooltip(0, tooltip);
|
||||
ms->set_tooltip_text(0, tooltip);
|
||||
ms->set_metadata(0, metasection);
|
||||
ms->set_selectable(0, false);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -440,7 +440,7 @@ void EditorSettingsDialog::_update_shortcuts() {
|
|||
const String tooltip = EditorPropertyNameProcessor::get_singleton()->process_name(section_name, tooltip_style);
|
||||
|
||||
section->set_text(0, item_name);
|
||||
section->set_tooltip(0, tooltip);
|
||||
section->set_tooltip_text(0, tooltip);
|
||||
section->set_selectable(0, false);
|
||||
section->set_selectable(1, false);
|
||||
section->set_custom_bg_color(0, shortcuts->get_theme_color(SNAME("prop_subsection"), SNAME("Editor")));
|
||||
|
|
|
|||
|
|
@ -276,7 +276,7 @@ void FileSystemDock::_update_tree(const Vector<String> &p_uncollapsed_paths, boo
|
|||
ti->set_text(0, text);
|
||||
ti->set_icon(0, icon);
|
||||
ti->set_icon_modulate(0, color);
|
||||
ti->set_tooltip(0, fave);
|
||||
ti->set_tooltip_text(0, fave);
|
||||
ti->set_selectable(0, true);
|
||||
ti->set_metadata(0, fave);
|
||||
if (p_select_in_favorites && fave == path) {
|
||||
|
|
|
|||
|
|
@ -89,7 +89,7 @@ void GroupDialog::_load_nodes(Node *p_current) {
|
|||
if (keep) {
|
||||
node->set_text(0, item_name);
|
||||
node->set_metadata(0, path);
|
||||
node->set_tooltip(0, path);
|
||||
node->set_tooltip_text(0, path);
|
||||
|
||||
Ref<Texture2D> icon = EditorNode::get_singleton()->get_object_icon(p_current, "Node");
|
||||
node->set_icon(0, icon);
|
||||
|
|
|
|||
|
|
@ -176,7 +176,7 @@ void SceneImportSettings::_fill_material(Tree *p_tree, const Ref<Material> &p_ma
|
|||
|
||||
item->set_meta("type", "Material");
|
||||
item->set_meta("import_id", import_id);
|
||||
item->set_tooltip(0, vformat(TTR("Import ID: %s"), import_id));
|
||||
item->set_tooltip_text(0, vformat(TTR("Import ID: %s"), import_id));
|
||||
item->set_selectable(0, true);
|
||||
|
||||
if (p_tree == scene_tree) {
|
||||
|
|
@ -232,7 +232,7 @@ void SceneImportSettings::_fill_mesh(Tree *p_tree, const Ref<Mesh> &p_mesh, Tree
|
|||
|
||||
item->set_meta("type", "Mesh");
|
||||
item->set_meta("import_id", import_id);
|
||||
item->set_tooltip(0, vformat(TTR("Import ID: %s"), import_id));
|
||||
item->set_tooltip_text(0, vformat(TTR("Import ID: %s"), import_id));
|
||||
|
||||
item->set_selectable(0, true);
|
||||
|
||||
|
|
@ -331,7 +331,7 @@ void SceneImportSettings::_fill_scene(Node *p_node, TreeItem *p_parent_item) {
|
|||
item->set_meta("type", "Node");
|
||||
item->set_meta("class", type);
|
||||
item->set_meta("import_id", import_id);
|
||||
item->set_tooltip(0, vformat(TTR("Type: %s\nImport ID: %s"), type, import_id));
|
||||
item->set_tooltip_text(0, vformat(TTR("Type: %s\nImport ID: %s"), type, import_id));
|
||||
|
||||
item->set_selectable(0, true);
|
||||
|
||||
|
|
@ -979,7 +979,7 @@ void SceneImportSettings::_save_path_changed(const String &p_path) {
|
|||
|
||||
if (FileAccess::exists(p_path)) {
|
||||
save_path_item->set_text(2, "Warning: File exists");
|
||||
save_path_item->set_tooltip(2, TTR("Existing file with the same name will be replaced."));
|
||||
save_path_item->set_tooltip_text(2, TTR("Existing file with the same name will be replaced."));
|
||||
save_path_item->set_icon(2, get_theme_icon(SNAME("StatusWarning"), SNAME("EditorIcons")));
|
||||
|
||||
} else {
|
||||
|
|
@ -1024,7 +1024,7 @@ void SceneImportSettings::_save_dir_callback(const String &p_path) {
|
|||
if (md.has_import_id) {
|
||||
if (md.settings.has("use_external/enabled") && bool(md.settings["use_external/enabled"])) {
|
||||
item->set_text(2, "Already External");
|
||||
item->set_tooltip(2, TTR("This material already references an external file, no action will be taken.\nDisable the external property for it to be extracted again."));
|
||||
item->set_tooltip_text(2, TTR("This material already references an external file, no action will be taken.\nDisable the external property for it to be extracted again."));
|
||||
} else {
|
||||
item->set_metadata(0, E.key);
|
||||
item->set_editable(0, true);
|
||||
|
|
@ -1039,7 +1039,7 @@ void SceneImportSettings::_save_dir_callback(const String &p_path) {
|
|||
item->set_text(1, path);
|
||||
if (FileAccess::exists(path)) {
|
||||
item->set_text(2, "Warning: File exists");
|
||||
item->set_tooltip(2, TTR("Existing file with the same name will be replaced."));
|
||||
item->set_tooltip_text(2, TTR("Existing file with the same name will be replaced."));
|
||||
item->set_icon(2, get_theme_icon(SNAME("StatusWarning"), SNAME("EditorIcons")));
|
||||
|
||||
} else {
|
||||
|
|
@ -1052,7 +1052,7 @@ void SceneImportSettings::_save_dir_callback(const String &p_path) {
|
|||
|
||||
} else {
|
||||
item->set_text(2, "No import ID");
|
||||
item->set_tooltip(2, TTR("Material has no name nor any other way to identify on re-import.\nPlease name it or ensure it is exported with an unique ID."));
|
||||
item->set_tooltip_text(2, TTR("Material has no name nor any other way to identify on re-import.\nPlease name it or ensure it is exported with an unique ID."));
|
||||
item->set_icon(2, get_theme_icon(SNAME("StatusError"), SNAME("EditorIcons")));
|
||||
}
|
||||
|
||||
|
|
@ -1077,7 +1077,7 @@ void SceneImportSettings::_save_dir_callback(const String &p_path) {
|
|||
if (md.has_import_id) {
|
||||
if (md.settings.has("save_to_file/enabled") && bool(md.settings["save_to_file/enabled"])) {
|
||||
item->set_text(2, "Already Saving");
|
||||
item->set_tooltip(2, TTR("This mesh already saves to an external resource, no action will be taken."));
|
||||
item->set_tooltip_text(2, TTR("This mesh already saves to an external resource, no action will be taken."));
|
||||
} else {
|
||||
item->set_metadata(0, E.key);
|
||||
item->set_editable(0, true);
|
||||
|
|
@ -1092,7 +1092,7 @@ void SceneImportSettings::_save_dir_callback(const String &p_path) {
|
|||
item->set_text(1, path);
|
||||
if (FileAccess::exists(path)) {
|
||||
item->set_text(2, "Warning: File exists");
|
||||
item->set_tooltip(2, TTR("Existing file with the same name will be replaced on import."));
|
||||
item->set_tooltip_text(2, TTR("Existing file with the same name will be replaced on import."));
|
||||
item->set_icon(2, get_theme_icon(SNAME("StatusWarning"), SNAME("EditorIcons")));
|
||||
|
||||
} else {
|
||||
|
|
@ -1105,7 +1105,7 @@ void SceneImportSettings::_save_dir_callback(const String &p_path) {
|
|||
|
||||
} else {
|
||||
item->set_text(2, "No import ID");
|
||||
item->set_tooltip(2, TTR("Mesh has no name nor any other way to identify on re-import.\nPlease name it or ensure it is exported with an unique ID."));
|
||||
item->set_tooltip_text(2, TTR("Mesh has no name nor any other way to identify on re-import.\nPlease name it or ensure it is exported with an unique ID."));
|
||||
item->set_icon(2, get_theme_icon(SNAME("StatusError"), SNAME("EditorIcons")));
|
||||
}
|
||||
|
||||
|
|
@ -1129,7 +1129,7 @@ void SceneImportSettings::_save_dir_callback(const String &p_path) {
|
|||
|
||||
if (ad.settings.has("save_to_file/enabled") && bool(ad.settings["save_to_file/enabled"])) {
|
||||
item->set_text(2, "Already Saving");
|
||||
item->set_tooltip(2, TTR("This animation already saves to an external resource, no action will be taken."));
|
||||
item->set_tooltip_text(2, TTR("This animation already saves to an external resource, no action will be taken."));
|
||||
} else {
|
||||
item->set_metadata(0, E.key);
|
||||
item->set_editable(0, true);
|
||||
|
|
@ -1144,7 +1144,7 @@ void SceneImportSettings::_save_dir_callback(const String &p_path) {
|
|||
item->set_text(1, path);
|
||||
if (FileAccess::exists(path)) {
|
||||
item->set_text(2, "Warning: File exists");
|
||||
item->set_tooltip(2, TTR("Existing file with the same name will be replaced on import."));
|
||||
item->set_tooltip_text(2, TTR("Existing file with the same name will be replaced on import."));
|
||||
item->set_icon(2, get_theme_icon(SNAME("StatusWarning"), SNAME("EditorIcons")));
|
||||
|
||||
} else {
|
||||
|
|
|
|||
|
|
@ -193,7 +193,7 @@ void LocalizationEditor::_translation_res_option_popup(bool p_arrow_clicked) {
|
|||
TreeItem *ed = translation_remap_options->get_edited();
|
||||
ERR_FAIL_COND(!ed);
|
||||
|
||||
locale_select->set_locale(ed->get_tooltip(1));
|
||||
locale_select->set_locale(ed->get_tooltip_text(1));
|
||||
locale_select->popup_locale_dialog();
|
||||
}
|
||||
|
||||
|
|
@ -202,7 +202,7 @@ void LocalizationEditor::_translation_res_option_selected(const String &p_locale
|
|||
ERR_FAIL_COND(!ed);
|
||||
|
||||
ed->set_text(1, TranslationServer::get_singleton()->get_locale_name(p_locale));
|
||||
ed->set_tooltip(1, p_locale);
|
||||
ed->set_tooltip_text(1, p_locale);
|
||||
|
||||
LocalizationEditor::_translation_res_option_changed();
|
||||
}
|
||||
|
|
@ -226,7 +226,7 @@ void LocalizationEditor::_translation_res_option_changed() {
|
|||
String key = k->get_metadata(0);
|
||||
int idx = ed->get_metadata(0);
|
||||
String path = ed->get_metadata(1);
|
||||
String locale = ed->get_tooltip(1);
|
||||
String locale = ed->get_tooltip_text(1);
|
||||
|
||||
ERR_FAIL_COND(!remaps.has(key));
|
||||
PackedStringArray r = remaps[key];
|
||||
|
|
@ -486,7 +486,7 @@ void LocalizationEditor::update_translations() {
|
|||
TreeItem *t = translation_list->create_item(root);
|
||||
t->set_editable(0, false);
|
||||
t->set_text(0, translations[i].replace_first("res://", ""));
|
||||
t->set_tooltip(0, translations[i]);
|
||||
t->set_tooltip_text(0, translations[i]);
|
||||
t->set_metadata(0, i);
|
||||
t->add_button(0, get_theme_icon(SNAME("Remove"), SNAME("EditorIcons")), 0, false, TTR("Remove"));
|
||||
}
|
||||
|
|
@ -520,14 +520,14 @@ void LocalizationEditor::update_translations() {
|
|||
TreeItem *t = translation_remap->create_item(root);
|
||||
t->set_editable(0, false);
|
||||
t->set_text(0, keys[i].replace_first("res://", ""));
|
||||
t->set_tooltip(0, keys[i]);
|
||||
t->set_tooltip_text(0, keys[i]);
|
||||
t->set_metadata(0, keys[i]);
|
||||
t->add_button(0, get_theme_icon(SNAME("Remove"), SNAME("EditorIcons")), 0, false, TTR("Remove"));
|
||||
|
||||
// Display that it has been removed if this is the case.
|
||||
if (!FileAccess::exists(keys[i])) {
|
||||
t->set_text(0, t->get_text(0) + vformat(" (%s)", TTR("Removed")));
|
||||
t->set_tooltip(0, vformat(TTR("%s cannot be found."), t->get_tooltip(0)));
|
||||
t->set_tooltip_text(0, vformat(TTR("%s cannot be found."), t->get_tooltip_text(0)));
|
||||
}
|
||||
|
||||
if (keys[i] == remap_selected) {
|
||||
|
|
@ -544,19 +544,19 @@ void LocalizationEditor::update_translations() {
|
|||
TreeItem *t2 = translation_remap_options->create_item(root2);
|
||||
t2->set_editable(0, false);
|
||||
t2->set_text(0, path.replace_first("res://", ""));
|
||||
t2->set_tooltip(0, path);
|
||||
t2->set_tooltip_text(0, path);
|
||||
t2->set_metadata(0, j);
|
||||
t2->add_button(0, get_theme_icon(SNAME("Remove"), SNAME("EditorIcons")), 0, false, TTR("Remove"));
|
||||
t2->set_cell_mode(1, TreeItem::CELL_MODE_CUSTOM);
|
||||
t2->set_text(1, TranslationServer::get_singleton()->get_locale_name(locale));
|
||||
t2->set_editable(1, true);
|
||||
t2->set_metadata(1, path);
|
||||
t2->set_tooltip(1, locale);
|
||||
t2->set_tooltip_text(1, locale);
|
||||
|
||||
// Display that it has been removed if this is the case.
|
||||
if (!FileAccess::exists(path)) {
|
||||
t2->set_text(0, t2->get_text(0) + vformat(" (%s)", TTR("Removed")));
|
||||
t2->set_tooltip(0, vformat(TTR("%s cannot be found."), t2->get_tooltip(0)));
|
||||
t2->set_tooltip_text(0, vformat(TTR("%s cannot be found."), t2->get_tooltip_text(0)));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -573,7 +573,7 @@ void LocalizationEditor::update_translations() {
|
|||
TreeItem *t = translation_pot_list->create_item(root);
|
||||
t->set_editable(0, false);
|
||||
t->set_text(0, pot_translations[i].replace_first("res://", ""));
|
||||
t->set_tooltip(0, pot_translations[i]);
|
||||
t->set_tooltip_text(0, pot_translations[i]);
|
||||
t->set_metadata(0, i);
|
||||
t->add_button(0, get_theme_icon(SNAME("Remove"), SNAME("EditorIcons")), 0, false, TTR("Remove"));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -635,7 +635,7 @@ void AnimationLibraryEditor::update_tree() {
|
|||
String al_path = al->get_path();
|
||||
if (!al_path.is_resource_file()) {
|
||||
libitem->set_text(1, TTR("[built-in]"));
|
||||
libitem->set_tooltip(1, al_path);
|
||||
libitem->set_tooltip_text(1, al_path);
|
||||
int srpos = al_path.find("::");
|
||||
if (srpos != -1) {
|
||||
String base = al_path.substr(0, srpos);
|
||||
|
|
@ -687,7 +687,7 @@ void AnimationLibraryEditor::update_tree() {
|
|||
String anim_path = anim->get_path();
|
||||
if (!anim_path.is_resource_file()) {
|
||||
anitem->set_text(1, TTR("[built-in]"));
|
||||
anitem->set_tooltip(1, anim_path);
|
||||
anitem->set_tooltip_text(1, anim_path);
|
||||
int srpos = anim_path.find("::");
|
||||
if (srpos != -1) {
|
||||
String base = anim_path.substr(0, srpos);
|
||||
|
|
|
|||
|
|
@ -196,7 +196,7 @@ void ResourcePreloaderEditor::_update_library() {
|
|||
|
||||
String type = r->get_class();
|
||||
ti->set_icon(0, EditorNode::get_singleton()->get_class_icon(type, "Object"));
|
||||
ti->set_tooltip(0, TTR("Instance:") + " " + r->get_path() + "\n" + TTR("Type:") + " " + type);
|
||||
ti->set_tooltip_text(0, TTR("Instance:") + " " + r->get_path() + "\n" + TTR("Type:") + " " + type);
|
||||
|
||||
ti->set_text(1, r->get_path());
|
||||
ti->set_editable(1, false);
|
||||
|
|
|
|||
|
|
@ -354,7 +354,7 @@ void SceneTreeEditor::_add_nodes(Node *p_node, TreeItem *p_parent) {
|
|||
tooltip += "\n\n" + p_node->get_editor_description();
|
||||
}
|
||||
|
||||
item->set_tooltip(0, tooltip);
|
||||
item->set_tooltip_text(0, tooltip);
|
||||
} else if (p_node != get_scene_node() && !p_node->get_scene_file_path().is_empty() && can_open_instance) {
|
||||
item->add_button(0, get_theme_icon(SNAME("InstanceOptions"), SNAME("EditorIcons")), BUTTON_SUBSCENE, false, TTR("Open in Editor"));
|
||||
|
||||
|
|
@ -363,7 +363,7 @@ void SceneTreeEditor::_add_nodes(Node *p_node, TreeItem *p_parent) {
|
|||
tooltip += "\n\n" + p_node->get_editor_description();
|
||||
}
|
||||
|
||||
item->set_tooltip(0, tooltip);
|
||||
item->set_tooltip_text(0, tooltip);
|
||||
} else {
|
||||
StringName type = EditorNode::get_singleton()->get_object_custom_type_name(p_node);
|
||||
if (type == StringName()) {
|
||||
|
|
@ -375,7 +375,7 @@ void SceneTreeEditor::_add_nodes(Node *p_node, TreeItem *p_parent) {
|
|||
tooltip += "\n\n" + p_node->get_editor_description();
|
||||
}
|
||||
|
||||
item->set_tooltip(0, tooltip);
|
||||
item->set_tooltip_text(0, tooltip);
|
||||
}
|
||||
|
||||
if (can_open_instance && undo_redo.is_valid()) { //Show buttons only when necessary(SceneTreeDock) to avoid crashes
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue