Batch #11445 by Yommy: 1 byte-identical, 0 confirmed by peer review. - fn_17231 UIWindowMgr::InvalidateRegisteredWindows: byte-identical Merged automatically: every function is byte-identical to the original.
35 lines
893 B
C++
35 lines
893 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 (auto entry = this->registeredWindows.begin(); entry != this->registeredWindows.end(); ++entry) {
|
|
(*entry)->Invalidate();
|
|
}
|
|
|
|
this->registeredWindows.clear();
|
|
}
|