1
0
mirror of synced 2024-11-24 15:50:16 +01:00

impr: Added tooltips for section view and export buttons

This commit is contained in:
WerWolv 2024-05-10 22:54:55 +02:00
parent 543fcf5447
commit d727100304
2 changed files with 4 additions and 0 deletions

View File

@ -919,6 +919,8 @@
"hex.builtin.view.pattern_editor.replace_hint_history": " for history)",
"hex.builtin.view.pattern_editor.section_popup": "Section",
"hex.builtin.view.pattern_editor.sections": "Sections",
"hex.builtin.view.pattern_editor.sections.view": "View content",
"hex.builtin.view.pattern_editor.sections.export": "Export content",
"hex.builtin.view.pattern_editor.settings": "Settings",
"hex.builtin.view.pattern_editor.shortcut.run_pattern": "Run Pattern",
"hex.builtin.view.pattern_editor.shortcut.step_debugger": "Step Debugger",

View File

@ -1156,6 +1156,7 @@ namespace hex::plugin::builtin {
patternDrawer->draw(patterns, &runtime, 150_scaled);
};
}
ImGui::SetTooltip("hex.builtin.view.pattern_editor.sections.view"_lang);
ImGui::SameLine();
if (ImGuiExt::DimmedIconButton(ICON_VS_SAVE_AS, ImGui::GetStyleColorVec4(ImGuiCol_Text))) {
fs::openFileBrowser(fs::DialogMode::Save, {}, [id, &runtime](const auto &path) {
@ -1168,6 +1169,7 @@ namespace hex::plugin::builtin {
file.writeVector(runtime.getSection(id));
});
}
ImGui::SetTooltip("hex.builtin.view.pattern_editor.sections.export"_lang);
ImGui::PopID();
}