fix: Hidden attribute not applying to top-level patterns
This commit is contained in:
parent
72ee1d186e
commit
e3f88395ec
@ -10,6 +10,8 @@ namespace hex {
|
|||||||
public:
|
public:
|
||||||
PatternDrawer() = default;
|
PatternDrawer() = default;
|
||||||
|
|
||||||
|
void draw(pl::ptrn::Pattern& pattern);
|
||||||
|
|
||||||
void visit(pl::ptrn::PatternArrayDynamic& pattern) override;
|
void visit(pl::ptrn::PatternArrayDynamic& pattern) override;
|
||||||
void visit(pl::ptrn::PatternArrayStatic& pattern) override;
|
void visit(pl::ptrn::PatternArrayStatic& pattern) override;
|
||||||
void visit(pl::ptrn::PatternBitfieldField& pattern) override;
|
void visit(pl::ptrn::PatternBitfieldField& pattern) override;
|
||||||
@ -29,8 +31,6 @@ namespace hex {
|
|||||||
void visit(pl::ptrn::PatternWideString& pattern) override;
|
void visit(pl::ptrn::PatternWideString& pattern) override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void draw(pl::ptrn::Pattern& pattern);
|
|
||||||
|
|
||||||
constexpr static auto ChunkSize = 512;
|
constexpr static auto ChunkSize = 512;
|
||||||
constexpr static auto DisplayEndStep = 64;
|
constexpr static auto DisplayEndStep = 64;
|
||||||
|
|
||||||
|
@ -124,8 +124,9 @@ namespace hex::plugin::builtin {
|
|||||||
ImGui::TableHeadersRow();
|
ImGui::TableHeadersRow();
|
||||||
|
|
||||||
if (!sortedPatterns.empty()) {
|
if (!sortedPatterns.empty()) {
|
||||||
for (auto &pattern : sortedPatterns)
|
for (auto &pattern : sortedPatterns) {
|
||||||
pattern->accept(this->m_patternDrawer);
|
this->m_patternDrawer.draw(*pattern);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ImGui::EndTable();
|
ImGui::EndTable();
|
||||||
|
Loading…
Reference in New Issue
Block a user