MCPcopy Create free account
hub / github.com/XorTroll/uLaunch / SetFocusedEntryIndex

Method SetFocusedEntryIndex

projects/uMenu/source/ul/menu/ui/ui_EntryMenu.cpp:212–218  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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);

Callers 1

MoveToMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected