pattern: Fixed color overriding of struct members when struct has a color set already
Fixes #409
This commit is contained in:
parent
362413dbe7
commit
bfa3538745
@ -1145,8 +1145,10 @@ namespace hex::pl {
|
||||
|
||||
void setColor(u32 color) override {
|
||||
PatternData::setColor(color);
|
||||
for (auto &member : this->m_members)
|
||||
member->setColor(color);
|
||||
for (auto &member : this->m_members) {
|
||||
if (!member->hasOverriddenColor())
|
||||
member->setColor(color);
|
||||
}
|
||||
}
|
||||
|
||||
void sort(ImGuiTableSortSpecs *sortSpecs, prv::Provider *provider) override {
|
||||
@ -1291,8 +1293,10 @@ namespace hex::pl {
|
||||
|
||||
void setColor(u32 color) override {
|
||||
PatternData::setColor(color);
|
||||
for (auto &member : this->m_members)
|
||||
member->setColor(color);
|
||||
for (auto &member : this->m_members) {
|
||||
if (!member->hasOverriddenColor())
|
||||
member->setColor(color);
|
||||
}
|
||||
}
|
||||
|
||||
void sort(ImGuiTableSortSpecs *sortSpecs, prv::Provider *provider) override {
|
||||
|
@ -880,7 +880,7 @@ namespace hex::pl {
|
||||
if (!isFunction) {
|
||||
auto type = parseType();
|
||||
|
||||
if (MATCHES(sequence(IDENTIFIER, SEPARATOR_SQUAREBRACKETOPEN)) && sequence<Not>(SEPARATOR_SQUAREBRACKETOPEN))
|
||||
if (MATCHES(sequence(IDENTIFIER, SEPARATOR_SQUAREBRACKETOPEN) && sequence<Not>(SEPARATOR_SQUAREBRACKETOPEN)))
|
||||
member = parseMemberArrayVariable(type);
|
||||
else if (MATCHES(sequence(IDENTIFIER)))
|
||||
member = parseMemberVariable(type);
|
||||
|
Loading…
x
Reference in New Issue
Block a user