From bcc690073f5fb77450d98bb7b72632937fce9401 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Sat, 31 Oct 2026 13:15:22 +0000 Subject: [PATCH] Decompile fn_11221 (UIChatHisBox::ResetContents) Batch #7972 by eAthena: 0 byte-identical, 1 confirmed by peer review. - fn_11221 UIChatHisBox::ResetContents: logic confirmed by peer review Peer-reviewed-by: Yommy, secret, pedrao Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/UI/Lists/UIChatHisBox.h | 1 + Source/UI/Lists/UIScrollBar.cpp | 11 +++++++++++ 2 files changed, 12 insertions(+) diff --git a/Source/UI/Lists/UIChatHisBox.h b/Source/UI/Lists/UIChatHisBox.h index 7f5a4bb7..c3467a23 100644 --- a/Source/UI/Lists/UIChatHisBox.h +++ b/Source/UI/Lists/UIChatHisBox.h @@ -31,6 +31,7 @@ public: void ShiftNaviLinks(); void ClearNaviLinks(); void DropOldestRecords(); + void ResetContents(); void ShiftItemTags(); void PlaceItemTags(int line); void CopyHistory(const UIChatHisBox& other); diff --git a/Source/UI/Lists/UIScrollBar.cpp b/Source/UI/Lists/UIScrollBar.cpp index 87b2687e..d48abdf9 100644 --- a/Source/UI/Lists/UIScrollBar.cpp +++ b/Source/UI/Lists/UIScrollBar.cpp @@ -984,6 +984,17 @@ void UIChatHisBox::ClearNaviLinks() { } } +// OFFSET: 0x00879E80 +// FUNCTION: fn_11221 +void UIChatHisBox::ResetContents() { + this->unknown_0100.clear(); + this->unknown_010C.clear(); + this->unknown_0118.clear(); + this->Clear(); + this->ClearNaviLinks(); + this->ShiftNaviLinks(); +} + // OFFSET: 0x0087CC30 // FUNCTION: fn_11256 void UIChatHisBox::DropOldestRecords() {