feat: Added "Jump to address" option to data inspector row context menu

This commit is contained in:
WerWolv
2024-12-30 22:32:06 +01:00
parent 0dc1af0747
commit dab3f722e8
5 changed files with 68 additions and 40 deletions

View File

@@ -760,6 +760,14 @@ namespace hex {
impl::s_entries->push_back({ unlocalizedName, requiredSize, maxSize, std::move(displayGeneratorFunction), std::move(editingFunction) });
}
void drawMenuItems(const std::function<void()> &function) {
if (ImGui::BeginPopup("##DataInspectorRowContextMenu")) {
function();
ImGui::Separator();
ImGui::EndPopup();
}
}
}
namespace ContentRegistry::DataProcessorNode {