impr: Make out variable values selectable and copyable in pattern editor

This commit is contained in:
WerWolv
2024-05-10 22:41:12 +02:00
parent 92a9843ef7
commit e9b140b75c

View File

@@ -1038,7 +1038,7 @@ namespace hex::plugin::builtin {
ImGui::PushItemWidth(-1);
if (variable.outVariable) {
ImGui::TextUnformatted(variable.value.toString(true).c_str());
ImGuiExt::TextFormattedSelectable("{}", variable.value.toString(true).c_str());
} else if (variable.inVariable) {
const std::string label { "##" + name };