View Full Version: [Code] Menu Textures for Wolf - KyleRTCW

wolfers >>Coding Alliance >>[Code] Menu Textures for Wolf - KyleRTCW


<< Prev | Next >>

KyleRTCW- 01-16-2005
[Code] Menu Textures for Wolf - KyleRTCW
Hello, welcome to my first tutorial here at WolfPlanet Forums In this tutorial, I will be showing you how to enable Menu Textures in Wolfenstein 3D like in SOD. There are many adjustments to make that feature blend with the High Scores and stuff. Read on. Step 1: Open up WL_MENU.C and do a search for: void ClearMScreen(void) You should see this: //////////////////////////////////////////////////////////////////// // // Clear Menu screens to dark red // //////////////////////////////////////////////////////////////////// void ClearMScreen(void) { #ifndef SPEAR VWB_Bar(0,0,320,200,BORDCOLOR); #else VWB_DrawPic(0,0,C_BACKDROPPIC); #endif } Modify it to look like this: //////////////////////////////////////////////////////////////////// // // Clear Menu screens to dark red // //////////////////////////////////////////////////////////////////// void ClearMScreen(void) { #ifndef SPEAR CA_CacheScreen (H_BJPIC); // or whatever Vga image you want to use //VWB_Bar(0,0,320,200,BORDCOLOR); #else VWB_DrawPic(0,0,C_BACKDROPPIC); #endif } That's it for the Texture drawing, now for your texture, it must be 320x200 in pixels and in the Wolfenstein Palette and below 63.5 K Wolf limits are 64K Now to fix The high scores Step 2: Open WL_INTER.C and do a search for // got a high score Look for this block just below it: #ifndef SPEAR PrintX = 4*8; backcolor = BORDCOLOR; fontcolor = 15; US_LineInput(PrintX,PrintY,Scores[n].name,nil,true,MaxHighName,100); #else Modify it to look like this: #ifndef SPEAR PrintX = 4*8; VWB_Bar (PrintX-2,PrintY-2,120,15,0x00); // 0x00 = Bar color under name to prevent Drawing Bugs backcolor = 0x00; // Back Color for Text fontcolor = 15; US_LineInput(PrintX,PrintY,Scores[n].name,nil,true,MaxHighName,100); #else Change the 0x00 to your likings based on the Wolf's Pallete. You are responible for changing your menu graphics! Compile All and Link up. If any errors, post them here. If not, have fun with Menu Textures! :wink: ~Kyle

Mario Maniac- 01-16-2005

I guess this tutorial was lost sometime. Mega have backup it in case of it get deleted in DHW.

Forumer™ is Voted #1 Free Forum Hosting provider
Build your own community today with the largest message board hosting company.