From fc433ab7c18108ecdf5b105f7bb260280cd307f8 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Fri, 30 Oct 2026 09:39:34 +0000 Subject: [PATCH] Decompile 2 functions in Source/UI/SelectPackageItemBox/UISelectPackageItemBox.cpp Batch #5196 by eAthena: 0 byte-identical, 2 confirmed by peer review. - fn_16662 CUIListBoxEx::Slot15: logic confirmed by peer review - fn_16663 CUIListBoxEx::Slot15: logic confirmed by peer review Peer-reviewed-by: meitogi, alisonrag, SapitoSucio Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- .../UISelectPackageItemBox.cpp | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/Source/UI/SelectPackageItemBox/UISelectPackageItemBox.cpp b/Source/UI/SelectPackageItemBox/UISelectPackageItemBox.cpp index 89878c0e..80db6cab 100644 --- a/Source/UI/SelectPackageItemBox/UISelectPackageItemBox.cpp +++ b/Source/UI/SelectPackageItemBox/UISelectPackageItemBox.cpp @@ -47,6 +47,31 @@ void CUISelectPackageItemBox::Slot53() { this->m_buttonBarStyle = 3; } +template <> +void CUIListBoxEx::OnScroll(int position); +template <> +void CUIListBoxEx::OnScroll(int position); + +// OFFSET: 0x00A695F0 +// FUNCTION: fn_16662 +template <> +void CUIListBoxEx::Slot15(int width, int height) { + this->scrollBar = new CUIVScrollBar(*this->m_context); + this->scrollBar->Show(0); + this->scrollBar->SetOnChange([this](int position) { this->OnScroll(position); }); + this->AddChild(this->scrollBar); +} + +// OFFSET: 0x00A696C0 +// FUNCTION: fn_16663 +template <> +void CUIListBoxEx::Slot15(int width, int height) { + this->scrollBar = new CUIVScrollBar(*this->m_context); + this->scrollBar->Show(0); + this->scrollBar->SetOnChange([this](int position) { this->OnScroll(position); }); + this->AddChild(this->scrollBar); +} + // OFFSET: 0x00A6D060 // FUNCTION: fn_16666 template <>