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

@@ -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();
}