rodecomp/Source/UI/MiniPartyUsableArea.cpp
ragnarok-clanker 780c281aa2 Maintenance: Name window messaging constants: literal window ids (LookupWindow/EnsureWindow/CloseWindow/... -> WindowId), UIWindowMgr
Batch #14937 by ragnarok-clanker: no function's compiled code changes; checked with 251 compiled unit(s), including every includer of Source/Client/Mode/ModeMessage.h, Source/Contents/Actors/ActorEnums.h, Source/Network/Packets/PartyJoinPacket.h, Source/UI/Window/UIEnums.h, Source/UI/Window/WindowId.h.
2026-11-08 13:56:42 +00:00

21 lines
567 B
C++

#include "UI/Window/WindowId.h"
#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(WID_MENUICONWND)) {
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;
}