Decompile 4 functions in Source/UI/GameSettings/UIBattleMsgOptionWnd.cpp, Source/UI/Login/UIEmailAddressWnd.cpp, ...
Batch #17096 by eAthena: 3 byte-identical, 1 confirmed by peer review. - fn_12726 UIBattleMsgOptionWnd::OnWheel: byte-identical - fn_12692 UIBattleMsgOptionWnd::OnLBtnDown: logic confirmed by peer review - fn_12341 UIEmailAddressWnd::SendMsg: byte-identical - fn_09670 CMergeItemWnd::OnWheel: byte-identical Peer-reviewed-by: alisonrag, Toshiro, br4yan 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
c9284b24e6
commit
2bed0ccba2
3 changed files with 25 additions and 17 deletions
|
|
@ -26,10 +26,11 @@ void UIBattleMsgOptionWnd::OnWheel(int delta) {
|
|||
if (step > 3) {
|
||||
step = 3;
|
||||
}
|
||||
if (delta >= 0) {
|
||||
step = -step;
|
||||
if (delta < 0) {
|
||||
this->SendMsg(this->m_scrollBar, UM_SCROLLVERT, step, 0, 0, 0);
|
||||
} else {
|
||||
this->SendMsg(this->m_scrollBar, UM_SCROLLVERT, -step, 0, 0, 0);
|
||||
}
|
||||
this->SendMsg(this->m_scrollBar, UM_SCROLLVERT, step, 0, 0, 0);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -134,8 +135,12 @@ void UIBattleMsgOptionWnd::OnLBtnDown(int x, int y) {
|
|||
|
||||
if (this->hoveredOption != -1) {
|
||||
this->optionStates[this->hoveredOption] = this->optionStates[this->hoveredOption] == 0;
|
||||
(this->useMainChatOptions ? g_session.m_noSubChatWnds : g_session.m_subChatWnds)[this->chatWindowIndex].options[this->hoveredOption] =
|
||||
this->optionStates[this->hoveredOption];
|
||||
const bool state = this->optionStates[this->hoveredOption];
|
||||
if (this->useMainChatOptions) {
|
||||
g_session.m_noSubChatWnds[this->chatWindowIndex].options[this->hoveredOption] = state;
|
||||
} else {
|
||||
g_session.m_subChatWnds[this->chatWindowIndex].options[this->hoveredOption] = state;
|
||||
}
|
||||
this->allChecked = 1;
|
||||
for (int i = 0; i < 25; ++i) {
|
||||
if (this->optionStates[i] == 0) {
|
||||
|
|
@ -143,8 +148,9 @@ void UIBattleMsgOptionWnd::OnLBtnDown(int x, int y) {
|
|||
break;
|
||||
}
|
||||
}
|
||||
this->m_allCheckBox->geometry.state = this->allChecked;
|
||||
this->m_allCheckBox->Invalidate();
|
||||
UICheckBox* checkBox = this->m_allCheckBox;
|
||||
checkBox->geometry.state = this->allChecked;
|
||||
checkBox->Invalidate();
|
||||
this->Invalidate();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -217,10 +217,11 @@ void CMergeItemWnd::OnWheel(int delta) {
|
|||
if (step > 3) {
|
||||
step = 3;
|
||||
}
|
||||
if (delta >= 0) {
|
||||
step = -step;
|
||||
if (delta < 0) {
|
||||
this->SendMsg(this->m_scrollBar, UM_SCROLLVERT, step, 0, 0, 0);
|
||||
} else {
|
||||
this->SendMsg(this->m_scrollBar, UM_SCROLLVERT, -step, 0, 0, 0);
|
||||
}
|
||||
this->SendMsg(this->m_scrollBar, UM_SCROLLVERT, step, 0, 0, 0);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -8,16 +8,17 @@
|
|||
// OFFSET: 0x008F9820
|
||||
// FUNCTION: fn_12341
|
||||
int UIEmailAddressWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a, std::intptr_t b, std::intptr_t c, std::intptr_t d) {
|
||||
if (message == UM_COMMAND) {
|
||||
g_windowMgr.modalResponse = static_cast<int>(a);
|
||||
if (a == 184) {
|
||||
g_modeMgr.gameMode->SendMsg(LMM_SET_EMAIL_ADDRESS, reinterpret_cast<int>(this->m_edit->Text()), 0, 0, 0);
|
||||
}
|
||||
|
||||
return 0;
|
||||
if (message != UM_COMMAND) {
|
||||
return UIFrameWnd::SendMsg(sender, message, a, b, c, d);
|
||||
}
|
||||
|
||||
return UIFrameWnd::SendMsg(sender, message, a, b, c, d);
|
||||
g_windowMgr.modalResponse = static_cast<int>(a);
|
||||
if (a == 184) {
|
||||
CMode* mode = g_modeMgr.gameMode;
|
||||
mode->SendMsg(LMM_SET_EMAIL_ADDRESS, reinterpret_cast<int>(this->m_edit->Text()), 0, 0, 0);
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
// OFFSET: 0x008C7800
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue