impr: Added path tooltips to accept pattern popup

This commit is contained in:
WerWolv
2023-04-10 01:46:55 +02:00
parent dc77d81e1b
commit 391c8acfe4
2 changed files with 14 additions and 3 deletions

View File

@@ -37,7 +37,9 @@ namespace hex::plugin::builtin {
else
ImGui::TextFormattedCentered("{}", "hex.builtin.popup.docs_question.prompt"_lang);
} else {
int id = 1;
for (auto &[type, text] : this->m_answer) {
ImGui::PushID(id);
switch (type) {
case TextBlockType::Text:
ImGui::TextFormattedWrapped("{}", text);
@@ -54,6 +56,9 @@ namespace hex::plugin::builtin {
break;
}
ImGui::PopID();
id += 1;
}
}
} else {