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).
This commit is contained in:
ragnarok-clanker 2026-10-31 02:01:20 +00:00
commit 68d89928b7
2 changed files with 25 additions and 0 deletions

View file

@ -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) {

View file

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