Home   Help Search Login Register  

Author Topic: class RscTitles  (Read 1425 times)

0 Members and 1 Guest are viewing this topic.

Nedal

  • Guest
class RscTitles
« on: 05 Feb 2004, 02:53:28 »
i want to make an intro with a picture and text, the picture should stay until all texts are faded in and out

here the description.ext
Quote
class RscTitles
{
   titles[]={starttext1};
   
   class starttext1
   {
   titles[]={screen, Titel1, Titel2, Titel3};
        idd=-1;
        movingEnable=0;
        duration=10;  
        name="starttext1";
        controls[]={"Screen","Titel1",};
        
        class Screen : RscStdText
        {
             style=48;
             text="czlbanner.jpg";
             x=0.1;
             y=0.2;
             w=0.8;
             h=0.2;
        };
      class Titel1 : RscStdText
        {
             text="http://ofpl.clanzone.at";
         colorText[]={0.8,0.1,0,0.8};
         font="TahomaB48";
         size=1.0;             
             x=0.1;
             y=0.50;
             w=0.8;
             h=0.05;
        };
        class Titel2 : RscStdText
        {
             text="[BoP] Oberst Nedal presents";
         colorText[]={0.8,0.1,0,0.8};
         font="";
         size=0.75;             
             x=0.1;
             y=0.50;
             w=0.8;
             h=0.05;
        };
        class Titel3 : RscStdText
        {
             text="DM 1 v 1 Surpice";
         colorText[]={0.8,0.1,0,0.8};
         font="TahomaB48";
         size=1.75;             
             x=0.1;
             y=0.50;
             w=0.8;
             h=0.05;
        };

   };

};


and here the init.sqs
Quote
titleCut ["","BLACK"]
~4
TitleRsc ["starttext1","plain",4]
~4
TitleRsc ["Titel2","plain",3]
~4
TitleRsc ["Titel3","plain",3]
~4
titleCut ["test","Black In",0]
exit


the picture commes, and the first text too, but the secnond and third text dont work

I have tried a few different versions, and searched in Tutorials, but i could not solve my problem

Offline General Barron

  • Former Staff
  • ****
  • Semper Fi!
Re:class RscTitles
« Reply #1 on: 25 Feb 2005, 10:06:24 »
Okay, I just figured out this whole darn RscTitle thing. I don't know why a good tutorial on the subject hasn't been made before... these things have been around since v1.0. So I'm going to write a tutorial myself; look for it in the next couple weeks.

However, I can see your problem quite easily:

Code: [Select]
controls[]={"Screen","Titel1",};
In this line you are supposed to list all of the classes that are in this cutrscs. You have created the following classes:   Screen, Titel1, Titel2, Titel3. However, in the above line, you only list 2 of those 4 classes. So OFP doesn't "know" about the last two classes. The line should look like this:

Code: [Select]
controls[]={"Screen","Titel1","Titel2","Titel3"};
HANDSIGNALS COMMAND SYSTEM-- A realistic squad-control modification for OFP
kexp.org-- The best radio station in the world, right here at home! Listen to John Richards!

Offline Garcia

  • Members
  • *
  • Leeds United is the best football team...EVER!
Re:class RscTitles
« Reply #2 on: 25 Feb 2005, 17:04:14 »
Here's a tutorial ;)