OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Drozdov on 25 Sep 2003, 22:53:39

Title: Putting Text to the Right of Screen
Post by: Drozdov on 25 Sep 2003, 22:53:39
How do you place text to the right hand side of the screen like BIS did in the Outro to the 1985 campaign? For the credits, I'm meaning. I could de-PBO that mission but I'd rather have someone tell me what to do. It's easier that way...  for me anyway ::) .
Title: Re:Putting Text to the Right of Screen
Post by: mikeb on 26 Sep 2003, 00:35:55
you have to define your own text in the desciption.ext then call it in the cutscene.

browse the dialog tutorials in the editors depot to find out how to do this.  it would take too long to describe it here!!
Title: Re:Putting Text to the Right of Screen
Post by: Hawkins on 26 Sep 2003, 08:21:27
Code: [Select]
     class Tommy
   {
      name = "Tommy";
      duration = 2;
      idd = -1;
      fadeIn = 2;
      movingEnable = false;
      controls[]={Tommy};
     
      class Tommy : RscText
      {
         style = ST_MULTI + ST_CENTER + ST_NO_RECT;
         lineSpacing = 1.0;
         text = "Tommy";
         x = 0; y = 0.4; w = 0.5; h = 0.3;
         colorText[] = {0.65, 0.45, 0, 1};
         font = FontTITLE;
         sizeEx = 1.5 * 0.1;
         size = 1;
      };
};

x = 0; y = 0.4; w = 0.5; h = 0.3;

See that part on the code? The x,y are the ones that define the position of the text. :)
As mikeb said you can browse the editors depot to find some great tutorials about this. One great one can be found here:

http://www.ofpec.com/editors/browse.php?category=1_2&start=25

Font/Text-tutorial by xenofanes. I suggest you get that one since it's a quick introduction to custom text in missions.
Hope this helped! :)

Hawkins
Title: Re:Putting Text to the Right of Screen
Post by: Drozdov on 26 Sep 2003, 16:37:52
How do you call that text so it appears in the mission?
Title: Re:Putting Text to the Right of Screen
Post by: dmakatra on 26 Sep 2003, 17:32:02
Read Xenoface's tute, it's the best way. Also, when you're at it, read the dialouge tute, it's basicly the same.