Jump to content
Sign in to follow this  
Ilias48rus

Adding user interface item without getting mouse pointer.

Recommended Posts

Will work something like:

class controls{
	class g: RscControlsGroup{
		idc = 0;
		x = 0.885188 * safezoneW + safezoneX;
		y = 0.717 * safezoneH + safezoneY;
		w = 0.107 * safezoneW;
		h = 0.232 * safezoneH;
		class controlsbackground{
			class st: RscStructuredText{
				idc = -1;
				text="Step:<br/>= - +5degree<br/>- - -5degree<br/>q - tyrn left<br/>e - tyrn right<br/>pageup - move up<br/>pagedown - move down<br/>8(num) - tyrn front<br/>5(num) - tyrn back<br/>space - drop|pick up<br/>f = place";
				x = 0.886188 * safezoneW + safezoneX;
				y = 0.708 * safezoneH + safezoneY;
				w = 0.105 * safezoneW;
				h = 0.21 * safezoneH;
			};
		};
		class controls{
			class at: RscText{
				idc = 1;
				text="5";
				x = 0.958375 * safezoneW + safezoneX;
				y = 0.708 * safezoneH + safezoneY;
				w = 0.02625 * safezoneW;
				h = 0.028 * safezoneH;
			};
		};
	};
};

initplayerlocal.sqf

finddisplay 46 crtlcreate['g',0];

Share this post


Link to post
Share on other sites
Guest

You need to create a display and not a dialog

Your displays need to be defined in the RscTitle class in the description.ext and displayed ingame with cutRsc.

Share this post


Link to post
Share on other sites


class RscTitles{

class d_p{

idd=2000;

enablesimulation=1;

duration=0; //tryed -1

fadein=0;

fadeout=0;

name='d_p';

class controlsbackground{

};

class controls{

};

};

};


cutRsc['d_p','plain',1,false];

Share this post


Link to post
Share on other sites
Guest

Yeah, only a high duration will do the trick btw sorry for not answering but as I can see you figured out how to make it works

Share this post


Link to post
Share on other sites

Thanks both.

		duration=9999;
		onload="_d=_this select 0;d_p=_d;[]spawn{sleep 9999;cutRsc['d_p','plain',1,false]};-1 execvm'f\p\d.sqf'";

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  

×