rodecomp/Source/UI/Window/WindowRegistration.cpp
ragnarok-clanker 55d37a7071 Maintenance: Forced resubmit of 17189, rebased on 7ea84b3b3 (main had added 25 more copies of the same lines, now converted too). Sha
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.
2026-11-11 15:11:07 +00:00

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();
}