Jump to content
Sign in to follow this  
INVISO

Trigger's ressource

Recommended Posts

I world like to know how to make your own picture (In this case, my mission's title) show when a trigger is activated.

TGA, GIF... what about the alpha channel and the size of the picture. Those kind of questions.

Thanks in advance!

Share this post


Link to post
Share on other sites

I´m prety sure you get results when using the m_search.gif button. Make sure you enable "and older" in the lower part of search form.

Ressources have to b embedded in description.ext and can be selected in triggers extra features after embedding.

I´ll post a little example:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">class RscTitles

{

titles[]={"CiATitle", "Intro"};

class CiATitle

{

idd=-1;

movingEnable=0;

duration=6;

fadein=2;

name="CiATitle";

controls[]={"CiATitle00"};

class CiATitle00

{

type=0;

idc=-1;

style=2;

colorBackground[]={0,0,0,0.0 };

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

font="SteelfishB128";

size=2;

text="Comrades in Arms Part I";

x=0.04;

y=0.27;

w=0.9;

h=0.5;

};

};

class INTRO

{

idd=-1;

movingEnable=0;

duration=2;

fadein=2;

fadeout=2;

name="INTRO";

controls[]={"Pic","Text",};

class Pic : RscStdText

{

style=48;

text="Bals.jpg";

x=0.25;

y=0.25;

w=0.5;

h=0.35;

};

class Text : RscStdText

{

text="Comrades in Arms Part I";

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

font="TahomaB48";

size=1.0;

x=0.25;

y=0.70;

w=0.5;

h=0.1;

};

};

};

Picture has to be in mission folder before you save mission to MP or SP. Picture size in theis case is 256 x 128. They always have to be a ^2 potency.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×