rodecomp/Source/UI/MiniPartyUsableArea.cpp
ragnarok-clanker 3ddb52d9c1 Decompile 2 functions in Source/UI/MiniPartyPlacement.cpp, Source/UI/MiniPartyUsableArea.cpp, ...
Batch #11595 by cremane: 1 byte-identical, 1 confirmed by peer review.

- fn_07657 CMiniPartyWndAreaMgr::FindFreeCell: logic confirmed by peer review
- fn_17166 UIWindowMgr::GetMiniPartyUsableArea: byte-identical

Peer-reviewed-by: Yommy, KWDev
Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
2026-11-05 03:47:55 +00:00

20 lines
523 B
C++

#include "UI/MiniPartyGrid.h"
#include "UI/Window/UIWindow.h"
#include "UI/Window/UIWindowMgr.h"
// OFFSET: 0x00A918B0
// FUNCTION: fn_17166
RECT UIWindowMgr::GetMiniPartyUsableArea() {
const int height = this->unknown_0480;
int top = static_cast<int>(height * 0.3f);
if (UIWindow* window = g_windowMgr.LookupWindow(307)) {
top = window->geometry.height;
}
RECT area;
area.right = this->unknown_047C;
area.top = top;
area.left = 0;
area.bottom = height - g_miniPartyCellHeight * 3;
return area;
}