Jump to content
nerexis

IDD of hint / inifstar blocking it

Recommended Posts

Hello, 
 

does anyone know what is IDD of "hint" sqf command triggered gui msg box? It seems my infistar is blocking it and I'm not sure what IDD to whitelist.

Share this post


Link to post
Share on other sites

The idd is 301. Though it seems weird that infistart is able to block that as it is not a display but rather a subclass of RscInGameUI which sqf has no control over...

 

Share this post


Link to post
Share on other sites

I have 301 whitelisted but it still doesnt work:
 

/* Use IDD White-List ? */ UDW = "true";
/* allowedIDDs: Insert IDDs here to prevent them from being closed! */
allowedIDDs[] =
{
	/* default idds */
	-1,0,4,5,6,8,12,15,18,24,49,54,55,70,72,101,160,174,177,999,131,63,602,

	//InGameUI
	300,301,302,303,304,305,

 

Share this post


Link to post
Share on other sites

I found the way how infistar makes it disappear. So it has function called when frame is rendered which invokes hintSilent ""; command which clears the message:
 

dupecheck_d3dcode = {
	hintSilent "";
	(findDisplay 602) displayRemoveAllEventHandlers "MouseButtonUp";
	(findDisplay 602) displaySetEventHandler ["MouseButtonUp","mousebuttonupinventory = diag_tickTime; "];
	if(cameraView isEqualTo "GROUP")then
	{
		cameraOn switchCamera "INTERNAL";
		systemChat "<infiSTAR.de> TacticalView is not allowed to be used!";
	};
	false
};

 

  • Like 1

Share this post


Link to post
Share on other sites
29 minutes ago, 7erra said:

The idd is 301.

Hello,

How did you find it?
I thought it was in a generic 999 display for RscDisplayCommonHint  with onLoad:  uinamespace setvariable ['Hsim_RscDisplayCommonHint',_this select 0];

Share this post


Link to post
Share on other sites
46 minutes ago, pierremgi said:

How did you find it?

Looked throught the config.cpp of \a3\ui_f for a class containing the string "hint". I knew that the hint command only works with string and structured text so the control that displays the text can only be a RscStructuredText control. When I found some possible candidates I copied their config into a description.ext of a test mission and created the display to see what it looks like and the RscHint was the right one.

  • Like 1

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

×