Jump to content
Sign in to follow this  
rimblock

rscTitle pictures coming up as masks only.

Recommended Posts

So I have been trying to get this to work for the last two days and am getting nowhere.

I have a three pictures which I intend to use for a player status GUI. They are all converted to paa in textview2 and look fine with transparent backgrounds during and after conversion (psd -> 32bit TGA with alpha channel -> TextView2 -> .paa).

I have added some classes to the config.cpp (via a .hpp include) but either the pictures do not appear at all ot they appear as masks (i.e. no detail, just like a shadow in a single colour). I am clearly missing something pretty fundamental but as there are next to no guides for picture boxes that I have found it has been pretty much trial and error.

class RscTitles
{
class StatusGUI // Player status GUI
{    
	idd = 9000;
	duration = 99999;
	class controls
	{
		class StatusGUIBack
		{    
			idc = 9000;
			type = CT_STATIC;
			style = ST_BACKGROUND;
			font = "EtelkaNarrowMediumPro";
			sizeEx = 0.1;
			colorBackground[] = {0.4196,0.5568,0.1372,1};
			colorText[] = {0,0,0,1};
			x = "0.814511 * safezoneW + safezoneX"; 
			y = "0.741971 * safezoneH + safezoneY";
			w = "0.170145 * safezoneW";
			h = "0.197976 * safezoneH";
			text = "";
		};  
		class StatusGUIFrame
		{    
			idc = 9001;
			type = CT_STATIC;
			style = ST_FRAME;
			font = "EtelkaNarrowMediumPro";
			sizeEx = 0.1;
			colorBackground[] = {0.4196,0.5568,0.1372,1};
			colorText[] = {1,1,1,0};
			x = "0.814511 * safezoneW + safezoneX"; 
			y = "0.741971 * safezoneH + safezoneY";
			w = "0.170145 * safezoneW";
			h = "0.197976 * safezoneH";
			text = "";
		};  
		class StatusGUIFood  // Left picture
		{    
			idc = 9002;
			type = CT_STATIC;
			style = ST_PICTURE;
			font = "EtelkaNarrowMediumPro";
			sizeEx = 0.1;
			x = "0.819666 * safezoneW + safezoneX";
			y = "0.75297 * safezoneH + safezoneY";
			w = "0.0412473 * safezoneW";
			h = "0.175979 * safezoneH";
			text = d\addons\dominion_code\cfgGUIs\icons\StatusGUIGaugeLeft.paa;
			colorText[] = {1,1,1,1};
			colorBackground[] = {0,0,0,0};
			background = 1;
		};  
		class StatusGUIBlood // middle picture
		{    
			idc = 9003;
			type = CT_STATIC;
			style = ST_PICTURE;
			font = "EtelkaNarrowMediumPro";
			sizeEx = 0.1;
			colorText[] = {1,1,1,1};
			colorBackground[] = {0,0,0,0};
			x = "0.866069 * safezoneW + safezoneX";
			y = "0.75297 * safezoneH + safezoneY";
			w = "0.0670268 * safezoneW";
			h = "0.175979 * safezoneH";
			text = "d\addons\dominion_code\cfgGUIs\icons\PlayerModel.paa";
			background = 1;
		};  
		class StatusGUIWater  // Right picture
		{    
			idc = 9004;
			type = CT_STATIC;
			style = ST_PICTURE;
			font = "EtelkaNarrowMediumPro";
			sizeEx = 0.1;
			colorText[] = {1,1,1,1};
			colorBackground[] = {0,0,0,0};
			x = "0.938252 * safezoneW + safezoneX";
			y = "0.75297 * safezoneH + safezoneY";
			w = "0.0412473 * safezoneW";
			h = "0.175979 * safezoneH";
			text = d\addons\dominion_code\cfgGUIs\icons\StatusGUIGaugeRight.paa;
		};  
	};	
};
};

The defines are

#define ST_PICTURE        48
#define ST_FRAME          64
#define ST_BACKGROUND     80
#define CT_STATIC 0

Any ideas ?

Share this post


Link to post
Share on other sites

Hi man,

Your textures needs to be in ^2.

Example :

1000x500 won't work

But 1024x512 will work

Best regards.

Share this post


Link to post
Share on other sites

Thanks for that. The pictures are not sized to be ^2 so I will fix that and give it another go tonight.

Update:

Yep that did it. Thanks again.

Edited by RimBlock

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  

×