Jump to content
LaChouette

RscTitles image size problem

Recommended Posts

 

Hello. I am having a problem with one of my missions. I would like to display an image (logo) at a certain time of the mission in full screen.

I looked at some forums to help me, I managed to display the image with RscTitles and a trigger. But I still have a problem, the logo is displayed with the wrong size.
Anyone have an idea or suggestion? I can't find a solution. thx

 

What is happening now
1589312587-001.png
What i would like
1589312587-002.png

 

class RscTitles
{
titles[]={};
class intro
{
  	idd=-1;
  	movingEnable=0;
  	duration=10;
  	fadein=1;
  	fadeout=1.9;
  	name="intro";
  	controls[]={"title1"};

  	class title1
	{
		type=0;
		idc=-1;
		size=1;
		colorBackground[]={0,0,0,0};
		colorText[]={};
		font = "PuristaMedium";
  	  	text="intro.paa";
		style = 48 + 0x800;
  	  	sizeEx=0.100;
        x = safezoneX;
        y = safezoneY;
        w = safezoneW;
        h = safezoneH;
	};
};
};

 

Share this post


Link to post
Share on other sites
colorText[]={};

has to be:

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

 

  • Like 1

Share this post


Link to post
Share on other sites
On 5/12/2020 at 3:45 PM, LaChouette said:

 

Hello. I am having a problem with one of my missions. I would like to display an image (logo) at a certain time of the mission in full screen.

I looked at some forums to help me, I managed to display the image with RscTitles and a trigger. But I still have a problem, the logo is displayed with the wrong size.
Anyone have an idea or suggestion? I can't find a solution. thx

 

What is happening now
1589312587-001.png
What i would like
1589312587-002.png

 


class RscTitles
{
titles[]={};
class intro
{
  	idd=-1;
  	movingEnable=0;
  	duration=10;
  	fadein=1;
  	fadeout=1.9;
  	name="intro";
  	controls[]={"title1"};

  	class title1
	{
		type=0;
		idc=-1;
		size=1;
		colorBackground[]={0,0,0,0};
		colorText[]={};
		font = "PuristaMedium";
  	  	text="intro.paa";
		style = 48 + 0x800;
  	  	sizeEx=0.100;
        x = safezoneX;
        y = safezoneY;
        w = safezoneW;
        h = safezoneH;
	};
};
};

 

Did you ever solve this problem? I've been trying to do the exact same thing and I can't find a solution anywhere.

 

Share this post


Link to post
Share on other sites

This should do:
 

//--- description.ext
import RscPictureKeepAspectRatio;
class RscTitles
{
	class RscFullscreenImage
	{
		idd = -1;
		duration = 10;
		fadeIn = 1;
		fadeOut = 1;
		onLoad = "uiNamespace setVariable ['RscFullscreenImage', _this select 0];";
		class Controls
		{
			class Image: RscPictureKeepAspectRatio
			{
				idc = -1;
				text = "path\to\image.paa";
				x = safeZoneX;
				y = safeZoneY;
				w = safeZoneW;
				h = safeZoneH;
			};
		};
	};
};

And open with:

"RscFullscreenImage_layer" cutRsc ["RscFullscreenImage", "PLAIN"];

 

  • Like 1

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

×