Jump to content
Sign in to follow this  
celery

RscTitles and RscText

Recommended Posts

I'm busy making intros and other things that require some fancy writing and user interfaces. When I used parts of an OFP description.ext to have a template for an on-screen title splash and spectator UI, ArmA started giving errors. I got RscTitles fixed so it doesn't give any errors, but now it doesn't work. The text doesn't show.

This is how the unfinished product looks like now:

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

{

titles[]={starttext1};

class starttext1

{

idd=-1;

movingEnable=0;

duration=6;

fadein=0;

fadeout=0;

name="starttext1";

controls[]={"Title1","Title2"};

class Title1 : RscStdText

{

text="WARNING";

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

font="TahomaB48";

sizeEx=1.0;

x=0.1;

y=0.42;

w=0.8;

h=0.3;

};

class Title2 : RscStdText

{

text="This map contains";

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

font="TahomaB48";

sizeEx=0.2;

x=0.1;

y=0.32;

w=0.8;

h=0.3;

};

};

};

I'm trying to bring it up with the TitleRsc ["starttext1","plain",6] command but nothing shows up. Please help!

Share this post


Link to post
Share on other sites

Maybe this can help you. I got paa files showing ingame, but they have do be 256x256.

Example in code below:

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

{

titles[] =

{

lolsav, maria

};

class lolsav

{

idd=-1; // ID ... always -1

movingEnable = false; // always false

duration=6; // time of the effect (in seconds)

name = "lolsav"; // name in editor

sizeEx = 256;            // Size required for ARMA

// max. three arrays - controls, controlsBackground (optional), objects (optional)

// for now - we will only use "controls"

controls[]=

{

Picture

};

class Picture : RscPicture // For pictures

{

x = 0.25; y = 0.33; w = 0.5; h = 0.33;

text = "pictures\lolsav.paa"; // Your picture in the mission directory

sizeEx = 256;

};

};

class maria

{

idd=-1; // ID ... always -1

movingEnable = false; // always false

duration=6; // time of the effect (in seconds)

name = "maria"; // name in editor

sizeEx = 256;            // Size required for ARMA

// max. three arrays - controls, controlsBackground (optional), objects (optional)

// for now - we will only use "controls"

controls[]=

{

Picture

};

class Picture : RscPicture // For pictures

{

x = 0.01; y = 0.15; w = 0.33; h = 0.33;

text = "pictures\maria.paa"; // Your picture in the mission directory

sizeEx = 256;

};

};

};

To make it show up ingame, in my case during the intro, i have set this line command:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">cutRsc ["maria","PLAIN",2]

Be carefull where you place it tought, the intro commands are very picky. You need to insert the CutRsc command before a new PrepareTarget line.

Finally one last recommendation: In my description.ext file i have set the RscTitles Class as last. So if its not your case the example above has a "};" signal extra. In that case remove one and it should work.

Hope i was clear....

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  

×