Home   Help Search Login Register  

Author Topic: Different colour text + other Q's  (Read 1696 times)

0 Members and 1 Guest are viewing this topic.

Offline Messiah

  • Honourary OFPEC Patron & Drinking Buddy of Wolfsbane
  • Honoured Contributor
  • ***
  • OFPEC Veteran
    • Project UK Forces
Different colour text + other Q's
« on: 19 Oct 2002, 23:40:06 »
now, i have a feeeeeeeeeeeeeeeeeew probs:

1. I have a MapAnim part to my intro, and the titletext simply cant be seen because its white on white - now is there a way to either make the text a different colour OR make the map textures show in the intro.

2. How can i check when a plane is on the ground

3. How do i check when a whole group is dead... i tried to use not(alive groupname) but as i guessed it wasnt that simple

thats about it for now, thanx.

:thumbsup:
Proud Member of the Volunteer Commando Battalion

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:Different colour text + other Q's
« Reply #1 on: 20 Oct 2002, 00:46:26 »
i donno bout da first 1 nd da sec 1 is just a shot in a dark but  ;D

2)  
Code: [Select]
getpos planname select 2 < 3 - should b right

3) dere r 2 ways  ;D

 a)
Code: [Select]
east countside units groupname < 1 b)
Code: [Select]
"not alive _x" foreach units groupname
in da first 1 just change da east 2 da side u want  ;D

LCD OUT
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta

Offline Messiah

  • Honourary OFPEC Patron & Drinking Buddy of Wolfsbane
  • Honoured Contributor
  • ***
  • OFPEC Veteran
    • Project UK Forces
Re:Different colour text + other Q's
« Reply #2 on: 20 Oct 2002, 02:01:29 »
aaaah, great stuff as always LCD

:thumbsup:
Proud Member of the Volunteer Commando Battalion

Gameer_77

  • Guest
Re:Different colour text + other Q's
« Reply #3 on: 20 Oct 2002, 02:10:14 »
For the first one, try searching the forums. (Keyword: "dialog")

If you can't find anything, look a few pages back in the cutscene and sounds forum, and if you still can't find anything come back or PM me.  :)

 8)PEACE

Offline Messiah

  • Honourary OFPEC Patron & Drinking Buddy of Wolfsbane
  • Honoured Contributor
  • ***
  • OFPEC Veteran
    • Project UK Forces
Re:Different colour text + other Q's
« Reply #4 on: 20 Oct 2002, 02:22:16 »
Quote
Put this in an description.ext in your mission/campaign dir:

class RscText
{
   type=0;
   idc=-1;
   style=0;
   h=0.080000;
   colorBackground[]={0,0,0,0};
   colorText[]={0.000000,1.000000,1.000000,1.000000};
   font="tahomaB24";
   sizeEx=0.040000;
};

class RscTitles
{
   class MyText
   {
      idd=-1;
      movingEnable=0;
      duration=4;
      name="Hello World Text";
      controls[]={"Text"};
      class Text : RscText
      {
         style="16 +                2 +             512";
         lineSpacing=1.000000;
         text="Hello World!";
         x=0.050000;
         y=0.30000;
         w=0.900000;
         h=0.500000;
         colorText[]={0,0,1,1};
         font="tahomaB36";
         sizeEx=0.030000;
      };
   };
};

Then show it via
cutRsc ["MyText","PLAIN"]

you can show pictures via

class RscPicture
{
   type=0;
   idc=-1;
   style=48;
   colorBackground[]={0,0,0,0};
   colorText[]={1,1,1,1};
   font="tahomaB24";
   sizeEx=0;
};

....
.... class Picture : RscPicture {
            idc=xyz
            text="Name of the Picture.jpg"
    .....

Or you can put this all in a dialog like this

class RscText
{
   type=0;
   idc=-1;
   style=0;
   h=0.080000;
   colorBackground[]={0,0,0,0};
   colorText[]={0.000000,1.000000,1.000000,1.000000};
   font="tahomaB24";
   sizeEx=0.040000;
};
class RscButton
{
   type=1;
   style=2;
   w=0.160000;
   h=0.060000;
   colorText[]={0.080000,0.080000,0.120000,1};
   font="tahomaB24";
   sizeEx=0.020000;
   default=0;
   soundPush[]={"ui\ui_ok",0.200000,1};
   soundClick[]={"",0.200000,1};
   soundEscape[]={"ui\ui_cc",0.200000,1};
};


class MyText
{
     idd=1;
   movingEnable=0;
   controls[]={"Text","Button"};
   class Text : RscText
   {
      idc=303;
      x=0.300000;
      y=0.180000;
      w=0.400000;
      text="Hello World!";
   };
   class Button : RscButton
   {
      idc=1;
      w=0.0;
      h=0.0;
      x=-0.5;
      y=-0.5;
      text="";
      default=1;
   };
};

But the it shows you a cursor.

Hope that helps.

ok, that seems to be the most hopefull part - now, so to type what i want, i just change the 'hello world' to my own text?

problem with this method is that i have what must be 20 sentances to do - thats heavy on this method

but anyways - how do i make the colour to a grey colour? - dunno what numbers to type.

and do i need a picture? all i want is diff colour text?

cheers Gamer - oh, nice mission btw  ;)
Proud Member of the Volunteer Commando Battalion

Gameer_77

  • Guest
Re:Different colour text + other Q's
« Reply #5 on: 21 Oct 2002, 10:15:47 »
To change the colour add this line to the "class text":

colorText[] = {0, 0, 0, 1};

Red, Green, Yellow, Brightness i think.

So it should look like this:

  class Text : RscText
  {
      idc=303;
      x=0.300000;
      y=0.180000;
      w=0.400000;
      colorText[] = {0, 0, 0, 1};
      text="Get NPD! ;)"
  };

As for the multiple text's, BIS done them seperately. All it takes is for you to add more of the classes listed above, then add their names into the "controls[]=" part.

If you need more help, ask away.

 8)PEACE
« Last Edit: 21 Oct 2002, 10:16:27 by Gameer_77 »

Offline Sui

  • Former Staff
  • ****
    • OFPEC
Re:Different colour text + other Q's
« Reply #6 on: 21 Oct 2002, 10:46:10 »
colorText[] = {0, 0, 0, 1};

Red, Green, Yellow, Brightness i think.

Red, Green, Yellow, Alpha channel?

That's what it is in the drop command, but I'm not 100% sure if it's the same here.

For those who dont' know, Alpha channel refers to the amount the text will be transparent. 1 is fully solid, while 0 is fully transparent. I guess you could use it for brightness ;)

Gameer_77

  • Guest
Re:Different colour text + other Q's
« Reply #7 on: 21 Oct 2002, 13:03:07 »
Oops!  :o

Such a big mistake to make...  :'(

 ::) If you want a tute on dialogs, get it here:

http://home.arcor.de/vektorboson/downloads/dialoge.zip

 8)PEACE

Offline Messiah

  • Honourary OFPEC Patron & Drinking Buddy of Wolfsbane
  • Honoured Contributor
  • ***
  • OFPEC Veteran
    • Project UK Forces
Re:Different colour text + other Q's
« Reply #8 on: 21 Oct 2002, 18:38:42 »
so the only bit i need to make my own text is:

Code: [Select]
class RscText
{
  type=0;
  idc=-1;
  style=0;
  h=0.080000;
  colorBackground[]={0,0,0,0};
  colorText[]={0.000000,1.000000,1.000000,1.000000};
  font="tahomaB24";
  sizeEx=0.040000;
};

class RscTitles
{
  class MyText
  {
      idd=-1;
      movingEnable=0;
      duration=4;
      name="Hello World Text";
      controls[]={"Text"};
      class Text : RscText
      {
        style="16 +                2 +            512";
        lineSpacing=1.000000;
        text="Hello World!";
        x=0.050000;
        y=0.30000;
        w=0.900000;
        h=0.500000;
        colorText[]={0,0,1,1};
        font="tahomaB36";
        sizeEx=0.030000;
      };
  };

the rest is just for pics yeah?

guess i could give that a go - will help - but one thing - how do you make blue out of those 3 colours?
Proud Member of the Volunteer Commando Battalion

Gameer_77

  • Guest
Re:Different colour text + other Q's
« Reply #9 on: 21 Oct 2002, 18:55:18 »
Didn't you take art at school? Tsk, Tsk, Tsk...

{0.1, 0, 0.8, 1};

Nice tint of blue

 8)PEACE