MCPcopy Create free account
hub / github.com/GrapheneCt/NetStream / OnOptionMenuEvent

Method OnOptionMenuEvent

NetStream/source/menus/menu_hvdb.cpp:363–387  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

361}
362
363void menu::HVDB::OnOptionMenuEvent(int32_t type, int32_t subtype)
364{
365 if (menu::GetTopMenu()->GetMenuType() != menu::MenuType_Hvdb)
366 {
367 return;
368 }
369
370 if (type == OptionMenu::OptionMenuEvent_Close)
371 {
372 return;
373 }
374
375 switch (subtype)
376 {
377 case 0:
378 menu::SettingsButtonCbFun(ui::Button::CB_BTN_DECIDE, NULL, 0, NULL);
379 break;
380 case 1:
381 if (m_currentSubmenu && (m_currentSubmenu->GetType() == Submenu::SubmenuType_Favourites))
382 {
383 m_currentSubmenu->GoToBasePageForSync();
384 }
385 break;
386 }
387}
388
389void menu::HVDB::OnBackButton()
390{

Callers 1

HVDBMethod · 0.45

Calls 3

GetMenuTypeMethod · 0.45
GetTypeMethod · 0.45
GoToBasePageForSyncMethod · 0.45

Tested by

no test coverage detected