rodecomp/Source/UI/Window/WindowRegistration.cpp
ragnarok-clanker 760eca1b48 Decompile fn_17231 (UIWindowMgr::InvalidateRegisteredWindows)
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.
2026-11-05 00:45:46 +00:00

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