Batch #3603 by youko: 0 byte-identical, 10 confirmed by peer review. - fn_12940 UIDebuffRemoveWnd::SendMsg: logic confirmed by peer review - fn_12941 UIGuild_Storage_Log::SendMsg: logic confirmed by peer review - fn_12942 UIMileageWnd::SendMsg: logic confirmed by peer review - fn_12943 UINormalMB::SendMsg: logic confirmed by peer review - fn_12945 UIOpenMailBoxWnd::SendMsg: logic confirmed by peer review - fn_12946 UIOpenRoulletteWnd::SendMsg: logic confirmed by peer review - fn_12948 UISecondCostumeWnd::SendMsg: logic confirmed by peer review - fn_12950 UITransMenuWnd::SendMsg: logic confirmed by peer review - fn_12952 UISecondCostumeWnd::RefreshList: logic confirmed by peer review - fn_12953 UIQuestDisplay::Slot11: logic confirmed by peer review Peer-reviewed-by: Lumen, superintelligence, jessip Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). Adds to the build: Source/UI/Guild/UIGuild_Storage_Log.cpp, Source/UI/Quest/UIQuestDisplay.cpp, Source/UI/Window/UIDebuffRemoveWnd.cpp, Source/UI/Window/UIMileageWnd.cpp, Source/UI/Window/UINormalMB.cpp, Source/UI/Window/UIOpenMailBoxWnd.cpp, Source/UI/Window/UIOpenRoulletteWnd.cpp, Source/UI/Window/UISecondCostumeWnd.cpp, Source/UI/Window/UITransMenuWnd.cpp
42 lines
1.2 KiB
C++
42 lines
1.2 KiB
C++
#include "UI/Window/UIOpenMailBoxWnd.h"
|
|
#include "Contents/MessageTable.h"
|
|
#include "UI/Window/UIWindowMgr.h"
|
|
#include "UI/Window/WindowManagerWindows.h"
|
|
|
|
// OFFSET: 0x00950A60
|
|
// FUNCTION: fn_12945
|
|
int UIOpenMailBoxWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a, std::intptr_t b, std::intptr_t c, std::intptr_t d) {
|
|
if (message != 6) {
|
|
return this->UIWindow::SendMsg(sender, message, a, b, c, d);
|
|
}
|
|
|
|
if (a != 192) {
|
|
return 0;
|
|
}
|
|
|
|
if (g_windowMgr.LookupWindow(295)) {
|
|
g_windowMgr.SendNotice(1, reinterpret_cast<std::intptr_t>(LookupMessage(2992)), 0xFF, 0, 0, 0);
|
|
return 0;
|
|
}
|
|
|
|
if (g_windowMgr.LookupWindow(343)) {
|
|
g_windowMgr.SendNotice(1, reinterpret_cast<std::intptr_t>(LookupMessage(3715)), 0xFF, 0, 0, 0);
|
|
return 0;
|
|
}
|
|
|
|
if (g_windowMgr.LookupWindow(10006)) {
|
|
g_windowMgr.SendNotice(1, reinterpret_cast<std::intptr_t>(LookupMessage(3843)), 0xFF, 0, 0, 0);
|
|
return 0;
|
|
}
|
|
|
|
if (g_windowMgr.LookupWindow(361)) {
|
|
g_windowMgr.SendNotice(1, reinterpret_cast<std::intptr_t>(LookupMessage(4054)), 0xFF, 0, 0, 0);
|
|
return 0;
|
|
}
|
|
|
|
if (!this->m_frameContext->windows.CloseWindow(263)) {
|
|
this->m_frameContext->windows.EnsureWindow(263);
|
|
}
|
|
|
|
return 0;
|
|
}
|