From 9176a8bc8137db716344e80d319ebb5187e40289 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Wed, 28 Oct 2026 12:07:33 +0000 Subject: [PATCH] Decompile fn_11250 (UIScrollBar::Configure) Batch #1334 by ragnarok-clanker: 0 byte-identical, 1 confirmed by peer review. - fn_11250 UIScrollBar::Configure: logic confirmed by peer review Peer-reviewed-by: Yommy Reviewed-by: ragnarok-clanker --- Source/UI/Lists/UIScrollBar.cpp | 28 ++++++++++++++++++++++++++++ Source/UI/Lists/UIScrollBar.h | 1 + 2 files changed, 29 insertions(+) diff --git a/Source/UI/Lists/UIScrollBar.cpp b/Source/UI/Lists/UIScrollBar.cpp index 53510517..4d1278a7 100644 --- a/Source/UI/Lists/UIScrollBar.cpp +++ b/Source/UI/Lists/UIScrollBar.cpp @@ -287,3 +287,31 @@ void UIScrollBar::Paint() { draw(vertical ? "scroll0bar_down.bmp" : "scroll1bar_right.bmp", end, true); } + +// OFFSET: 0x0087BAA0 +// FUNCTION: fn_11250 +void UIScrollBar::Configure(int x, int y, unsigned char vertical, int length) { + this->vertical = vertical; + + int width; + int height; + switch (vertical) { + case 0: + width = length; + height = this->thickness; + break; + case 1: + width = this->thickness; + height = length; + break; + default: + width = length; + height = length; + break; + } + + this->UIWindow::Resize(width, height); + this->Move(x, y); + this->Slot15(width, height); + this->Slot22(width, height); +} diff --git a/Source/UI/Lists/UIScrollBar.h b/Source/UI/Lists/UIScrollBar.h index f6cd3605..3d0b6834 100644 --- a/Source/UI/Lists/UIScrollBar.h +++ b/Source/UI/Lists/UIScrollBar.h @@ -25,6 +25,7 @@ public: int Position(); int Travel(); int Part(int x, int y); + void Configure(int x, int y, unsigned char vertical, int length); /* 007C */ int state; /* 0080 */ int maximum;