Wolf Planet Forum Index Wolf Planet
We want you here!
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

[Code] Menu Textures for Wolf - KyleRTCW

 
Post new topic   Reply to topic    Wolf Planet Forum Index -> Coding Alliance
View previous topic :: View next topic  
Author Message
KyleRTCW
Moderator


Joined: 17 Jan 2005
Posts: 36
Location: United States

PostPosted: Mon Jan 17, 2005 2:38 am    Post subject: [Code] Menu Textures for Wolf - KyleRTCW Reply with quote

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
_________________
~Kyle Albert
Check out my TC: Click Here and Forum: Click Here
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Mario Maniac
Site Admin


Joined: 13 Jan 2005
Posts: 47
Location: Brazil,RS,POA

PostPosted: Mon Jan 17, 2005 2:51 am    Post subject: Reply with quote

I guess this tutorial was lost sometime. Mega have backup it in case of it get deleted in DHW.
_________________
-Mario Maniac
Back to top
View user's profile Send private message Send e-mail MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Wolf Planet Forum Index -> Coding Alliance All times are GMT
Page 1 of 1

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001 phpBB Group

Chronicles phpBB2 theme by Jakob Persson (http://www.eddingschronicles.com). Stone textures by Patty Herford.