Decompile fn_11266 (UIBasicItemCtrl::DrawItemIcon)

Batch #17391 by eAthena: 0 byte-identical, 1 confirmed by peer review.

- fn_11266 UIBasicItemCtrl::DrawItemIcon: logic confirmed by peer review

Peer-reviewed-by: ragnarok-clanker, Yommy, alisonrag, kyoshi, cremane
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-12 15:31:41 +00:00
commit 876492224d

View file

@ -823,20 +823,17 @@ void UIBasicItemCtrl::DrawItemIcon(int x, int y, int, bool compact) {
const std::string count = FormatOwnedString("%d", this->m_item.quantity);
FontCache& fonts = g_fontCache;
int textY;
if (compact) {
textY = y + 20;
x += 16;
this->DrawTextAt(x + 16, y + 20, count.c_str(), 0, 0, 11, 0, 0, 0);
} else {
textY = y + 15;
const int textY = y + 15;
x += this->m_item.quantity < 1000 ? 14 : 0;
this->DrawTextAt(x + 1, textY, count.c_str(), 0, 0, 11, 0xFFFFFF, 0, 0);
this->DrawTextAt(x - 1, textY, count.c_str(), 0, 0, 11, 0xFFFFFF, 0, 0);
this->DrawTextAt(x, y + 16, count.c_str(), 0, 0, 11, 0xFFFFFF, 0, 0);
this->DrawTextAt(x, y + 14, count.c_str(), 0, 0, 11, 0xFFFFFF, 0, 0);
this->DrawTextAt(x, textY, count.c_str(), 0, 0, 11, 0, 0, 0);
}
this->DrawTextAt(x, textY, count.c_str(), 0, 0, 11, 0, 0, 0);
}
// OFFSET: 0x008900D0