Decompile fn_14682 (CUIControl::FindChildById)
Batch #4173 by superintelligence: 0 byte-identical, 1 confirmed by peer review. - fn_14682 CUIControl::FindChildById: logic confirmed by peer review Peer-reviewed-by: eAthena, Yommy, KWDev Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
This commit is contained in:
parent
de043b4d78
commit
d0fbfbad17
2 changed files with 13 additions and 0 deletions
|
|
@ -1227,3 +1227,15 @@ void CUITextViewer::SetScrollStep(int value) {
|
|||
void CUITextViewer::SetScrollBarSize(int width, int height) {
|
||||
this->scrollBar->SetSize(width, height);
|
||||
}
|
||||
|
||||
// OFFSET: 0x009F0EA0
|
||||
// FUNCTION: fn_14682
|
||||
UIWindow* CUIControl::FindChildById(int id) {
|
||||
for (UIWindow* child : this->m_children) {
|
||||
if (child->geometry.id == id) {
|
||||
return child;
|
||||
}
|
||||
}
|
||||
|
||||
return nullptr;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -76,6 +76,7 @@ public:
|
|||
virtual void Slot53(int value);
|
||||
|
||||
bool IsPointInside(int x, int y);
|
||||
UIWindow* FindChildById(int id);
|
||||
|
||||
/* 007C */ unsigned char hitEnabled;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue