Home   Help Search Login Register  

Author Topic: two TitleRsc, at same time.  (Read 1153 times)

0 Members and 1 Guest are viewing this topic.

Offline FiLL2d

  • Members
  • *
  • X.x
two TitleRsc, at same time.
« on: 23 Jul 2006, 02:16:43 »
is their a way or trick of getting two TitleRsc messages to show at the same time. thanks.

also on another point, http://www.ofpec.com/forum/index.php?topic=27107.0

does this also mean you could dynamically change titlersc messages using variables????
« Last Edit: 23 Jul 2006, 03:28:21 by FiLL2d »

Offline Mr.Peanut

  • Former Staff
  • ****
  • urp!
Re: two TitleRsc, at same time.
« Reply #1 on: 23 Jul 2006, 04:12:36 »
Use titleObj for one message, and titleRsc for the other. Not sure about your other question. Try it and see. If it works, let us know!
« Last Edit: 23 Jul 2006, 04:20:51 by Mr.Peanut »
urp!

Offline Cheetah

  • Former Staff
  • ****
Re: two TitleRsc, at same time.
« Reply #2 on: 23 Jul 2006, 12:14:46 »
Or use titleRsc and cutRsc. Not sure if it works with resources too, but it works with text.
Like missions? Help with Beta Testing! or take a look at the OFPEC Missions Depot for reviewed missions!

Offline FiLL2d

  • Members
  • *
  • X.x
Re: two TitleRsc, at same time.
« Reply #3 on: 23 Jul 2006, 17:22:32 »
Thanks guys for the great replys. I didn't get the dynamic text to work in RscTitles, as any form of scripting inside the...

text="text goes here";

will be ignored and just shown text. ALTHOUGH...I saw a recent topic about rolling credits ;), well, I managed to animate an RscTitle using variables in the description.ext to make it roll down the screen...I'll post what I did here, it mite help...who knows.

//description.ext

class RscStdText
{
   type=0;
   idc=-1;
   style=2;
   colorBackground[]={0,0,0,0};
   colorText[]={1,1,1,1};       
   font="courierNewB64";
   size=1;
};
class RscTitles
{
   titles[]={credits};
   
   class credits
   {
        idd=-1;
        movingEnable=0;
        duration=999999999999; 
        fadein=0;   
      fadeout=0;
        name="credits";
        controls[]={"creditstext",};
        
      class creditstext : RscStdText
        {
             text="Credits go here";
         colorText[]={1,0,0,1};
         font="courierNewB64";
         size=0.50;             
             x=dynamx;
             y=dynamy;
             w=0.8;
             h=0.05;
        };
};


//credits.sqs

dynamx=0.1
dynamy=0
#loop
TitleRsc ["credits","plain",9999]
dynamy=dynamy+0.005
~0.01
goto "loop"


This is really simple, and to do anything like rolling credits then I believe this will be the best method, the script is primitive, you could add alot more to it to change sizes and colours etc.
« Last Edit: 23 Jul 2006, 17:24:19 by FiLL2d »

Offline Mr.Peanut

  • Former Staff
  • ****
  • urp!
Re: two TitleRsc, at same time.
« Reply #4 on: 24 Jul 2006, 19:47:47 »
Neat trick. I hope penguinnman is reading this thread because he had a question about rolling credits. Even though the original post about variables in the description.ext was mine, I never thought of this brilliant little exploit.

As for using string variable names in the description.ext I tried for a long time, without success, to get it to work so I could use the stringtable.csv for resource texts in different languages. description.ext does not like string variables I guess.
« Last Edit: 24 Jul 2006, 19:49:35 by Mr.Peanut »
urp!