From e76e865d98aaaf15a86800efd7dbc33c0bbba389 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Fri, 30 Oct 2026 11:46:38 +0000 Subject: [PATCH] Decompile fn_15188 (CUIListBoxEx::ClearItems) Batch #5443 by Yommy: 1 byte-identical, 0 confirmed by peer review. - fn_15188 CUIListBoxEx::ClearItems: byte-identical Merged automatically: every function is byte-identical to the original. --- Source/UI/Exchange/UIExchangeUI.cpp | 26 ++++++++++++++++++++++++++ Source/UI/Exchange/UIExchangeUI.h | 1 + 2 files changed, 27 insertions(+) diff --git a/Source/UI/Exchange/UIExchangeUI.cpp b/Source/UI/Exchange/UIExchangeUI.cpp index 39fefd644..b4c99af94 100644 --- a/Source/UI/Exchange/UIExchangeUI.cpp +++ b/Source/UI/Exchange/UIExchangeUI.cpp @@ -28,6 +28,32 @@ template void CUIListBoxEx::SetImage const std::string&); template <> void CUIListBoxEx::UpdateScrollBar(); +template <> +void CUIListBoxEx::Paint(); +template <> +void CUIListBoxEx::Slot35(int value); +template <> +void CUIListBoxEx::OnScroll(int position); + +// OFFSET: 0x00A0F840 + +// OFFSET: 0x00A0FA00 + +// OFFSET: 0x00A100B0 +// FUNCTION: fn_15188 +template <> +void CUIListBoxEx::ClearItems() { + for (ExchangeUI::CUIItem* item : this->items) { + this->RemoveChild(item, 1); + } + + this->items.clear(); + this->selected = static_cast(-1); +} + +// OFFSET: 0x00A10140 + +// OFFSET: 0x00A101E0 // OFFSET: 0x00A15150 // FUNCTION: fn_15193 diff --git a/Source/UI/Exchange/UIExchangeUI.h b/Source/UI/Exchange/UIExchangeUI.h index 2467f3d78..88173850f 100644 --- a/Source/UI/Exchange/UIExchangeUI.h +++ b/Source/UI/Exchange/UIExchangeUI.h @@ -59,6 +59,7 @@ public: void Slot10(int x, int y, std::intptr_t value) override; void Slot19() override; + virtual void Slot53(); void Conclude(); void SubmitZeny();