Expose finding valid focus neighbors of a Control by side

Exposes the functionality used for ui navigation
This commit is contained in:
A Thousand Ships 2023-08-16 14:02:22 +02:00
parent 6758a7f8c0
commit e70b83c7a0
3 changed files with 15 additions and 0 deletions

View file

@ -526,6 +526,7 @@ public:
Control *find_next_valid_focus() const;
Control *find_prev_valid_focus() const;
Control *find_valid_focus_neighbor(Side p_size) const;
void set_focus_neighbor(Side p_side, const NodePath &p_neighbor);
NodePath get_focus_neighbor(Side p_side) const;