1
0
mirror of synced 2024-11-25 00:00:27 +01:00

fix: Added missing pattern data favorites lang entry

This commit is contained in:
WerWolv 2023-06-04 18:41:58 +02:00
parent 1134697b90
commit cc55e5ec74
2 changed files with 2 additions and 1 deletions

View File

@ -361,6 +361,7 @@
"hex.builtin.nodes.visualizer.layered_dist.header": "Layered Distribution",
"hex.builtin.pattern_drawer.color": "Color",
"hex.builtin.pattern_drawer.double_click": "Double-click to see more items",
"hex.builtin.pattern_drawer.favorites": "Favorites",
"hex.builtin.pattern_drawer.local": "Local",
"hex.builtin.pattern_drawer.offset": "Offset",
"hex.builtin.pattern_drawer.size": "Size",

View File

@ -1039,7 +1039,7 @@ namespace hex::plugin::builtin::ui {
ImGui::TableNextColumn();
ImGui::TableNextColumn();
ImGui::PushID(1);
if (ImGui::TreeNodeEx("Favorites", ImGuiTreeNodeFlags_SpanFullWidth)) {
if (ImGui::TreeNodeEx("hex.builtin.pattern_drawer.favorites"_lang, ImGuiTreeNodeFlags_SpanFullWidth)) {
for (auto &[path, pattern] : this->m_favorites) {
ImGui::PushID(pattern->getDisplayName().c_str());
this->draw(*pattern);