impr: Added tooltips for section view and export buttons
This commit is contained in:
parent
543fcf5447
commit
d727100304
@ -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",
|
||||
|
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user