(Old code tutorial) Menu Textures for Wolf - KyleRTCW from Wolf Planet forum

View previous topic View next topic Go down

(Old code tutorial) Menu Textures for Wolf - KyleRTCW from Wolf Planet forum

Post by Officer-M. John (Admin) on Thu Dec 01, 2016 12:07 pm

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:

Code:

////////////////////////////////////////////////////////////////////
//
// 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:

Code:

////////////////////////////////////////////////////////////////////
//
// 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:

Code:

#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:

Code:

#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

Writte by KyleRTCW (Kyle Albert) on Mon Jan 17, 2005 2:38 am
avatar
Officer-M. John (Admin)
Admin

Posts : 323
Join date : 2015-10-02
Age : 19

View user profile http://wolf3dfanboys.usersboard.com

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum