OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: desper8 on 15 Jan 2004, 05:32:32
-
i wanna put a JPG into breifing screen
and i need an ingame splash screen at the start!
any one got a template for the two?
thanx in advance
-
To add a .jpg into the briefing, use something like the following line
<br><p align="center"><img src="picture.jpg" width="64" height="64"></p>
the actual jpg is stored in the mission folder
Dont bother using too high a resolution, this only adds to filesize, and once you get to a certain resolution, it doesnt appear any better. I forgot what the max resolution i used was
For size you can use a combination of the following width, height sizes
16 32,64,128, 256, 512
I find 256 X or greater is a bit too big for the page though
as far as adding it to the cutscene is concerned
here is an example of the Description.ext entry
class RscTitles
{
   titles[]={starttext1};
  ÂÂ
   class starttext1
   {
      idd=-1;
      movingEnable=0;
      duration=6;
      fadein=2;
      fadeout=2;
      name="starttext1";
      controls[]={"Screen","Titel1",};
     ÂÂ
      class Screen : RscStdText
      {
         style=48;
         text="MYPICTURE.JPG";
         x=0.2;
         y=0.2;
         w=0.6;
         h=0.1;
      };
and here is how it is called in a script
titlecut ["","black in",3]
TitleRsc ["starttext1","plain",8]
-
cool cheers
-
well the briefing pic worked fine
but
im having difficultys with the splash
class RscTitles
{
titles[]={starttext1};
class starttext1
{
idd=-1;
movingEnable=0;
duration=6;
fadein=2;
fadeout=2;
name="starttext1";
controls[]={"Screen","Titel1",};
class Screen : RscStdText
{
style=48;
text="MYPICTURE.JPG";
x=0.2;
y=0.2;
w=0.6;
h=0.1;
};so i added this to the description.ext
than to run it, at the start i made a
trigger. when west present
TitleRsc ["starttext1","plain",8]i get an error message: Resoures title starttext1 not found
were did i screw up?
-
I may be wrong, but, I think startext1 is supposed to be the text you want to display.
Substitute your text in there...try it anyway
Edit:......forget that.....I'm off target I think.
Planck
-
its ok now i figured it from a prevoius post
thanx all any way