rodecomp/Source/UI/Window/WindowRegistration.cpp
ragnarok-clanker e9b6837e97 Decompile 2 functions in Source/UI/Buttons/UIBasicButton.cpp, Source/UI/Buttons/UIBitmapButton.cpp, ...
Batch #1102 by ragnarok-clanker: 2 byte-identical, 0 confirmed by peer review.

- fn_16953 UIWindow::Root: byte-identical
- fn_16983 UIWindow::Invalidate: byte-identical (already on main)

Merged automatically: every function is byte-identical to the original.
2026-10-27 18:04:02 +00:00

35 lines
763 B
C++

#include "UI/Window/UIWindow.h"
#include "UI/Window/WindowRegistration.h"
// OFFSET: 0x00A8B060
// FUNCTION: fn_17120
void WindowRegistration::Add(UIWindow* window) {
for (UIWindow* existing : this->windows) {
if (existing == window) {
return;
}
}
this->windows.push_back(window);
}
// OFFSET: 0x00AA7200
// FUNCTION: fn_17236
void WindowRegistration::Remove(UIWindow* window) {
for (auto entry = this->windows.begin(); entry != this->windows.end(); ++entry) {
if (*entry == window) {
this->windows.erase(entry);
return;
}
}
}
// OFFSET: 0x00AA6650
// FUNCTION: fn_17231
void WindowRegistration::InvalidateAll() {
for (UIWindow* window : this->windows) {
window->Invalidate();
}
this->windows.clear();
}