Decompile fn_17258 (InputFocus::Last)
Batch #1606 by eAthena: 0 byte-identical, 1 confirmed by peer review. - fn_17258 InputFocus::Last: logic confirmed by peer review Reviewed-by: ragnarok-clanker
This commit is contained in:
parent
6f3ef794d3
commit
e0a00d290e
2 changed files with 23 additions and 0 deletions
|
|
@ -47,6 +47,28 @@ void InputFocus::First() {
|
|||
this->window = nullptr;
|
||||
}
|
||||
|
||||
// OFFSET: 0x00AA9C70
|
||||
// FUNCTION: fn_17258
|
||||
void InputFocus::Last() {
|
||||
if (this->window) {
|
||||
UIWindow* parent = this->window->parent;
|
||||
|
||||
for (auto it = parent->m_children.rbegin(); it != parent->m_children.rend(); ++it) {
|
||||
UIWindow* child = *it;
|
||||
if (child->Slot05()) {
|
||||
this->Set(child);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if (this->window) {
|
||||
this->window->Slot24(0);
|
||||
}
|
||||
}
|
||||
|
||||
this->window = nullptr;
|
||||
}
|
||||
|
||||
// OFFSET: 0x00AA9D20
|
||||
// FUNCTION: fn_17259
|
||||
void InputFocus::Next() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue