Batch #17225 by ragnarok-clanker: forced by an admin (0 lower score(s), 1 changed function(s)); checked with 75 compiled unit(s), including every includer of Source/Utility/StdIntVectorCopy.h, Source/Utility/StdStringConcat.h, Source/Utility/StdStringCopy.h, Source/Utility/StdStringInsert.h, Source/Utility/StdStringMoveAssign.h, Source/Utility/StdStringVectorDestroy.h, Source/Utility/StdTraitsEqual.h, Source/Utility/StdTraitsFind.h, Source/Utility/StdWindowListEmplace.h.
37 lines
936 B
C++
37 lines
936 B
C++
#include "UI/Window/UIWindow.h"
|
|
#include "UI/Window/UIWindowMgr.h"
|
|
|
|
#include "Utility/StdWindowListEmplace.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();
|
|
}
|