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
Random loading screen texts
NaxEla Offline
Senior Member

Posts: 415
Threads: 5
Joined: Dec 2012
Reputation: 28
#3
RE: Random loading screen texts

You need to use SetupLoadScreen in your OnLeave function. Then in your .lang file, make sure you name the entries something like "LoadingText01", "LoadingText02", "LoadingText03", etc., so that the names are the same except the last number.

For example, if you named the entries like above, the category as "LoadingText", and you had 5 loading texts:

Script:
PHP Code: (Select All)
void OnLeave()
{
    
SetupLoadScreen("LoadingText""LoadingText"5"imagefile.jpg");


lang:
<LANGUAGE>
    <CATEGORY Name="LoadingText">
        <Entry Name="LoadingText01">loading text 1</Entry>
        <Entry Name="LoadingText02">loading text 2</Entry>
        <Entry Name="LoadingText03">loading text 3</Entry>
        <Entry Name="LoadingText04">loading text 4</Entry>
        <Entry Name="LoadingText05">loading text 5</Entry>
    </CATEGORY>
</LANGUAGE>

In Ruins [WIP]
03-21-2013, 11:51 PM
Find


Messages In This Thread
Random loading screen texts - by LankySpankey103 - 03-21-2013, 11:03 PM
RE: Random loading screen texts - by NaxEla - 03-21-2013, 11:51 PM



Users browsing this thread: 2 Guest(s)