Maintenance: [forced, user-approved] Family G7: remove WindowRetirement, PlayerNameContext, AutomaticSkillContext. (a) WindowRetireme

Batch #10200 by ragnarok-clanker: forced by an admin (2 lower score(s), 7 changed function(s)); checked with 43 compiled unit(s), including every includer of Source/Contents/PlayerNameDictionary.h, Source/Contents/Skills/AutomaticSkills.h, Source/UI/Window/WindowRetirement.h.
Deletes: Source/UI/Window/WindowRetirement.h
This commit is contained in:
ragnarok-clanker 2026-11-02 21:54:00 +00:00
commit 2a8fe0df8a
6 changed files with 14 additions and 84 deletions

View file

@ -2,7 +2,6 @@
#include "UI/Layout/SnapMgr.h"
#include "UI/Window/UIWindow.h"
#include "UI/Window/UIWindowMgr.h"
#include "UI/Window/WindowRetirement.h"
#include <algorithm>
@ -78,37 +77,6 @@ void UIWindowMgr::DismissTransient() {
}
}
// INLINED
void WindowRetirement::DrainPending(
const std::deque<UIWindow*>& modal, UIWindow*& reference_4F16C, UIWindow*& capture, UIWindow*& input, UIWindow*& hover
) {
if (!modal.empty() && modal.back()) {
return;
}
for (UIWindow* window : this->windows.retired) {
if (reference_4F16C == window) {
reference_4F16C = nullptr;
}
if (capture && (capture == window || capture->IsDescendantOf(window))) {
capture = nullptr;
}
if (input && (input == window || input->IsDescendantOf(window))) {
input = nullptr;
}
if (hover && (hover == window || hover->IsDescendantOf(window))) {
hover = nullptr;
}
this->windows.Destroy(window);
}
this->windows.retired.clear();
}
// OFFSET: 0x00A8F840
// FUNCTION: fn_17145
void UIWindowMgr::DestroyWindow0478() {