From 68d89928b773161fc75d166b331a5df632bfe9b5 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Sat, 31 Oct 2026 02:01:20 +0000 Subject: [PATCH] Decompile fn_11322 (UIComboBoxID::Slot15) Batch #6859 by aDw: 0 byte-identical, 1 confirmed by peer review. - fn_11322 UIComboBoxID::Slot15: logic confirmed by peer review Peer-reviewed-by: alisonrag, kyoshi, Snow Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/UI/Lists/UIListBoxID.cpp | 24 ++++++++++++++++++++++++ Source/UI/Lists/UIListBoxID.h | 1 + 2 files changed, 25 insertions(+) diff --git a/Source/UI/Lists/UIListBoxID.cpp b/Source/UI/Lists/UIListBoxID.cpp index 625f8ff7..49a79b3d 100644 --- a/Source/UI/Lists/UIListBoxID.cpp +++ b/Source/UI/Lists/UIListBoxID.cpp @@ -28,6 +28,30 @@ void UIListBoxID::Configure(int x, int y, int width, int height, unsigned char t this->Slot22(width, height); } +// OFFSET: 0x00886070 +// FUNCTION: fn_11322 +void UIComboBoxID::Slot15(int width, int height) { + auto* vertical = new UIScrollBar(*this->m_context); + this->verticalBar = vertical; + const int verticalWidth = vertical->thickness; + vertical->vertical = 1; + vertical->UIWindow::Resize(verticalWidth, height); + vertical->Move(width - 13, 0); + vertical->Slot15(verticalWidth, height); + vertical->Slot22(verticalWidth, height); + this->AddChild(this->verticalBar); + + auto* horizontal = new UIScrollBar(*this->m_context); + this->horizontalBar = horizontal; + const int horizontalHeight = horizontal->thickness; + horizontal->vertical = 0; + horizontal->UIWindow::Resize(width - 13, horizontalHeight); + horizontal->Move(0, height - 13); + horizontal->Slot15(width - 13, horizontalHeight); + horizontal->Slot22(width - 13, horizontalHeight); + this->AddChild(this->horizontalBar); +} + // OFFSET: 0x008991B0 // FUNCTION: fn_11554 int UIListBoxID::SendMsg(UIWindow* sender, int message, std::intptr_t argument1, std::intptr_t argument2, std::intptr_t argument3, std::intptr_t argument4) { diff --git a/Source/UI/Lists/UIListBoxID.h b/Source/UI/Lists/UIListBoxID.h index cddc6a8c..14b0fb8c 100644 --- a/Source/UI/Lists/UIListBoxID.h +++ b/Source/UI/Lists/UIListBoxID.h @@ -47,6 +47,7 @@ class UIComboBoxID : public UIListBoxID { public: UIComboBoxID(); void Resize(int width, int height) override; + void Slot15(int width, int height) override; void Slot25(int x, int y) override; void Slot26(int x, int y) override; void Slot27(int x, int y) override;