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 <>