Decompile fn_11255 (UIChatHisBox::ClearNaviLinks)
Batch #6745 by System4z: 0 byte-identical, 1 confirmed by peer review. - fn_11255 UIChatHisBox::ClearNaviLinks: logic confirmed by peer review Peer-reviewed-by: eAthena, 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
12700b181a
commit
77f7bcdd71
2 changed files with 13 additions and 0 deletions
|
|
@ -26,6 +26,7 @@ public:
|
|||
void PlaceNaviLinks(int line);
|
||||
void DropOldestLines();
|
||||
void ShiftNaviLinks();
|
||||
void ClearNaviLinks();
|
||||
|
||||
/* 00DC */ std::list<std::vector<UINaviLinkButton*>> naviLinks;
|
||||
/* 00E4 */ std::vector<int> unknown_00E4;
|
||||
|
|
|
|||
|
|
@ -889,3 +889,15 @@ void UIChatHisBox::ShiftNaviLinks() {
|
|||
row = this->naviLinks.erase(row);
|
||||
}
|
||||
}
|
||||
|
||||
// OFFSET: 0x0087CA70
|
||||
// FUNCTION: fn_11255
|
||||
void UIChatHisBox::ClearNaviLinks() {
|
||||
for (auto row = this->naviLinks.begin(); row != this->naviLinks.end();) {
|
||||
for (UINaviLinkButton* button : *row) {
|
||||
this->RemoveChild(button, 1);
|
||||
}
|
||||
std::vector<UINaviLinkButton*>().swap(*row);
|
||||
row = this->naviLinks.erase(row);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue