Decompile fn_14655 (CUIListItem::Paint)

Batch #11492 by Yommy: 0 byte-identical, 1 confirmed by peer review.

- fn_14655 CUIListItem::Paint: logic confirmed by peer review

Peer-reviewed-by: KWDev, dori, cremane, raiken
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 08:20:20 +00:00
commit d5ec4783d8

View file

@ -3617,18 +3617,21 @@ CUIListItem::CUIListItem() : CUIControl(), images(), selected(0), disabledImage(
// FUNCTION: fn_14655
void CUIListItem::Paint() {
this->ClearSurface(0xFFFF00FF);
if (!this->frozen) {
if (!this->images[this->selected]) {
if (this->selected == 1) {
this->ClearSurface(0xFFDECE);
} else if (this->selected == 2) {
this->ClearSurface(0xEF9C73);
}
} else {
this->DrawBitmap(0, 0, &this->images[this->selected]->image, false);
if (this->frozen) {
if (this->disabledImage) {
this->DrawBitmap(0, 0, &this->disabledImage->image, false);
}
} else if (this->disabledImage) {
this->DrawBitmap(0, 0, &this->disabledImage->image, false);
} else if (!this->images[this->selected]) {
switch (this->selected) {
case 1:
this->ClearSurface(0xFFDECE);
break;
case 2:
this->ClearSurface(0xEF9C73);
break;
}
} else {
this->DrawBitmap(0, 0, &this->images[this->selected]->image, false);
}
}