/* ================= UI_NetworkOptionsMenu_Event ================= */ static void UI_NetworkOptionsMenu_Event( void* ptr, int event ) { if( event != QM_ACTIVATED ) { return; } switch( ((menucommon_s*)ptr)->id ) { case ID_GRAPHICS: UI_PopMenu(); UI_VideoDataMenu(); // Move to the Video Menu break; case ID_DISPLAY: UI_PopMenu(); UI_VideoDataMenu(); // Move to the Video Menu break; case ID_SOUND: UI_PopMenu(); // UI_SoundOptionsMenu(); break; case ID_NETWORK: break; case ID_RATE: if( networkOptionsInfo.rate.curvalue == 0 ) { trap_Cvar_SetValue( "rate", 2500 ); } else if( networkOptionsInfo.rate.curvalue == 1 ) { trap_Cvar_SetValue( "rate", 3000 ); } else if( networkOptionsInfo.rate.curvalue == 2 ) { trap_Cvar_SetValue( "rate", 4000 ); } else if( networkOptionsInfo.rate.curvalue == 3 ) { trap_Cvar_SetValue( "rate", 5000 ); } else if( networkOptionsInfo.rate.curvalue == 4 ) { trap_Cvar_SetValue( "rate", 25000 ); } break; } }
/* ================= 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(); } }