Home   Help Search Login Register  

Author Topic: 2 fonts at once/BIS Credits  (Read 544 times)

0 Members and 1 Guest are viewing this topic.

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
2 fonts at once/BIS Credits
« on: 10 Apr 2003, 14:21:47 »
Having read xenofane's excellent tute I now know how to use different fonts.

However, I can't work out how to have two different fonts appear on the screen at once.      I know it can be done because BIS did it in the game credits.

Does anybody know the answer?    Or do you know where the Credits file is?  It must be buried in OFP somewhere.   If I can look at that I may be able to figure it out.

Many thanks.
Plenty of reviewed ArmA missions for you to play

Offline MI_Fred

  • Members
  • *
  • AA
    • OFP Team Finlanders
Re:2 fonts at once/BIS Credits
« Reply #1 on: 10 Apr 2003, 14:46:00 »
You mean like this?

Quote
#define CT_STATIC      0
#define ST_LEFT      0
#define ST_CENTER      2
#define ST_MULTI      16
#define ST_NO_RECT   512
#define TextColor      0.08, 0.08, 0.12
#define FontS "tahomaB24"
#define FontMAP "courierNewB64"
#define FontNOTES "AudreysHandI48"

class RscText
{
   type = CT_STATIC;
   idc = -1;
   style = ST_LEFT;
   h = 0.04;
   colorBackground[] = {0, 0, 0, 0};
   colorText[] = {TextColor, 0.75};
     font = FontS;
   sizeEx = 0.02;
};


class RscTitles
{
   class Prologue1
   {
      name = "prol1";
      duration = 6;
      idd = -1;
      movingEnable = false;
      controls[]={prol1,prol1b};
      class prol1 : RscText
      {
         style = ST_MULTI + ST_CENTER + ST_NO_RECT;
         lineSpacing = 1.0;
         text = "The Black Sea";
         x = 0.1; y = 0.2; w = 0.65; h = 0.4;
         colorText[] = {0.2, 0.2, 0, 0.5};
         font = FontMAP;
         sizeEx = 1.5 * 0.1;
         size = .7;
      };
      class prol1b : RscText
      {
         style = ST_MULTI + ST_CENTER + ST_NO_RECT;
         lineSpacing = 1.0;
         text = "an unknown island";
         x = 0.1; y = 0.3; w = 0.65; h = 0.4;
         colorText[] = {0.2, 0.2, 0, 0.5};
         font = FontNOTES;
         sizeEx = 1.5 * 0.1;
         size = .7;
      };
   };
};
Hmm, that's a lot of stuff for just 2 lines eh. Well, it's those #defines. I think you could do without Textcolor and FontS in the RscText class. But still, all you need is 1 RscTitle with 2 controls. I hope that's what you meant, 2 appearing at the same time  ;) Now when u write: titleRsc ["Prologue1","PLAIN"] you should get that.
« Last Edit: 10 Apr 2003, 14:48:36 by MI_Fred »
There's gooks over there, there's mines over there, and watch out those goddamn monkeys talk, I'll bite ya.

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:2 fonts at once/BIS Credits
« Reply #2 on: 10 Apr 2003, 15:06:32 »
Yep, I mean exactly like that.   :D

Thanks m8  8)
Plenty of reviewed ArmA missions for you to play