/* ================= CDKey_MenuEvent ================= */ static void CDKey_MenuEvent( void* ptr, int notification ) { menuframework_s* m; if (notification != QM_ACTIVATED) return; m = ((menucommon_s*)ptr)->parent; switch (((menucommon_s*)ptr)->id) { case ID_VIDEO: UI_PopMenu(); UI_VideoDataMenu(); return; case ID_CONTROLS: UI_PopMenu(); UI_SetupWeaponsMenu(); break; case ID_SOUND: UI_PopMenu(); UI_SoundMenu(); break; case ID_CDKEY: break; case ID_MAINMENU: UI_PopMenu(); break; } }
/* ================= GameOptions_MenuEvent ================= */ static void GameOptions_MenuEvent( void* ptr, int notification ) { menuframework_s* m; if (notification != QM_ACTIVATED) return; m = ((menucommon_s*)ptr)->parent; switch (((menucommon_s*)ptr)->id) { case ID_SOUND: UI_PopMenu(); // Get rid of whatever is ontop UI_SoundMenu(); // Move to the Sound Menu break; case ID_CONTROLS: UI_PopMenu(); // Get rid of whatever is ontop UI_SetupWeaponsMenu(); // Move to the Controls Menu break; case ID_VIDEO: UI_PopMenu(); // Get rid of whatever is ontop UI_VideoDataMenu(); // Move to the Video Menu break; case ID_GAMEOPTIONS: break; case ID_CDKEY: UI_PopMenu(); // Get rid of whatever is ontop UI_CDKeyMenu(); // Move to the CD Key Menu break; case ID_MAINMENU: UI_PopMenu(); } }