Jump to content
Sign in to follow this  
CapMorganCD

Resource addon

Recommended Posts

Hi all. I'm tring to stuff some pics in a pbo and i'm having a cpp problem. How do the pictures must be defined? i tried this, but it's not working. I cant see it as a resource in the trigger's list.

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

{

class Foto01

{

units[] = {Foto01};

weapons[] = {};

requiredVersion = 1.75;

};

};

class RscPicture

{

access=3;

type=0;

idc=-1;

style=48;

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

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

font="tahomaB24";

sizeEx=0;

};

class RscTitles

{

class Default

{

idd=-1;

movingEnable=0;

duration=4;

};

class DefPic: Default

{

type=0;

idc=-1;

style=48;

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

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

font="tahomaB24";

sizeEx=0;

};

class Foto01

{

idd=-1;

movingEnable=0;

duration=4;

name="foto 01";

controls[]={"foto01"};

class foto01: RscPicture

{

text="fotos\anim01.paa";

x=0.25;

y=0.25;

w=0.5;

h=0.25;

};

};

};<span id='postcolor'>

Share this post


Link to post
Share on other sites
Guest jacobaby

Yes I tried this too and couldnt get it to work. I came to the conclusion the stuff defined in description.ext is different, but I would much rather hear how to do it......

smile.gif

TJ

Share this post


Link to post
Share on other sites

i think it can be done, just as a music addon.

We can define a track, i'm sure we can do the same for a resource...

Share this post


Link to post
Share on other sites
Guest jacobaby

I havent tried further......maybe Deadmeat knows......

Share this post


Link to post
Share on other sites

For this only one way put a file description.ext IN THE MISSION FOLDER with this line :

#include <theNameOfyourAddon\resource.cpp>

I have named the file in the addon ressource.cpp, but text works...

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  

×