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:
parent
43e14c0691
commit
e7aea7d755
1 changed files with 7 additions and 5 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue