Decompile 2 functions in Source/UI/Window/InputFocus.cpp, Source/UI/Window/UIWindowMgr.h, ...
Batch #14868 by SapitoSucio: 1 byte-identical, 1 confirmed by peer review. - fn_17261 UIWindowMgr::SetPressedWindowRoot: logic confirmed by peer review - fn_12582 UINewChatWnd::ToggleInput: byte-identical Peer-reviewed-by: ragnarok-clanker, codeplay, NYD Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
This commit is contained in:
parent
f42c9f1149
commit
ce7abf8a81
4 changed files with 17 additions and 5 deletions
|
|
@ -115,8 +115,19 @@ void UIWindowMgr::RefreshFocus(UIWindow* const& excludedRoot) {
|
|||
}
|
||||
}
|
||||
|
||||
// OFFSET: 0x00AA9E60
|
||||
// FUNCTION: fn_17261
|
||||
// INLINED
|
||||
void SetPressedWindowRoot(UIWindow*& pressedRoot, UIWindow* window) {
|
||||
pressedRoot = window ? window->Root() : nullptr;
|
||||
}
|
||||
|
||||
// OFFSET: 0x00AA9E60
|
||||
// FUNCTION: fn_17261
|
||||
void UIWindowMgr::SetPressedWindowRoot(UIWindow* window) {
|
||||
UIWindow* root = window;
|
||||
if (root != nullptr) {
|
||||
while (root->parent != nullptr) {
|
||||
root = root->parent;
|
||||
}
|
||||
}
|
||||
this->window_4F1D4 = root;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue