You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-23 15:16:17 +00:00
Enhance undoredo action name, TTR, cleanup
This commit is contained in:
@@ -900,10 +900,10 @@ bool CustomPropertyEditor::edit(Object *p_owner, const String &p_name, Variant::
|
||||
int id = TYPE_BASE_ID + idx;
|
||||
if (has_icon(t, "EditorIcons")) {
|
||||
|
||||
menu->add_icon_item(get_icon(t, "EditorIcons"), TTR("New") + " " + t, id);
|
||||
menu->add_icon_item(get_icon(t, "EditorIcons"), vformat(TTR("New %s"), t), id);
|
||||
} else {
|
||||
|
||||
menu->add_item(TTR("New") + " " + t, id);
|
||||
menu->add_item(vformat(TTR("New %s"), t), id);
|
||||
}
|
||||
|
||||
idx++;
|
||||
@@ -2831,7 +2831,7 @@ void PropertyEditor::update_tree() {
|
||||
class_descr_cache[type] = descr.word_wrap(80);
|
||||
}
|
||||
|
||||
sep->set_tooltip(0, TTR("Class:") + " " + p.name + ":\n\n" + class_descr_cache[type]);
|
||||
sep->set_tooltip(0, TTR("Class:") + " " + p.name + (class_descr_cache[type] == "" ? "" : "\n\n" + class_descr_cache[type]));
|
||||
}
|
||||
continue;
|
||||
|
||||
@@ -2963,7 +2963,7 @@ void PropertyEditor::update_tree() {
|
||||
descr_cache[classname][propname] = descr;
|
||||
}
|
||||
|
||||
item->set_tooltip(0, TTR("Property:") + " " + p.name + "\n\n" + descr);
|
||||
item->set_tooltip(0, TTR("Property:") + " " + p.name + (descr == "" ? "" : "\n\n" + descr));
|
||||
}
|
||||
|
||||
Dictionary d;
|
||||
|
||||
Reference in New Issue
Block a user