Jump to content
Sign in to follow this  
kanelbolle

Hide Radar - trubble with size and pos

Recommended Posts

Hi,

im trying to hide the radar in panes.

But if i change the resolution, interface size or 3D Resolution it does not cover the radar anymore.

Any ides how to do this? :confused:

  class NORADARHelicopter
  {
idd = -1;
movingEnable =  1;
duration     =  9999;
fadein       =  0;
fadeout      =  1;
name = "NORADAR";
onLoad="uiNamespace setVariable ['NORADAR_Display', _this select 0];";
controlsBackground[]={};
objects[]={};
controls[]={NORADAR_PIC};
class NORADAR_PIC
{
	idc = -1;
	type = 0;
	style = 48;
	colorText[] = {0.1882, 0.2588, 0.149, 1};
	font = "Bitstream";
	colorBackground[] = {0.1882, 0.2588, 0.149, 0};
	text="pics\noradar.paa";
	sizeEx = 0.015;
               x = (0.080 * SafeZoneW) + SafeZoneX;
               y = (0.018 * SafeZoneH) + SafeZoneY;
               w = (0.170 * SafeZoneW);
               h = (0.210 * SafeZoneH);


	//x = "(SafeZoneX) + (0.090)";
	//y = "(SafeZoney) + (0.015)";
	//w = 0.175;
	//h = 0.25;
};
  };

Share this post


Link to post
Share on other sites

No one know how to handle screen changes ? Dosn't seem to help the other posts about using safzone's....

Share this post


Link to post
Share on other sites

check out the valhalla mission. it hides the radar for vehicles..

Share this post


Link to post
Share on other sites
check out the valhalla mission. it hides the radar for vehicles..

Incidentally, the maker of Valhalla scrambled all the scripts to prevent anyone from learning from them.

Maybe you could try setting the block's position in a loop? That way it gets the updated safeZone information.

I have this sort of thing in my HUD script:

cutRsc ["hud","PLAIN"];

_ui=uiNamespace getVariable "hud";

_hud=_ui displayCtrl 23501;

_hud ctrlSetPosition [safeZoneX,safeZoneY+safeZoneH-_y];

_y=_y+0.03;

_text=format ["%1: %2%3",CLY_westname select 1,CLY_westscore,_scorelimit];

_hud ctrlSetText _text;

_hud ctrlSetTextColor [0.4,0.4,0.8,1];

_hud ctrlCommit 0;

Note that you need to give a unique idc number to the pic.

Edited by Celery

Share this post


Link to post
Share on other sites

I allready have ith in a loop that checks if the player is inside a aircraft.

If it is the pic shows with the code at top. if not it removes it... :/

while {true} do
{

  _vehnoradar = typeof vehicle player;
  _vp = vehicle player;
  _vk = vehicle player ;

 if ((_vk iskindof "Helicopter") || (_vk iskindof "Plane") || (_vk iskindof "Tank") || (_vk iskindof "APC") || (_vk iskindof "Wheeled_APC")) then
  {

     while {(vehicle player == _vp) && mando_no_radar_active} do
     {
        if (_vehnoradar iskindOf "Helicopter") then
        {
    Hint "Entered vehicle Helicopter!";
           if ((_this select 1) == 0) then
           {
              titleRsc ["NORADARHelicopter","PLAIN"]
           };
        };
     Sleep 1;
     };

    if ((_this select 1) == 0) then
     {
 titleText["", "PLAIN"];   
     };
  };
  Sleep 2;
};

Incidentally, the maker of Valhalla scrambled all the scripts to prevent anyone from learning from them.

Maybe you could try setting the block's position in a loop? That way it gets the updated safeZone information.

I have this sort of thing in my HUD script:

cutRsc ["hud","PLAIN"];

_ui=uiNamespace getVariable "hud";

_hud=_ui displayCtrl 23501;

_hud ctrlSetPosition [safeZoneX,safeZoneY+safeZoneH-_y];

_y=_y+0.03;

_text=format ["%1: %2%3",CLY_westname select 1,CLY_westscore,_scorelimit];

_hud ctrlSetText _text;

_hud ctrlSetTextColor [0.4,0.4,0.8,1];

_hud ctrlCommit 0;

Note that you need to give a unique idc number to the pic.

Edited by Kanelbolle

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  

×