Jump to content
Trooper Biggs

RscTitles - How to Scale an Image to Fullscreen?

Recommended Posts

Hi! I've been working on a mission for some time now and I'm trying to use RscTitles to make an image appear on screen at a certain time in the mission, and become fullscreen for a few moments. However whenever I put the image into the script and execute it, it's very small even though the image file itself is 1920x1080p, the same resolution as my monitor.

Any way I can fix this? Here's my description.ext.
 

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

      class title1
    {
        type=0;
        idc=-1;
        size=4;
        colorBackground[]={0,0,0,0};
        colorText[]={1,1,1,1};
        font="PuristaMedium";
            text="SCP5.jpg";
        style = 0x30 + 0x800
            sizeEx=2;
        x=0.2;
            y=0.4;
            w=0.6;
            h=0.168;
    };
};
};

The image is supposed to look like this,
SCP5.jpg?width=1201&height=676


But instead, it appears in game like this.
unknown.png?width=1201&height=676


 

Share this post


Link to post
Share on other sites

hey,

i call a fullscreen image like this

class RscTitles
{
  titles[] = {"SCP5"};
  class SCP5 
  {
    idd = -1;
    movingEnable = 0;
    duration = 4;  
    fadein = 1;
    fadeout = 1.9;
    name="SCP5";
    controls[]={"Picture"};
    class Picture 
    {
	
	x = safezoneX;
	y = safezoneY;
	w = safezoneW;
	h = safezoneH;
	text="SCP5.jpg";
	sizeEx = 1;
	type=0;
	idc=-1;
	style=48;
	colorBackground[]={0,0,0,0};
	colorText[]={1,1,1,1};
	font="puristaMedium";
    };
  };
};

call with:

Syntax:
layer cutRsc [class, effect, speed, showInMap]

example
1 cutRsc ["SCP5", "PLAIN"];

 

  • Like 2

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

×