From 6dbff81f957a8c264d49abf17bacd1c7791ea6b8 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Mon, 19 Sep 2022 14:21:36 +0200 Subject: [PATCH] ui: Added chunk type information to pattern data view --- .../builtin/source/content/helpers/pattern_drawer.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/plugins/builtin/source/content/helpers/pattern_drawer.cpp b/plugins/builtin/source/content/helpers/pattern_drawer.cpp index ec17cc7ef..8ae296b64 100644 --- a/plugins/builtin/source/content/helpers/pattern_drawer.cpp +++ b/plugins/builtin/source/content/helpers/pattern_drawer.cpp @@ -394,7 +394,17 @@ namespace hex { ImGui::TableNextColumn(); ImGui::TextFormatted("0x{0:04X}", chunkSize); ImGui::TableNextColumn(); + ImGui::TextFormattedColored(ImColor(0xFF9BC64D), "{0}", pattern.getTypeName()); + ImGui::SameLine(0, 0); + + ImGui::TextUnformatted("["); + ImGui::SameLine(0, 0); + ImGui::TextFormattedColored(ImColor(0xFF00FF00), "{0}", endIndex - i); + ImGui::SameLine(0, 0); + ImGui::TextUnformatted("]"); + ImGui::TableNextColumn(); + ImGui::TextFormatted("[ ... ]"); if (chunkOpen) { iteratable.forEachEntry(i, endIndex, [&](u64, auto *entry){