ctrlSetScale – Talk

From Bohemia Interactive Community
Jump to navigation Jump to search

I couldn't get this to scale the following control (ST_PICTURE):

       class RscText2 {        
		type = CT_STATIC;        
		idc = 891;
		style = ST_PICTURE;        		
		colorBackground[] = { };        
		colorText[] = { }; 
		font = FontM;         
		sizeEx = 1.04;
	};

        class ThreatIcons
	{  
		idd = 900;		
		movingEnable = 0;
		duration = 100000;
		controlsBackground[] = { };
		objects[] = { };
		controls[] = { T1, T2, T3, T4, T5 };  
		onLoad = "ThreatIcons = (_this select 0)";
		class T1 : RscText2  
		{    
			idc = 901;    			
			x = 0.4;    
			y = 0.45;    
			w = 0.5;    
			h = 0.5;    			    
			text = "threat2.paa";  
		};
        };

It will scale text though...


A workaround is to use a CT_HTML control and use image tags...this works well and can scale.

--Hendo 23:22, 18 March 2010 (CET)