Reconstruct readable C++ and organize cohesive source subsystems
Administrative source import: native x86 compilation passed for 423 authored units. Source placement and submission states are migrated separately; this commit does not imply peer acceptance.
Previous head: 35d2a8cb36
Payload SHA256: 592f016d2730c5593bb653aa054c1e5f76a6df72c8f5a09e66f74876e2e33dee
This commit is contained in:
parent
35d2a8cb36
commit
a47d20f8be
890 changed files with 11796 additions and 16664 deletions
|
|
@ -1,123 +0,0 @@
|
|||
#include "UI/InputFocus.h"
|
||||
#include "UI/UIWindow.h"
|
||||
|
||||
// OFFSET: 0x00AA9B40
|
||||
// FUNCTION: fn_17256
|
||||
void InputFocus::Set(UIWindow* value) {
|
||||
if (this->window) {
|
||||
const bool retained = value && value->Slot06() == this->window;
|
||||
this->window->Slot24(retained);
|
||||
}
|
||||
|
||||
if (value) {
|
||||
this->window = value->Slot06();
|
||||
|
||||
if (this->window) {
|
||||
this->window->Slot23();
|
||||
}
|
||||
} else {
|
||||
this->window = nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
// OFFSET: 0x00AA9BC0
|
||||
// FUNCTION: fn_17257
|
||||
void InputFocus::First() {
|
||||
if (this->window) {
|
||||
UIWindow* parent = static_cast<UIWindow*>(this->window->parent);
|
||||
|
||||
for (UIWindow* child : parent->m_children) {
|
||||
if (!child->Slot05()) {
|
||||
continue;
|
||||
}
|
||||
|
||||
this->window->Slot24(child->Slot06() == this->window);
|
||||
this->window = child->Slot06();
|
||||
|
||||
if (this->window) {
|
||||
this->window->Slot23();
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
this->window->Slot24(0);
|
||||
}
|
||||
|
||||
this->window = nullptr;
|
||||
}
|
||||
|
||||
// OFFSET: 0x00AA9D20
|
||||
// FUNCTION: fn_17259
|
||||
void InputFocus::Next() {
|
||||
if (!this->window) {
|
||||
return;
|
||||
}
|
||||
|
||||
UIWindow* parent = static_cast<UIWindow*>(this->window->parent);
|
||||
bool found = false;
|
||||
|
||||
for (UIWindow* child : parent->m_children) {
|
||||
if (found && child->Slot05()) {
|
||||
this->window->Slot24(child->Slot06() == this->window);
|
||||
this->window = child->Slot06();
|
||||
|
||||
if (this->window) {
|
||||
this->window->Slot23();
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
if (child == this->window && child->Slot05()) {
|
||||
found = true;
|
||||
}
|
||||
}
|
||||
|
||||
this->window->Slot24(0);
|
||||
this->window = nullptr;
|
||||
}
|
||||
|
||||
// OFFSET: 0x00A96F60
|
||||
// FUNCTION: fn_17197
|
||||
void InputFocus::Advance() {
|
||||
if (!this->window) {
|
||||
this->Next();
|
||||
return;
|
||||
}
|
||||
|
||||
UIWindow* parent = static_cast<UIWindow*>(this->window->parent);
|
||||
bool found = false;
|
||||
|
||||
for (UIWindow* child : parent->m_children) {
|
||||
if (found && child->Slot05()) {
|
||||
this->Next();
|
||||
return;
|
||||
}
|
||||
|
||||
if (child == this->window && child->Slot05()) {
|
||||
found = true;
|
||||
}
|
||||
}
|
||||
|
||||
this->First();
|
||||
}
|
||||
|
||||
// OFFSET: 0x00AA4730
|
||||
// FUNCTION: fn_17222
|
||||
// Common focus refresh at the end of mouse message dispatch.
|
||||
void InputFocus::Refresh(UIWindow* const& excludedRoot) {
|
||||
if (this->window) {
|
||||
this->window->Invalidate();
|
||||
UIWindow* root = this->window->Root();
|
||||
if (root && root != excludedRoot) {
|
||||
root->Invalidate();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// OFFSET: 0x00AA9E60
|
||||
// FUNCTION: fn_17261
|
||||
void SetPressedWindowRoot(UIWindow*& pressedRoot, UIWindow* window) {
|
||||
pressedRoot = window ? window->Root() : nullptr;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue