Decompile fn_10852 (UIButton::Slot31)
Batch #12111 by dori: 0 byte-identical, 1 confirmed by peer review. - fn_10852 UIButton::Slot31: logic confirmed by peer review Peer-reviewed-by: Yommy, KWDev, Toshiro, 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:
parent
084a7f28fd
commit
a1dc726b93
1 changed files with 3 additions and 3 deletions
|
|
@ -174,10 +174,10 @@ void UIButton::Slot31(int x, int y) {
|
|||
if (parent) {
|
||||
if (WindowPolicy(g_windowMgr.policy[0].actions, g_replayAnimationScaling != 0, 3, parent->geometry.id) != 0) {
|
||||
int id = this->geometry.id;
|
||||
if (id == 185 && g_charViewMode && static_cast<CMode*>(g_charViewMode)->cursorType == 2) {
|
||||
if (id == 185 && g_modeMgr.gameMode && g_modeMgr.gameMode->cursorType == 2) {
|
||||
const char* text = LookupMessage(17);
|
||||
if (g_windowMgr.Confirm(text, 2, true, false, 0, "Message", 280, 120, 0) == 187) {
|
||||
static_cast<CMode*>(g_charViewMode)->SendMsg(2, 0, 0, 0, 0);
|
||||
g_modeMgr.gameMode->SendMsg(2, 0, 0, 0, 0);
|
||||
}
|
||||
} else {
|
||||
if (id == 184 || id == 321) {
|
||||
|
|
@ -190,7 +190,7 @@ void UIButton::Slot31(int x, int y) {
|
|||
}
|
||||
}
|
||||
} else {
|
||||
static_cast<CMode*>(g_charViewMode)->SendMsg(0, this->geometry.id, this->m_argument, 0, 0);
|
||||
g_modeMgr.gameMode->SendMsg(0, this->geometry.id, this->m_argument, 0, 0);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue