mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-30 21:05:56 -05:00
patterns: Added error pattern to pattern drawer
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
#include <pl/formatters.hpp>
|
||||
|
||||
#include <set>
|
||||
#include <pl/patterns/pattern_error.hpp>
|
||||
|
||||
struct ImGuiTableSortSpecs;
|
||||
|
||||
@@ -64,6 +65,7 @@ namespace hex::ui {
|
||||
void visit(pl::ptrn::PatternUnsigned& pattern) override;
|
||||
void visit(pl::ptrn::PatternWideCharacter& pattern) override;
|
||||
void visit(pl::ptrn::PatternWideString& pattern) override;
|
||||
void visit(pl::ptrn::PatternError& pattern) override;
|
||||
void visit(pl::ptrn::Pattern& pattern) override;
|
||||
|
||||
private:
|
||||
|
||||
@@ -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