Decompile 2 functions in Source/UI/MiniPartyManager.cpp, Source/UI/Window/UIWindowMgr.h, ...
Batch #1455 by Yommy: 0 byte-identical, 2 confirmed by peer review. - fn_07745 CMiniPartyWndAreaMgr::Instance: logic confirmed by peer review - fn_17263 UIWindowMgr::SetScreenSize: logic confirmed by peer review Reviewed-by: ragnarok-clanker Adds to the build: Source/UI/MiniPartyManager.cpp
This commit is contained in:
parent
f93746f1b1
commit
20dbe4bc34
4 changed files with 28 additions and 0 deletions
24
Source/UI/MiniPartyManager.cpp
Normal file
24
Source/UI/MiniPartyManager.cpp
Normal file
|
|
@ -0,0 +1,24 @@
|
||||||
|
#include "UI/MiniPartyGrid.h"
|
||||||
|
#include "UI/Window/MiniPartyWndAreaMgr.h"
|
||||||
|
#include "UI/Window/UIWindowMgr.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();
|
||||||
|
}
|
||||||
|
|
@ -7,6 +7,8 @@
|
||||||
|
|
||||||
class CMiniPartyWndAreaMgr {
|
class CMiniPartyWndAreaMgr {
|
||||||
public:
|
public:
|
||||||
|
static CMiniPartyWndAreaMgr* Instance();
|
||||||
|
|
||||||
/* 0004 */ RECT area;
|
/* 0004 */ RECT area;
|
||||||
/* 0014 */ int columns;
|
/* 0014 */ int columns;
|
||||||
/* 0018 */ int rows;
|
/* 0018 */ int rows;
|
||||||
|
|
|
||||||
|
|
@ -419,6 +419,7 @@ public:
|
||||||
void InitializeWindowPolicy();
|
void InitializeWindowPolicy();
|
||||||
void ResetWindows();
|
void ResetWindows();
|
||||||
void Shutdown();
|
void Shutdown();
|
||||||
|
void SetScreenSize(int width, int height);
|
||||||
UIWindow* LookupWindow(int id);
|
UIWindow* LookupWindow(int id);
|
||||||
void Schedule(UIWindow* window);
|
void Schedule(UIWindow* window);
|
||||||
void Destroy(UIWindow* window);
|
void Destroy(UIWindow* window);
|
||||||
|
|
|
||||||
|
|
@ -585,6 +585,7 @@
|
||||||
"Source/UI/Lists/UIScrollBar.cpp": 2,
|
"Source/UI/Lists/UIScrollBar.cpp": 2,
|
||||||
"Source/UI/Lists/UIScrollBarNavi.cpp": 2,
|
"Source/UI/Lists/UIScrollBarNavi.cpp": 2,
|
||||||
"Source/UI/MiniPartyGrid.cpp": 2,
|
"Source/UI/MiniPartyGrid.cpp": 2,
|
||||||
|
"Source/UI/MiniPartyManager.cpp": 2,
|
||||||
"Source/UI/MiniPartyPlacement.cpp": 2,
|
"Source/UI/MiniPartyPlacement.cpp": 2,
|
||||||
"Source/UI/Party/UIAdvenPartyBoardWnd.cpp": 2,
|
"Source/UI/Party/UIAdvenPartyBoardWnd.cpp": 2,
|
||||||
"Source/UI/Party/UIApplyForPartyWnd.cpp": 2,
|
"Source/UI/Party/UIApplyForPartyWnd.cpp": 2,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue