Decompile fn_10617 (UIMenuIconWnd::Paint)

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

- fn_10617 UIMenuIconWnd::Paint: logic confirmed by peer review

Peer-reviewed-by: ragnarok-clanker, Yommy, kyoshi, cremane, codeplay
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:27:07 +00:00
commit e7aea7d755

View file

@ -205,12 +205,14 @@ void UIMenuIconWnd::Paint() {
this->closeButton->Enable(0);
UIButton* toggle;
if (g_session.m_showMenuIcon) {
toggle = this->closeButton;
} else if (this->notifiedCommands.size() == 0) {
toggle = this->openButton;
if (!g_session.m_showMenuIcon) {
if (this->notifiedCommands.size() != 0) {
toggle = this->notificationOpenButton;
} else {
toggle = this->openButton;
}
} else {
toggle = this->notificationOpenButton;
toggle = this->closeButton;
}
toggle->Enable(1);