feat(ui): propagate alpha in CSimpleFrame::SetParent

This commit is contained in:
fallenoak 2025-12-05 20:51:23 -06:00
parent cce548755a
commit 0e727cd0e2
No known key found for this signature in database
GPG Key ID: 7628F8E61AEA070D

View File

@ -1456,13 +1456,11 @@ void CSimpleFrame::SetParent(CSimpleFrame* parent) {
this->SetFrameLevel(this->m_parent->m_level + 1, 1); this->SetFrameLevel(this->m_parent->m_level + 1, 1);
this->UpdateScale(false); this->UpdateScale(false);
// TODO uint8_t alpha = (this->m_parent->m_alpha * this->m_parent->alphaBD) / 255;
// alpha stuff? if (this->alphaBD != alpha) {
// v7 = LOBYTE(this->m_parent->simpleframe_unk3) * BYTE1(this->m_parent->simpleframe_unk3) / 255; this->alphaBD = alpha;
// if ((_BYTE)v7 != BYTE1(this->simpleframe_unk3)) { this->UpdateAlpha();
// BYTE1(this->simpleframe_unk3) = v7; }
// (this->vfptr + 53)(this);
// }
this->SetBeingScrolled((this->m_parent->m_flags >> 13) & 1, -1); this->SetBeingScrolled((this->m_parent->m_flags >> 13) & 1, -1);
} else { } else {
@ -1470,11 +1468,10 @@ void CSimpleFrame::SetParent(CSimpleFrame* parent) {
this->SetFrameLevel(0, 1); this->SetFrameLevel(0, 1);
this->UpdateScale(false); this->UpdateScale(false);
// TODO if (this->alphaBD != 255) {
// if (BYTE1(this->simpleframe_unk3) != -1) { this->alphaBD = 255;
// BYTE1(this->simpleframe_unk3) = -1; this->UpdateAlpha();
// (this->vfptr + 53)(v3); }
// }
this->SetBeingScrolled(0, -1); this->SetBeingScrolled(0, -1);
} }