Decompile 2 functions in Source/UI/Window/UIControl.cpp
Batch #13067 by SapitoSucio: 2 byte-identical, 0 confirmed by peer review. - fn_14579 CUIEditCtrl::Invalidate: byte-identical - fn_14522 CUITextViewer::SetBackgroundColor: byte-identical Merged automatically: every function is byte-identical to the original.
This commit is contained in:
parent
9b96c8fd04
commit
69db5bb7f0
1 changed files with 10 additions and 3 deletions
|
|
@ -1212,7 +1212,12 @@ void CUIEditCtrl::Paint() {
|
|||
// OFFSET: 0x009ED5A0
|
||||
// FUNCTION: fn_14579
|
||||
void CUIEditCtrl::Invalidate() {
|
||||
this->Root()->InvalidateChildren();
|
||||
UIWindow* window = this;
|
||||
while (window->parent != nullptr) {
|
||||
window = window->parent;
|
||||
}
|
||||
|
||||
window->InvalidateChildren();
|
||||
}
|
||||
|
||||
// OFFSET: 0x009F0780
|
||||
|
|
@ -2355,8 +2360,10 @@ void CUITextViewer::SetTextOffset(int x, int y) {
|
|||
// FUNCTION: fn_14522
|
||||
void CUITextViewer::SetBackgroundColor(std::uint32_t value) {
|
||||
this->backgroundColor = value;
|
||||
this->padding->color = value;
|
||||
this->padding->Invalidate();
|
||||
|
||||
CUIPadding* padding = this->padding;
|
||||
padding->color = value;
|
||||
padding->Invalidate();
|
||||
}
|
||||
|
||||
// OFFSET: 0x009EA810
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue