TheIcedRage 0 Posted October 4, 2006 How to add 3 resource objects in game through editor? Share this post Link to post Share on other sites
Metal Heart 0 Posted October 4, 2006 To add custom images you define them as something known as cut resources, they are somewhat tricky to use. However, there's an easy way, just pinch the description.ext from some mission that uses custom images, change the pictures and fiddle with the values a little and that's it. If you want to know what you're actually doing I suggest this tutorial from ofpec.com: http://www.ofpec.com/OFPResources/tutorials/cutrsc_tut1.zip (note that the images must be jpg or paa and the dimesions 2^n as in 256x512, 512x512, 1024x256 etc) Share this post Link to post Share on other sites
TheIcedRage 0 Posted October 5, 2006 Still confused. Spent hours tweaking. But no clue to multiple and positionabl images with a set duration. What's wrong with the below code? class RscTitles { Â class xNK Â { Â Â Â name = "xNK"; Â Â Â duration = 4; Â Â Â idd = -1; Â Â Â movingEnable = false; Â Â Â text = "xNK.jpg"; Â Â Â x = 0.17; Â Â Â y = 0.17; Â Â Â w = 0.2; Â Â Â h = 0.2; Â }; Â class xSG Â { Â Â Â name = "xSG"; Â Â Â duration = 4; Â Â Â idd = -1; Â Â Â movingEnable = false; Â Â Â text = "xSG.jpg"; Â Â Â x = 0.17; Â Â Â y = 0.17; Â Â Â w = 0.2; Â Â Â h = 0.2; Â }; Â class xWH Â { Â Â Â name = "xWH"; Â Â Â duration = 4; Â Â Â idd = -1; Â Â Â movingEnable = false; Â Â Â text = "xWH.jpg"; Â Â Â x = 0.17; Â Â Â y = 0.17; Â Â Â w = 0.2; Â Â Â h = 0.2; Â }; }; Share this post Link to post Share on other sites
TheIcedRage 0 Posted October 6, 2006 I can't get the right combination... I appreciate the tutorial link, it's helping understand it all, just still I'm without the key ..getting there..picking the lock hpefully soon... and if anybody's got a paste of the proper code lemme know, you know. Share this post Link to post Share on other sites
Metal Heart 0 Posted October 6, 2006 This should work: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">class RscStdText { type=0; idc=-1; style=2; colorBackground[]={0,0,0,0}; colorText[]={1,1,1,1}; font="TahomaB14"; size=1; }; class RscTitles { titles[]={pic1,pic2,pic3}; class pic1 { idd=-1; movingEnable=0; duration=2; fadein=2; fadeout=2; name="intropic"; controls[]={"Pic"}; class Pic : RscStdText { style=48; text="pic1.jpg"; x=0.25; y=0.25; w=0.5; h=0.5; }; }; class pic2 { idd=-1; movingEnable=0; duration=2; fadein=2; fadeout=2; name="intropic"; controls[]={"Pic"}; class Pic : RscStdText { style=48; text="pic2.jpg"; x=0.25; y=0.25; w=0.5; h=0.5; }; }; class pic3 { idd=-1; movingEnable=0; duration=2; fadein=2; fadeout=2; name="intropic"; controls[]={"Pic"}; class Pic : RscStdText { style=48; text="pic3.jpg"; x=0.25; y=0.25; w=0.5; h=0.5; }; }; }; Share this post Link to post Share on other sites
TheIcedRage 0 Posted October 7, 2006 It works! As usual Metal Heart, not so black hearted afterall... thanks for the code! Share this post Link to post Share on other sites