Jump to content
Sign in to follow this  
TAW_Yonose

Picture Intro

Recommended Posts

How do i add pictures for my intro. The picture should cover the hole screen and each picture should be about 5sec. There will also be more than 1 picture

Anyone know how to do this?

Edited by TAW_Yonose

Share this post


Link to post
Share on other sites

Going to need to use a GUI, looks something like this:

titles[]={"Intro"};

class Intro {
idd = -1;
duration = 5;
fadein = 0;
name = "Intro";
controls[]={"cob_picture"};

class cob_picture : RscPicture {
	style = 48;
	text = "images\intro.paa";
	sizeEx = 0.04;
	x = 0.161979 * safezoneW + safezoneX;
	y = 0.214111 * safezoneH + safezoneY;
	w = 0.61875 * safezoneW;
	h = 0.560781 * safezoneH;
};
};

Share this post


Link to post
Share on other sites

Where do i put this? i tried to put it in init.sqf and had it like this:

titles[]={"Intro"}; 

class Intro { 
   idd = -1; 
   duration = 5; 
   fadein = 0; 
   name = "Intro"; 
   controls[]={"cob_picture"}; 

   class cob_picture : RscPicture { 
       style = 48; 
       text = "images\HunterEX.jpg"; 
       sizeEx = 0.04; 
       x = 0.161979 * safezoneW + safezoneX; 
       y = 0.214111 * safezoneH + safezoneY; 
       w = 0.61875 * safezoneW; 
       h = 0.560781 * safezoneH; 
   }; 
};

Is it because i have jpg? in that case i have problem to convert it to .paa, yes i have textview 2 and i trying to open something with it but the program close straight away when i open something :/

Share this post


Link to post
Share on other sites

Class stuff usually go in the description.ext

Skickat från min GT-I9300 via Tapatalk

Share this post


Link to post
Share on other sites

cant get this to work, getting error message all the time, can someone get the code right for me, that would be great?

HunterEX.jpg is the file name, resoultion is 1920x1080

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  

×