Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Pre-Menu,PRE MENU!
Mudbill Offline
Muderator

Posts: 3,881
Threads: 59
Joined: Apr 2013
Reputation: 179
#2
RE: Pre-Menu,PRE MENU!

Copy over the pre_menu.cfg file from /config to your own mod, then edit it. It should look like this to start off with:

Spoiler below!
PHP Code: (Select All)
<PreMenu skin="gui_main_menu.skin">
    <
Section Image="startup_fg_logo.jpg" Time="2" ShowFirstStartOnly="false"/>
    <
Section Image="startup_ngp_logo.jpg" Time="2" ShowFirstStartOnly="false"/>
    <
Section Image="welcome_bg01.jpg" ShowFirstStartOnly="true" Music="12_amb.ogg" MusicVolume="0.5" MusicFadeTime="10" >
        <
Text Pos="80 210 0" FrameSize="640 300" FontSize="18 18" TextCat="PreMenu" TextEntry="WelcomeMessage01" Color="1 1 1 1" Align="Left" />
    </
Section>
    <
Section Image="welcome_bg02.jpg" ShowFirstStartOnly="true">
        <
Text Pos="80 210 0" FrameSize="640 300" FontSize="18 18" TextCat="PreMenu" TextEntry="WelcomeMessage02" Color="1 1 1 1" Align="Left" />
    </
Section>
    <
Section Image="welcome_bg03.jpg" ShowFirstStartOnly="true">
        <
Text Pos="80 210 0" FrameSize="640 300" FontSize="18 18" TextCat="PreMenu" TextEntry="WelcomeMessage03" Color="1 1 1 1" Align="Left" />
    </
Section>
    <
Section Image="welcome_bg04.jpg" ShowFirstStartOnly="true">
        <
Text Pos="80 210 0" FrameSize="640 300" FontSize="18 18" TextCat="PreMenu" TextEntry="WelcomeMessage04" Color="1 1 1 1" Align="Left" />
    </
Section>
    <
Section Image="welcome_bg05.jpg" ShowFirstStartOnly="true" HasGammaSettings="true">
        <
Text Pos="80 100 0" FrameSize="640 300" FontSize="18 18" TextCat="PreMenu" TextEntry="WelcomeMessage05" Color="1 1 1 1" Align="Left" />
    </
Section>
    <
Section Image="welcome_bg06.jpg" ShowFirstStartOnly="true">
        <
Text Pos="80 210 0" FrameSize="640 300" FontSize="18 18" TextCat="PreMenu" TextEntry="WelcomeMessage06" Color="1 1 1 1" Align="Left" />
    </
Section>
</
PreMenu


You can leave the first line alone.

Next, you can change which banners appear at startup. You can edit/remove/add lines like these to use your own images:

PHP Code: (Select All)
    <Section Image="your_image.jpg" Time="2" ShowFirstStartOnly="false"/> 

Change name of your file, how long in seconds you want it and whether you only want it to show up the first time you start the game (mostly only used for the welcome and gamma screens). Usually the images are located in graphics/pre_menu/.

After that you can change what is present for the first startup. The lines look like these:

PHP Code: (Select All)
    <Section Image="welcome_bg01.jpg" ShowFirstStartOnly="true" Music="12_amb.ogg" MusicVolume="0.5" MusicFadeTime="10" >
        <
Text Pos="80 210 0" FrameSize="640 300" FontSize="18 18" TextCat="PreMenu" TextEntry="WelcomeMessage01" Color="1 1 1 1" Align="Left" />
    </
Section

There are quite a few more settings in here. Again, use the name of your image, whether you want it to appear only first time (which you probably do), then comes music during this sequence. Edit volume and fade time.

As for the text, without having actually messed around with it, I assume the settings for the position is X and Y co-ord, though I'm unsure what the third number is. FrameSize is probably how big the text box is, so it knows where to cut the lines into paragraphs so they don't jump off the screen (bit unsure). FontSize is simple enough, X and Y size. Next is category and entry in your lang file. These are important to match, or else your game crashes. Have them point to your PreMenu category. Color is RGBA format (Red, Green, Blue, Alpha) and lastly you can have it allign to Left, Center/Middle or Right (if I remember correctly, more might be possible).

05-23-2014, 08:20 AM
Find


Messages In This Thread
Pre-Menu,PRE MENU! - by Straxedix - 05-23-2014, 07:58 AM
RE: Pre-Menu,PRE MENU! - by Mudbill - 05-23-2014, 08:20 AM
RE: Pre-Menu,PRE MENU! - by Straxedix - 05-23-2014, 08:47 AM
RE: Pre-Menu,PRE MENU! - by Mudbill - 05-23-2014, 09:24 AM
RE: Pre-Menu,PRE MENU! - by DnALANGE - 05-23-2014, 10:53 AM
RE: Pre-Menu,PRE MENU! - by Straxedix - 05-26-2014, 10:34 AM
RE: Pre-Menu,PRE MENU! - by DnALANGE - 05-26-2014, 11:30 AM
RE: Pre-Menu,PRE MENU! - by Straxedix - 05-26-2014, 11:36 AM
RE: Pre-Menu,PRE MENU! - by DnALANGE - 05-26-2014, 11:44 AM
RE: Pre-Menu,PRE MENU! - by Mudbill - 05-26-2014, 12:26 PM
RE: Pre-Menu,PRE MENU! - by DnALANGE - 05-26-2014, 12:32 PM
RE: Pre-Menu,PRE MENU! - by Straxedix - 05-27-2014, 07:36 PM
RE: Pre-Menu,PRE MENU! - by Mudbill - 05-27-2014, 08:03 PM
RE: Pre-Menu,PRE MENU! - by DnALANGE - 05-27-2014, 08:24 PM
RE: Pre-Menu,PRE MENU! - by Mudbill - 05-27-2014, 09:24 PM
RE: Pre-Menu,PRE MENU! - by DnALANGE - 05-27-2014, 11:59 PM
RE: Pre-Menu,PRE MENU! - by Daemian - 05-28-2014, 04:01 AM
RE: Pre-Menu,PRE MENU! - by Straxedix - 05-28-2014, 10:36 AM
RE: Pre-Menu,PRE MENU! - by Mudbill - 05-28-2014, 02:08 PM
RE: Pre-Menu,PRE MENU! - by Romulator - 05-28-2014, 02:41 PM
RE: Pre-Menu,PRE MENU! - by DnALANGE - 05-28-2014, 11:12 AM
RE: Pre-Menu,PRE MENU! - by Straxedix - 05-28-2014, 11:16 AM
RE: Pre-Menu,PRE MENU! - by DnALANGE - 05-28-2014, 11:18 AM
RE: Pre-Menu,PRE MENU! - by Straxedix - 05-30-2014, 07:33 PM
RE: Pre-Menu,PRE MENU! - by Mudbill - 05-30-2014, 09:14 PM
RE: Pre-Menu,PRE MENU! - by Straxedix - 05-30-2014, 10:37 PM
RE: Pre-Menu,PRE MENU! - by Mudbill - 05-31-2014, 01:41 AM
RE: Pre-Menu,PRE MENU! - by Straxedix - 06-01-2014, 06:35 PM



Users browsing this thread: 1 Guest(s)