OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Messiah 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:
-
i donno bout da first 1 nd da sec 1 is just a shot in a dark but ;D
2) getpos planname select 2 < 3 - should b right
3) dere r 2 ways ;D
a)east countside units groupname < 1 b)"not alive _x" foreach units groupname
in da first 1 just change da east 2 da side u want ;D
LCD OUT
-
aaaah, great stuff as always LCD
:thumbsup:
-
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
-
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 ;)
-
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
-
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 ;)
-
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 (http://home.arcor.de/vektorboson/downloads/dialoge.zip)
8)PEACE
-
so the only bit i need to make my own text is:
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?
-
Didn't you take art at school? Tsk, Tsk, Tsk...
{0.1, 0, 0.8, 1};
Nice tint of blue
8)PEACE