Decompile fn_10800 (UIButton::Paint)

Batch #11531 by cremane: 0 byte-identical, 1 confirmed by peer review.

- fn_10800 UIButton::Paint: logic confirmed by peer review

Peer-reviewed-by: Yommy, KWDev, StrawberrysherbetIX
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-11-05 04:54:36 +00:00
commit 24231ed417

View file

@ -34,23 +34,17 @@ void UIButton::Paint() {
return;
}
static const char* const backgrounds[] = {
"유저인터페이스\\sml_button_up.bmp",
"유저인터페이스\\sml_button_act.bmp",
"유저인터페이스\\sml_button_down.bmp"
};
CBitmapRes* bitmap;
switch (this->geometry.unknown_0030) {
case 0:
bitmap = static_cast<CBitmapRes*>(ResourceMgr::Instance().Load(backgrounds[0]));
bitmap = static_cast<CBitmapRes*>(ResourceMgr::Instance().Load(Resolve("유저인터페이스\\sml_button_up.bmp")));
break;
case 1:
bitmap = static_cast<CBitmapRes*>(ResourceMgr::Instance().Load(backgrounds[1]));
bitmap = static_cast<CBitmapRes*>(ResourceMgr::Instance().Load(Resolve("유저인터페이스\\sml_button_act.bmp")));
break;
case 2:
bitmap = static_cast<CBitmapRes*>(ResourceMgr::Instance().Load(backgrounds[2]));
bitmap = static_cast<CBitmapRes*>(ResourceMgr::Instance().Load(Resolve("유저인터페이스\\sml_button_down.bmp")));
break;
}