CapMorganCD 0 Posted March 20, 2003 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 Posted March 20, 2003 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...... TJ Share this post Link to post Share on other sites
CapMorganCD 0 Posted March 21, 2003 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 Posted April 7, 2003 I havent tried further......maybe Deadmeat knows...... Share this post Link to post Share on other sites
CapMorganCD 0 Posted April 7, 2003 well, i hope he reads this post then Share this post Link to post Share on other sites
uiox 0 Posted April 12, 2003 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