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
This commit is contained in:
ragnarok-clanker 2026-10-28 12:07:33 +00:00
commit 9176a8bc81
2 changed files with 29 additions and 0 deletions

View file

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