Wolf3d Haven Forum

Please log in or register. Smile

Join the forum, it's quick and easy

Wolf3d Haven Forum

Please log in or register. Smile

Wolf3d Haven Forum

Would you like to react to this message? Create an account in a few clicks or log in to continue.
Wolf3d Haven Forum

A friendly Wolfenstein 3D community, about Wolfenstein 3D, the game that gave birth to first person shooters...


    menus stuff (various)

    Dark_wizzie
    Dark_wizzie
    I am Death Incarnate!
    I am Death Incarnate!


    Female
    Number of posts : 5120
    Age : 30
    Location : California, USA
    Job : Investor
    Hobbie : Computers, chess, computer chess, fashion, and philosophy
    Message : I made this forum when I was 13 High on Drugs
    Registration date : 2007-03-24

    menus stuff (various) Empty menus stuff (various)

    Post by Dark_wizzie Sun Apr 29, 2007 1:23 pm

    from dome





    Code Editing Tutorials
    Funny Main Menu stuff



    In this tutorial I'm going to teach you various things about the game's main menu(you know, New Game, Sound, Load/Save, etc.), like changing the colors, changing the speed of changing a menu section & changing the music cue that plays. The files that you need are WL_MENU.C and WL_MENU.H .
    Changing the colors
    Open up WL_MENU.H and go to line 16. There you'd see:
    #define BORDCOLOR 0x29
    #define BORD2COLOR 0x23
    #define DEACTIVE 0x2b
    #define BKGDCOLOR 0x2d
    #define STRIPE 0x2c
    #define MenuFadeOut() VL_FadeOut(0,255,51,0,0,10)
    Now, to change the colors of the menu, change anything behind the 0x with another color palette index. I only give some good-looking(by my thinking) color changes. Also, don't forget to redraw the colors with FloEdit, or else it looks silly with things like a gun with a red block around it, and so on. Just make a screenshot, save that one and use the colors on the screenshot to redraw the red colors on the normal Wolfenstein 3D graphics(they're VGA graphics, if you'd like to know).
    If you'd like to use a grey menu color, type this:
    #define BORDCOLOR 0x19 // color "1" is grey
    #define BORD2COLOR 0x13
    #define DEACTIVE 0x1b
    #define BKGDCOLOR 0x1d
    #define STRIPE 0x1c
    #define MenuFadeOut() VL_FadeOut(0,255,0,0,0,10)
    Changing the episode names
    Step 1. Open up WL_MENU.C and search for "Eisenfaust". Now you'll find:

    {1,"Episode 1" "Escape from Wolfenstein",0},
    {0,"",0},
    {3,"Episode 2" "Operation: Eisenfaust",0},
    {0,"",0},
    {3,"Episode 3" "Die, Fuhrer, Die!",0},
    {0,"",0},
    {3,"Episode 4" "A Dark Secret",0},
    {0,"",0},
    {3,"Episode 5" "Trail of the Madman",0},
    {0,"",0},
    {3,"Episode 6" "Confrontation",0}

    Step 2. Change that to, for instance:

    {1,"Episode 1" "Escape from Amsterdam",0},
    {0,"",0},
    {3,"Episode 2" "Operation: Brian Lowe",0},
    {0,"",0},
    {3,"Episode 3" "Live, Parafriction, Live!",0},
    {0,"",0},
    {3,"Episode 4" "A Moonless Night",0},
    {0,"",0},
    {3,"Episode 5" "Bad eating habits",0},
    {0,"",0},
    {3,"Episode 6" "Coconut Crocodiles",0}

    Changing the speed of the menu section changing
    Open up WL_MENU.H and go to line 22. There you'd see:
    #define MenuFadeOut() VL_FadeOut(0,255,51,0,0,10)
    Change that last "10" to another number between 1 and 20. lower than 10 decreases the time, higher than 10 increases the time. NOTE! 0 and 20+ are not available, so the game'll crash!
    Changing the music that plays in the menu
    Open up WL_MENU.H and go to line 34. There you'd see:
    #define MENUSONG WONDERIN_MUS
    #ifndef SPEAR
    #define INTROSONG NAZI_NOR_MUS
    #else
    #define INTROSONG XTOWER2_MUS
    #endif
    For example, if you wanted to play "Kill the S.O.B." as a menu music and "Around the Corner!" as title screen music, do the following:
    #define MENUSONG INTROCW3_MUS
    #ifndef SPEAR
    #define INTROSONG CORNER_MUS
    #else
    #define INTROSONG XTOWER2_MUS
    #endif



    Wolf3d Haven
    Minute Logic Blog

      Current date/time is Thu Nov 21, 2024 5:01 am