Home   Help Search Login Register  

Author Topic: Putting Text to the Right of Screen  (Read 878 times)

0 Members and 1 Guest are viewing this topic.

Drozdov

  • Guest
Putting Text to the Right of Screen
« 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 ::) .

mikeb

  • Guest
Re:Putting Text to the Right of Screen
« Reply #1 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!!

Offline Hawkins

  • Former Staff
  • ****
  • Team 2-2
Re:Putting Text to the Right of Screen
« Reply #2 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

Drozdov

  • Guest
Re:Putting Text to the Right of Screen
« Reply #3 on: 26 Sep 2003, 16:37:52 »
How do you call that text so it appears in the mission?

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Re:Putting Text to the Right of Screen
« Reply #4 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.