Batch #5179 by eAthena: 2 byte-identical, 4 confirmed by peer review. - fn_16989 UIWindow::BroadcastMsg4: byte-identical - fn_16990 UIWindow::BroadcastMsg3: byte-identical - fn_16924 UIWindow::PropagateMsg: logic confirmed by peer review - fn_17214 UIWindowMgr::ArrangeMiniPartyWindows: logic confirmed by peer review - fn_17164 UIWindowMgr::FindItemWindow: logic confirmed by peer review - fn_17230 UIWindowMgr::NotifyMemberWindows: logic confirmed by peer review Peer-reviewed-by: alisonrag, youko Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
35 lines
1.1 KiB
C++
35 lines
1.1 KiB
C++
#include "UI/MiniPartyGrid.h"
|
|
#include "UI/Window/MiniPartyWndAreaMgr.h"
|
|
#include "UI/Window/UIWindowMgr.h"
|
|
#include "UI/Window/UIWindow.h"
|
|
#include <new>
|
|
|
|
// OFFSET: 0x007435C0
|
|
// FUNCTION: fn_07745
|
|
CMiniPartyWndAreaMgr* CMiniPartyWndAreaMgr::Instance() {
|
|
if (!g_miniPartyWndAreaMgr) {
|
|
g_miniPartyWndAreaMgr = new (std::nothrow) CMiniPartyWndAreaMgr;
|
|
}
|
|
return g_miniPartyWndAreaMgr;
|
|
}
|
|
|
|
// OFFSET: 0x00AA9ED0
|
|
// FUNCTION: fn_17263
|
|
void UIWindowMgr::SetScreenSize(int width, int height) {
|
|
this->unknown_047C = width;
|
|
this->unknown_0480 = height;
|
|
this->unknown_0030 = 0;
|
|
this->unknown_0034 = height - this->unknown_0038;
|
|
reinterpret_cast<MiniPartyGrid*>(CMiniPartyWndAreaMgr::Instance())->BuildAvailableCells();
|
|
}
|
|
|
|
// OFFSET: 0x00AA2510
|
|
// FUNCTION: fn_17214
|
|
void UIWindowMgr::ArrangeMiniPartyWindows() {
|
|
for (UIWindow* window : this->snapExcluded) {
|
|
MiniPartyGridPoint position;
|
|
reinterpret_cast<MiniPartyGrid*>(CMiniPartyWndAreaMgr::Instance())
|
|
->GetCellPosition(&position, *reinterpret_cast<int*>(reinterpret_cast<char*>(window) + 0x104));
|
|
window->Move(position.x, position.y);
|
|
}
|
|
}
|