Batch #10209 by ragnarok-clanker: forced by an admin (36 lower score(s), 108 changed function(s)); checked with 561 compiled unit(s), including every includer of Source/Client/Mode/CMode.h, Source/UI/Window/UIWindow.h, Source/UI/Window/UIWindowMgr.h.
35 lines
840 B
C++
35 lines
840 B
C++
#include "UI/Window/UIWindow.h"
|
|
#include "UI/Window/UIWindowMgr.h"
|
|
|
|
// OFFSET: 0x00A8B060
|
|
// FUNCTION: fn_17120
|
|
void UIWindowMgr::RegisterWindow(UIWindow* window) {
|
|
for (UIWindow* existing : this->registeredWindows) {
|
|
if (existing == window) {
|
|
return;
|
|
}
|
|
}
|
|
|
|
this->registeredWindows.push_back(window);
|
|
}
|
|
|
|
// OFFSET: 0x00AA7200
|
|
// FUNCTION: fn_17236
|
|
void UIWindowMgr::UnregisterWindow(UIWindow* window) {
|
|
for (auto entry = this->registeredWindows.begin(); entry != this->registeredWindows.end(); ++entry) {
|
|
if (*entry == window) {
|
|
this->registeredWindows.erase(entry);
|
|
return;
|
|
}
|
|
}
|
|
}
|
|
|
|
// OFFSET: 0x00AA6650
|
|
// FUNCTION: fn_17231
|
|
void UIWindowMgr::InvalidateRegisteredWindows() {
|
|
for (UIWindow* window : this->registeredWindows) {
|
|
window->Invalidate();
|
|
}
|
|
|
|
this->registeredWindows.clear();
|
|
}
|