3task6

Adding an image to your main menu.

1. Search for the texture of the image you wish to use.

2. Remember the full name of the texture you wish to use, i.e. "2K4Menus.MainMenu.2K4Logo"

3. Be sure to copy this texture package into the textures folder of your mod, i.e "MyMod/Textures/2K4Menus.utx"

4. Load your mainmenu.uc class into an editor.

5. Create a new image variable.

var automated    GUIImage     i_Background;

6. Create a new object of your image in the default properties function.

Begin Object Class=GUIImage Name=YourLogo
        Image=material'2K4Menus.MainMenu.2K4Logo'
        ImageStyle=ISTY_Scaled
        ImageRenderStyle=MSTY_Alpha
        ImageColor=(R=255,G=255,B=255,A=255)
        WinWidth=0.638868
        WinHeight=0.392579
        WinLeft=0.007226
        WinTop=0.016926
            RenderWeight=0.05
    End Object

7. Don't forget to assign your image variable to your imageBackground.

i_BackGround=YourLogo

Hope this helps.

-Kirk Brazil

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License