patterns: Added error pattern to pattern drawer

This commit is contained in:
WerWolv
2025-01-16 17:08:49 +01:00
parent 0303cd0ad0
commit 69a9af5322
2 changed files with 11 additions and 0 deletions

View File

@@ -984,6 +984,15 @@ namespace hex::ui {
}
}
void PatternDrawer::visit(pl::ptrn::PatternError& pattern) {
ImGui::PushStyleColor(ImGuiCol_Text, ImGuiExt::GetCustomColorVec4(ImGuiCustomCol_LoggerError));
createDefaultEntry(pattern);
drawValueColumn(pattern);
drawCommentColumn(pattern);
ImGui::PopStyleColor();
}
void PatternDrawer::visit(pl::ptrn::Pattern& pattern) {
createDefaultEntry(pattern);
drawValueColumn(pattern);