From e9b140b75cd00a55f1390b2f576ab5bcb6dd2975 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Fri, 10 May 2024 22:41:12 +0200 Subject: [PATCH] impr: Make out variable values selectable and copyable in pattern editor --- plugins/builtin/source/content/views/view_pattern_editor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/builtin/source/content/views/view_pattern_editor.cpp b/plugins/builtin/source/content/views/view_pattern_editor.cpp index 46923ebdf..240e61f28 100644 --- a/plugins/builtin/source/content/views/view_pattern_editor.cpp +++ b/plugins/builtin/source/content/views/view_pattern_editor.cpp @@ -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 };