mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-04-01 21:17:44 -05:00
patterns: Added error pattern to pattern drawer
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user