mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-01 16:22:45 +03:00
feat(ui): propagate alpha in CSimpleFrame::SetParent
This commit is contained in:
parent
cce548755a
commit
0e727cd0e2
@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user