| MCS' Coding Tips "Success!" |
![]() |
Adding Robert's Jukebox to your menu Written by MCS Tested by Nescio |
| Main Page News Wolfenstein 3D Texture Library MCS' Coding Tips - "Success"! Utilities Spear Resurrection Wolfendoom Wolf Collection Original Wolf 3D Doom/Duke maps Other Stuff Links Questions? Email us! |
| Want to add Robert's Jukebox to your menu? That's easy to do. All you need is already built into the game. You can either add a new menu option or use an existing one. In this example, I'll use the "Read This!" option. In VERSION.H, remove the following lines: #define GOODTIMES #define ARTSEXTERN In WL_MENU.C, replace this block: void CP_ReadThis(void) { StartCPMusic(CORNER_MUS); HelpScreens(); StartCPMusic(MENUSONG); } with this one: void CP_ReadThis(void) { CA_UpLevel (); MM_SortMem (); DoJukebox(); CA_DownLevel (); MM_SortMem (); StartCPMusic(MENUSONG); } To change the text of the menu option, locate this block: #ifdef SPANISH {2,"Ve esto!",CP_ReadThis}, #else {2,"Read This!",CP_ReadThis}, #endif and change the "Read This!" in there to your likings. Success! MCS. |