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:
ragnarok-clanker 2026-10-28 19:43:26 +00:00
commit e0a00d290e
2 changed files with 23 additions and 0 deletions

View file

@ -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() {

View file

@ -7,6 +7,7 @@ struct InputFocus {
UIWindow*& window;
void Set(UIWindow* value);
void First();
void Last();
void Next();
void Advance();