| 210 | } |
| 211 | |
| 212 | void EntryMenu::SetFocusedEntryIndex(const u32 idx) { |
| 213 | const auto idx_x = idx / g_EntryHeightCount; |
| 214 | |
| 215 | // Set base at the start of the corresponding page |
| 216 | this->base_entry_idx_x = (idx_x / this->entry_width_count) * this->entry_width_count; |
| 217 | this->cur_entry_idx = idx; |
| 218 | } |
| 219 | |
| 220 | Entry &EntryMenu::GetEntry(const s32 index) { |
| 221 | UL_ASSERT_TRUE(index >= 0); |