OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Peter haroski on 09 Aug 2004, 10:29:32

Title: Logos
Post by: Peter haroski on 09 Aug 2004, 10:29:32
How I can make logos to the missions, examble some kind of flag to start of the mission, where reads something like Peter Haroski... If you didn't get the point, I can add an picture.
Title: Re:Logos
Post by: macguba on 09 Aug 2004, 10:43:00
Create your logo and put the .jpg in the mission folder.    It probably needs to have sides of 2^n in pixels.

Call it with a command like this

titleRsc ["naughty2","plain",0.1]

And define it in description.ext like this.   There is a tute somewhere.

class RscPicture
{
   type=0;
   idc=-1;
   style=48;
   colorBackground[]={0,0,0,0};
   colorText[]={1,1,1,1};
   font="tahomaB24";
   size=0;
};
class RscTitles
{
   class naughty2
   {
      idd=-1;
      movingEnable=0;
      duration=8;
      name="naughty2";
      controls[]={"Title"};
      class Title: RscPicture
      {
         text="naughty2.jpg";
         x=0.300000;
         y=0.000000;
         w=0.500000;
         h=1.000000;
      };
   };
};

Title: Re:Logos
Post by: Peter haroski on 09 Aug 2004, 13:31:03
I get error, where reads something like "member already defined" and it kicks me from the OFP