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

Method LoadEntry

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

Source from the content-addressed store, hash-verified

172 }
173
174 bool EntryMenu::LoadEntry(const u32 idx) {
175 if(idx < this->cur_entries.size()) {
176 const auto &entry = this->cur_entries.at(idx);
177 if(!entry.Is<EntryType::Invalid>()) {
178 this->entry_icons.at(idx) = this->LoadEntryIconTexture(entry);
179 this->LoadOverText(idx);
180
181 auto &entry_alpha = this->load_img_entry_alphas.at(idx);
182 entry_alpha = 0;
183 auto &entry_alpha_incr = this->load_img_entry_incrs.at(idx);
184 entry_alpha_incr.StartFromZero(EntryShowIncrementSteps, 0xFF);
185 return true;
186 }
187 }
188
189 return false;
190 }
191
192 void EntryMenu::NotifyFocusedEntryChanged(const s32 prev_entry_idx, const s32 is_prev_entry_suspended_override) {
193 auto has_prev_entry = prev_entry_idx >= 0;

Callers 3

OnRenderMethod · 0.95
MoveToMethod · 0.95
OrganizeEntriesMethod · 0.95

Calls 2

LoadEntryIconTextureMethod · 0.95
LoadOverTextMethod · 0.95

Tested by

no test coverage detected