Jump to content

Recommended Posts

Hi all,

 

I'm in a spot of bother with trying to return the mini-map control (whilst in multiplayer). I have looked at this topic but am unable to get the script working. Here is what I have so far:

// add group draw handler to mini-map
_nul = [] spawn {
  disableSerialization;
  _ctrlMiniMap = controlNull;

  // search loop to return mini-map map control
  while {isNull _ctrlMiniMap} do {
	{
      _ctrlMiniMap = _x displayCtrl 101;
      if !(isNull _ctrlMiniMap) exitWith {true;};
    } count (uiNamespace getVariable ["IGUI_Displays",[]]);
	sleep 0.1;
  };

  // adds draw handler
  _ctrlMiniMap ctrlAddEventHandler ["Draw",{_nul = _this call RAD_fnc_groupMarkersMapDraw;}];
};

I have run both the script from the topic (see above) and my modified version. Both offer no success, any ideas or examples for how to get this working would be greatly appreciated?

 

Thanks,

Bull

Share this post


Link to post
Share on other sites

This is what I use ... Only difference I see is that I use an isNil check inside the loop.

 

	[_QS_ST_X] spawn {
		scriptName 'Soldier Tracker (GPS Icons) by Quiksilver - Waiting for GPS display';
		private ['_gps','_QS_ST_X'];
		_QS_ST_X = _this select 0;
		disableSerialization;
		_gps = controlNull;
		for '_x' from 0 to 1 step 0 do {
			{
				if !(isNil {_x displayCtrl 101}) then {
					_gps = _x displayCtrl 101;
				};
			} count (uiNamespace getVariable 'IGUI_Displays');
			uiSleep 1;
			if (!isNull _gps) exitWith {
				_gps ctrlAddEventHandler ['Draw',(_QS_ST_X select 50)];
			};
			uiSleep 0.25;
		};
	};

 

and adapted for yours

 

// add group draw handler to mini-map
0 spawn {
	disableSerialization;
	private _ctrlMiniMap = controlNull;
	// search loop to return mini-map map control
	while {TRUE} do {
		{
			if !(isNil {_x displayCtrl 101}) then {
				_ctrlMiniMap = _x displayCtrl 101;
			};
		} count (uiNamespace getVariable 'IGUI_Displays');
		if (!isNull _ctrlMiniMap) exitWith {
			_ctrlMiniMap ctrlAddEventHandler ["Draw",{_this call RAD_fnc_groupMarkersMapDraw;}];
		};
		uiSleep 0.25;
	};
};

 

Share this post


Link to post
Share on other sites

Hi all,

 

I have found the problem. @fn_Quiksilver thank you for the code example. However, I have been running this through on the 'Dev-Branch' and found out that the 'new' mini-map cannot be hooked into using the above methods. The code from the first post was found to have worked on the 'release' branch but not on the 'Dev-Branch'. I am currently investigating why this is not possible and will update this topic with any findings

 

Bull

Share this post


Link to post
Share on other sites
Guest

Maybe it's just the Control ID or the display that changed. Well I'm basicaly quite sure of that since they wont delete the old one (debug purposes or compatibility or dependency)

You can loop through allDisplays and then loop through the controls with allControls and then just display debug info about the control with diag_log format blablabla with ctrlText ctrlType etc... you probably now it already 

 

:)

Share this post


Link to post
Share on other sites

Ok so no joy from my end:

_controlRtn = "";
_lineBreak = toString [13,10];
_displays = uiNamespace getVariable "IGUI_Displays";
_displays = _displays + allDisplays;
{
  _controlRtn = _controlRtn + "========================================";
  _controlRtn = _controlRtn + _lineBreak + (str _x) + _lineBreak;
  _controls = allControls _x;
  for "_i" from 0 to ((count _controls) - 1) do {
    _control = _controls select _i;
    _controlRtn = _controlRtn + (format ["Control: %1   Type: %2",_control,(ctrlType _control)]) + _lineBreak;
  };
} forEach _displays;
copyToClipboard _controlRtn;

Output:

Spoiler

========================================
Display #305
Control: Control #193   Type: 0
========================================
Display #315
Control: Control #1000   Type: 0
Control: Control #15110   Type: 0
Control: Control #103   Type: 0
Control: Control #103   Type: 0
Control: Control #104   Type: 0
Control: Control #105   Type: 0
Control: Control #102   Type: 0
========================================
Display #303
Control: Control #1201   Type: 0
Control: Control #188   Type: 0
========================================
Display #303
Control: Control #1201   Type: 0
Control: Control #188   Type: 0
========================================
Display #303
Control: Control #1201   Type: 0
Control: Control #188   Type: 0
========================================
Display #316
Control: Control #1000   Type: 0
Control: Control #15110   Type: 0
Control: Control #103   Type: 0
Control: Control #103   Type: 0
Control: Control #104   Type: 0
Control: Control #105   Type: 0
Control: Control #102   Type: 0
========================================
Display #319
Control: Control #1000   Type: 0
Control: Control #15110   Type: 0
Control: Control #103   Type: 0
Control: Control #103   Type: 0
Control: Control #104   Type: 0
Control: Control #105   Type: 0
Control: Control #102   Type: 0
========================================
Display #303
Control: Control #1201   Type: 0
Control: Control #188   Type: 0
========================================
Display #300
Control: Control #168   Type: 0
========================================
Display #300
Control: Control #168   Type: 0
========================================
Display #300
Control: Control #2302   Type: 15
Control: Control #1202   Type: 0
Control: Control #1001   Type: 0
Control: Control #1008   Type: 0
Control: Control #1203   Type: 0
Control: Control #154   Type: 8
Control: Control #118   Type: 0
Control: Control #187   Type: 0
Control: Control #149   Type: 0
Control: Control #184   Type: 0
Control: Control #185   Type: 0
Control: Control #155   Type: 0
Control: Control #152   Type: 0
Control: Control #151   Type: 0
Control: Control #150   Type: 0
Control: Control #380   Type: 0
Control: Control #382   Type: 0
========================================
Display #303
Control: Control #1201   Type: 0
Control: Control #188   Type: 0
========================================
Display #0
Control: Control #999   Type: 0
Control: Control #-1   Type: 0
Control: Control #-1   Type: 0
Control: Control #998   Type: 0
Control: Control #115   Type: 1
Control: Control #-1   Type: 0
Control: Control #-1   Type: 0
Control: Control #-1   Type: 0
Control: Control #1021   Type: 15
Control: Control #-1   Type: 15
Control: Control #1023   Type: 0
Control: Control #1024   Type: 0
Control: Control #1025   Type: 15
Control: Control #-1   Type: 0
Control: Control #-1   Type: 0
Control: Control #-1   Type: 0
Control: Control #1027   Type: 0
Control: Control #1027   Type: 0
Control: Control #1029   Type: 0
Control: Control #1028   Type: 13
Control: Control #1026   Type: 1
Control: Control #1020   Type: 0
Control: Control #1022   Type: 15
Control: Control #-1   Type: 15
Control: Control #1023   Type: 0
Control: Control #1024   Type: 0
Control: Control #1025   Type: 15
Control: Control #-1   Type: 0
Control: Control #-1   Type: 0
Control: Control #-1   Type: 0
Control: Control #1027   Type: 0
Control: Control #1027   Type: 0
Control: Control #1029   Type: 0
Control: Control #1028   Type: 13
Control: Control #1026   Type: 1
Control: Control #1060   Type: 11
Control: Control #1061   Type: 11
Control: Control #-1   Type: 0
Control: Control #-1   Type: 0
Control: Control #-1   Type: 0
Control: Control #-1   Type: 0
Control: Control #-1   Type: 11
Control: Control #-1   Type: 11
Control: Control #1011   Type: 16
Control: Control #1111   Type: 1
Control: Control #1001   Type: 15
Control: Control #101   Type: 16
Control: Control #150   Type: 16
Control: Control #151   Type: 16
Control: Control #103   Type: 16
Control: Control #142   Type: 16
Control: Control #1012   Type: 16
Control: Control #1112   Type: 1
Control: Control #1002   Type: 15
Control: Control #154   Type: 16
Control: Control #105   Type: 16
Control: Control #206   Type: 16
Control: Control #1013   Type: 16
Control: Control #1113   Type: 1
Control: Control #1003   Type: 15
Control: Control #149   Type: 16
Control: Control #152   Type: 16
Control: Control #203   Type: 16
Control: Control #143   Type: 16
Control: Control #204   Type: 16
Control: Control #1014   Type: 16
Control: Control #1114   Type: 1
Control: Control #1004   Type: 15
Control: Control #301   Type: 16
Control: Control #302   Type: 16
Control: Control #303   Type: 16
Control: Control #307   Type: 16
Control: Control #140   Type: 16
Control: Control #1015   Type: 1
Control: Control #1005   Type: 15
Control: Control #109   Type: 16
Control: Control #155   Type: 1
Control: Control #106   Type: 1
Control: Control #1030   Type: 15
Control: Control #1034   Type: 0
Control: Control #1035   Type: 0
Control: Control #1036   Type: 0
Control: Control #1037   Type: 16
Control: Control #141   Type: 15
Control: Control #10311   Type: 15
Control: Control #1034   Type: 0
Control: Control #1035   Type: 0
Control: Control #1036   Type: 0
Control: Control #1037   Type: 16
Control: Control #145   Type: 15
Control: Control #-1   Type: 0
Control: Control #-1   Type: 0
Control: Control #-1   Type: 0
Control: Control #-1   Type: 0
Control: Control #-1   Type: 0
Control: Control #1031   Type: 15
Control: Control #1034   Type: 0
Control: Control #1035   Type: 0
Control: Control #1036   Type: 0
Control: Control #1037   Type: 16
Control: Control #144   Type: 15
Control: Control #1032   Type: 15
Control: Control #1034   Type: 0
Control: Control #1035   Type: 0
Control: Control #1036   Type: 0
Control: Control #-1   Type: 0
Control: Control #1039   Type: 0
Control: Control #1037   Type: 16
Control: Control #1033   Type: 15
Control: Control #1034   Type: 0
Control: Control #1035   Type: 0
Control: Control #1036   Type: 0
Control: Control #118   Type: 0
Control: Control #1050   Type: 0
Control: Control #1039   Type: 0
Control: Control #1037   Type: 16
Control: Control #1038   Type: 16
Control: Control #-1   Type: 0
Control: Control #104   Type: 16
Control: Control #-1   Type: 16
Control: Control #1123   Type: 15
Control: Control #-1   Type: 15
Control: Control #1023   Type: 0
Control: Control #1024   Type: 0
Control: Control #1025   Type: 15
Control: Control #-1   Type: 0
Control: Control #-1   Type: 0
Control: Control #-1   Type: 0
Control: Control #1027   Type: 0
Control: Control #1027   Type: 0
Control: Control #1029   Type: 0
Control: Control #1028   Type: 13
Control: Control #1026   Type: 1
========================================
Display #313
Control: Control #51   Type: 101
Control: Control #52   Type: 0
Control: Control #46   Type: 0
Control: Control #47   Type: 0
Control: Control #48   Type: 0
Control: Control #49   Type: 0
Control: Control #87   Type: 0
Control: Control #998   Type: 0
Control: Control #2   Type: 1
Control: Control #76   Type: 0
Control: Control #120   Type: 47
Control: Control #1000   Type: 15
Control: Control #1001   Type: 0
Control: Control #1002   Type: 15
Control: Control #1006   Type: 1
Control: Control #1007   Type: 1
Control: Control #1008   Type: 1
Control: Control #10091   Type: 1
Control: Control #-1   Type: 0
Control: Control #1003   Type: 15
Control: Control #1010   Type: 1
Control: Control #1011   Type: 1
Control: Control #-1   Type: 0
Control: Control #1004   Type: 15
Control: Control #10041   Type: 77
Control: Control #10042   Type: 77
Control: Control #10043   Type: 77
Control: Control #10044   Type: 77
Control: Control #10045   Type: 77
Control: Control #-1   Type: 0
Control: Control #1005   Type: 15
Control: Control #1016   Type: 77
Control: Control #1017   Type: 77
Control: Control #1018   Type: 77
Control: Control #-1   Type: 0
Control: Control #1024   Type: 15
Control: Control #1025   Type: 77
Control: Control #1026   Type: 4
Control: Control #1027   Type: 77
Control: Control #1028   Type: 4
Control: Control #1029   Type: 77
Control: Control #1030   Type: 4
Control: Control #-1   Type: 0
Control: Control #10301   Type: 15
Control: Control #10302   Type: 1
Control: Control #10303   Type: 77
Control: Control #10305   Type: 77
Control: Control #10304   Type: 1
Control: Control #10306   Type: 4
Control: Control #10251   Type: 15
Control: Control #10310   Type: 1
Control: Control #10312   Type: 13
Control: Control #1031   Type: 1
Control: Control #1019   Type: 15
Control: Control #-1   Type: 0
Control: Control #1032   Type: 1
Control: Control #1033   Type: 6
Control: Control #1020   Type: 0
Control: Control #1037   Type: 15
Control: Control #-1   Type: 0
Control: Control #80   Type: 2
Control: Control #81   Type: 1
Control: Control #-1   Type: 1
Control: Control #-1   Type: 1
Control: Control #55   Type: 12
Control: Control #-1   Type: 15
Control: Control #-1   Type: 0
Control: Control #85   Type: 1
Control: Control #84   Type: 1
Control: Control #86   Type: 1
Control: Control #1065   Type: 1
Control: Control #1064   Type: 1
Control: Control #1038   Type: 15
Control: Control #-1   Type: 0
Control: Control #1042   Type: 2
Control: Control #1043   Type: 1
Control: Control #75   Type: 12
Control: Control #1034   Type: 1
Control: Control #1021   Type: 15
Control: Control #-1   Type: 0
Control: Control #1034   Type: 1
Control: Control #1036   Type: 6
Control: Control #1022   Type: 0
Control: Control #1039   Type: 15
Control: Control #-1   Type: 0
Control: Control #1060   Type: 6
Control: Control #53   Type: 6
Control: Control #54   Type: 6
Control: Control #1049   Type: 15
Control: Control #4242   Type: 4
Control: Control #82   Type: 2
Control: Control #83   Type: 1
Control: Control #-1   Type: 1
Control: Control #-1   Type: 1
Control: Control #56   Type: 12
Control: Control #57   Type: 12
Control: Control #58   Type: 12
Control: Control #59   Type: 12
Control: Control #60   Type: 12
Control: Control #61   Type: 12
Control: Control #62   Type: 12
Control: Control #63   Type: 12
Control: Control #64   Type: 12
Control: Control #65   Type: 12
Control: Control #71   Type: 12
Control: Control #68   Type: 12
Control: Control #6900000   Type: 12
Control: Control #66   Type: 12
Control: Control #67   Type: 12
Control: Control #69   Type: 12
Control: Control #70   Type: 12
Control: Control #1062   Type: 15
Control: Control #-1   Type: 0
Control: Control #1063   Type: 77
Control: Control #-1   Type: 0
Control: Control #1061   Type: 15
Control: Control #-1   Type: 0
Control: Control #90   Type: 1
Control: Control #91   Type: 1
Control: Control #93   Type: 1
Control: Control #92   Type: 1
Control: Control #1040   Type: 15
Control: Control #-1   Type: 0
Control: Control #74   Type: 5
Control: Control #98   Type: 15
Control: Control #-1   Type: 0
Control: Control #99   Type: 0
Control: Control #1023   Type: 16
Control: Control #1044   Type: 5
Control: Control #1050   Type: 15
Control: Control #1051   Type: 0
Control: Control #-1   Type: 0
Control: Control #1052   Type: 2
Control: Control #-1   Type: 0
Control: Control #1053   Type: 2
Control: Control #-1   Type: 0
Control: Control #1054   Type: 2
Control: Control #-1   Type: 0
Control: Control #1055   Type: 2
Control: Control #1057   Type: 2
Control: Control #1058   Type: 0
Control: Control #1059   Type: 0
========================================
Display #70
Control: Control #114998   Type: 0
Control: Control #115099   Type: 15
Control: Control #114999   Type: 0
Control: Control #1080   Type: 0
Control: Control #1081   Type: 0
Control: Control #1082   Type: 0
Control: Control #1083   Type: 0
Control: Control #1084   Type: 0
Control: Control #1085   Type: 0
Control: Control #1086   Type: 0
Control: Control #1087   Type: 0
Control: Control #1088   Type: 0
Control: Control #1000   Type: 0
Control: Control #1002   Type: 0
Control: Control #101   Type: 0
Control: Control #1006   Type: 0
Control: Control #102   Type: 0
Control: Control #1008   Type: 0
Control: Control #125   Type: 11
Control: Control #126   Type: 11
Control: Control #127   Type: 11
Control: Control #701   Type: 0
Control: Control #121   Type: 0
Control: Control #1004   Type: 0
Control: Control #103   Type: 0
Control: Control #104   Type: 11
Control: Control #105   Type: 11
Control: Control #106   Type: 11
Control: Control #107   Type: 11
Control: Control #132   Type: 11
Control: Control #131   Type: 11
Control: Control #109   Type: 5
Control: Control #114   Type: 104
Control: Control #117   Type: 16
Control: Control #118   Type: 16
Control: Control #128   Type: 16
Control: Control #130   Type: 16
Control: Control #116   Type: 16
Control: Control #1   Type: 16
Control: Control #2   Type: 16
Control: Control #108   Type: 0
Control: Control #1013   Type: 0
Control: Control #1015   Type: 0
Control: Control #133   Type: 1
Control: Control #134   Type: 0
Control: Control #135   Type: 1
Control: Control #136   Type: 0
Control: Control #137   Type: 77
========================================
Display #46
Control: Control #1202   Type: 0
Control: Control #11400   Type: 15
Control: Control #1001   Type: 0
Control: Control #1000   Type: 0
Control: Control #11406   Type: 15
Control: Control #1010   Type: 0
Control: Control #102   Type: 0
Control: Control #100   Type: 0
Control: Control #1011   Type: 0
Control: Control #101   Type: 0
Control: Control #-1   Type: 15
Control: Control #-1   Type: 0
Control: Control #-1   Type: 0
Control: Control #-1   Type: 0
Control: Control #-1   Type: 0
Control: Control #-1   Type: 0
Control: Control #-1   Type: 15
Control: Control #-1   Type: 0
Control: Control #-1   Type: 0
Control: Control #-1   Type: 0
Control: Control #-1   Type: 0
Control: Control #-1   Type: 0
Control: Control #-1   Type: 0
Control: Control #-1   Type: 0
Control: Control #-1   Type: 0
Control: Control #-1   Type: 0
Control: Control #-1   Type: 0
Control: Control #-1   Type: 0
Control: Control #-1   Type: 0
Control: Control #-1   Type: 0
Control: Control #-1   Type: 0
Control: Control #-1   Type: 0
Control: Control #-1   Type: 0
Control: Control #-1   Type: 0
Control: Control #-1   Type: 0
Control: Control #-1   Type: 0
Control: Control #-1   Type: 0
Control: Control #-1   Type: 0
Control: Control #-1   Type: 0
Control: Control #-1   Type: 0
Control: Control #-1   Type: 0
Control: Control #-1   Type: 0
Control: Control #-1   Type: 0
Control: Control #-1   Type: 0
Control: Control #-1   Type: 0
Control: Control #-1   Type: 0
Control: Control #-1   Type: 0
Control: Control #-1   Type: 0
Control: Control #-1   Type: 0
Control: Control #-1   Type: 0
Control: Control #-1   Type: 0
Control: Control #-1   Type: 0
Control: Control #-1   Type: 0
Control: Control #-1   Type: 0
Control: Control #-1   Type: 0
Control: Control #-1   Type: 0
Control: Control #-1   Type: 0
Control: Control #-1   Type: 0
Control: Control #-1   Type: 0
Control: Control #-1   Type: 0
Control: Control #-1   Type: 0
Control: Control #-1   Type: 0
Control: Control #-1   Type: 0
Control: Control #-1   Type: 0
Control: Control #-1   Type: 0
Control: Control #-1   Type: 0
Control: Control #-1   Type: 0
Control: Control #-1   Type: 0
Control: Control #-1   Type: 0
Control: Control #-1   Type: 0
Control: Control #-1   Type: 0
Control: Control #-1   Type: 0
Control: Control #-1   Type: 0
Control: Control #-1   Type: 0
Control: Control #-1   Type: 0
Control: Control #-1   Type: 0
Control: Control #-1   Type: 0
Control: Control #-1   Type: 0
Control: Control #-1   Type: 0
Control: Control #-1   Type: 0
Control: Control #-1   Type: 0
Control: Control #-1   Type: 0
Control: Control #-1   Type: 0
Control: Control #-1   Type: 0
Control: Control #-1   Type: 0
Control: Control #-1   Type: 0
Control: Control #-1   Type: 0
Control: Control #-1   Type: 0
Control: Control #-1   Type: 0
Control: Control #-1   Type: 15
Control: Control #-1   Type: 0
Control: Control #-1   Type: 0
Control: Control #-1   Type: 0
Control: Control #-1   Type: 0
Control: Control #-1   Type: 0
Control: Control #-1   Type: 0
========================================
Display #49
Control: Control #114998   Type: 0
Control: Control #115099   Type: 15
Control: Control #114999   Type: 0
Control: Control #115000   Type: 0
Control: Control #115001   Type: 0
Control: Control #115002   Type: 0
Control: Control #115003   Type: 0
Control: Control #115004   Type: 0
Control: Control #115005   Type: 0
Control: Control #115010   Type: 0
Control: Control #115011   Type: 0
Control: Control #115012   Type: 0
Control: Control #115013   Type: 0
Control: Control #115014   Type: 0
Control: Control #115015   Type: 0
Control: Control #115020   Type: 0
Control: Control #115021   Type: 0
Control: Control #115022   Type: 0
Control: Control #115023   Type: 0
Control: Control #115024   Type: 0
Control: Control #115025   Type: 0
Control: Control #115030   Type: 0
Control: Control #115031   Type: 0
Control: Control #115032   Type: 0
Control: Control #115033   Type: 0
Control: Control #115034   Type: 0
Control: Control #115035   Type: 0
Control: Control #115040   Type: 0
Control: Control #115041   Type: 0
Control: Control #115042   Type: 0
Control: Control #115043   Type: 0
Control: Control #115044   Type: 0
Control: Control #115045   Type: 0
Control: Control #115050   Type: 0
Control: Control #115051   Type: 0
Control: Control #115052   Type: 0
Control: Control #115053   Type: 0
Control: Control #115054   Type: 0
Control: Control #115055   Type: 0
Control: Control #1050   Type: 0
Control: Control #-1   Type: 0
Control: Control #1000   Type: 0
Control: Control #1001   Type: 0
Control: Control #523   Type: 0
Control: Control #120   Type: 0
Control: Control #109   Type: 0
Control: Control #2   Type: 16
Control: Control #103   Type: 16
Control: Control #1002   Type: 16
Control: Control #1010   Type: 16
Control: Control #101   Type: 16
Control: Control #301   Type: 16
Control: Control #302   Type: 16
Control: Control #303   Type: 16
Control: Control #307   Type: 16
Control: Control #122   Type: 16
Control: Control #104   Type: 16
Control: Control #13184   Type: 15
Control: Control #11884   Type: 0
Control: Control #11891   Type: 9
Control: Control #11885   Type: 0
Control: Control #11892   Type: 0
Control: Control #12284   Type: 2
Control: Control #1   Type: 16
Control: Control #13285   Type: 16
Control: Control #13286   Type: 16
Control: Control #13284   Type: 16
Control: Control #11886   Type: 0
Control: Control #11893   Type: 0
Control: Control #12285   Type: 2
Control: Control #11887   Type: 0
Control: Control #12286   Type: 2
Control: Control #12287   Type: 2
Control: Control #11888   Type: 0
Control: Control #12288   Type: 2
Control: Control #12289   Type: 2
Control: Control #11889   Type: 0
Control: Control #12290   Type: 2
Control: Control #12291   Type: 2
Control: Control #11890   Type: 0
Control: Control #12293   Type: 2
Control: Control #13287   Type: 16
Control: Control #13288   Type: 16
Control: Control #13289   Type: 16
Control: Control #13290   Type: 16
Control: Control #13291   Type: 16
Control: Control #13292   Type: 16
Control: Control #1005   Type: 0
Control: Control #121   Type: 11
Control: Control #6455   Type: 9
Control: Control #2351   Type: 15
Control: Control #235100   Type: 0
Control: Control #235101   Type: 0
Control: Control #235102   Type: 13
Control: Control #235103   Type: 0
Control: Control #235104   Type: 0
Control: Control #235105   Type: 0
Control: Control #235106   Type: 16
Control: Control #235107   Type: 16
========================================
Display #12
Control: Control #-1   Type: 0
Control: Control #-1   Type: 0
Control: Control #-1   Type: 0
Control: Control #-1   Type: 0
Control: Control #51   Type: 101
Control: Control #1102   Type: 0
Control: Control #1101   Type: 0
Control: Control #1100   Type: 0
Control: Control #2350   Type: 15
Control: Control #235000   Type: 0
Control: Control #235001   Type: 13
Control: Control #235002   Type: 13
Control: Control #235003   Type: 13
Control: Control #235004   Type: 13
Control: Control #235005   Type: 0
Control: Control #235006   Type: 0
Control: Control #1016   Type: 0
Control: Control #1020   Type: 0
Control: Control #1200   Type: 0
Control: Control #1021   Type: 0
Control: Control #1022   Type: 0
Control: Control #1023   Type: 0
Control: Control #2   Type: 11
Control: Control #112   Type: 0
Control: Control #2302   Type: 15
Control: Control #111   Type: 0
Control: Control #1014   Type: 0
Control: Control #116   Type: 0
Control: Control #1205   Type: 0
Control: Control #1090   Type: 4
Control: Control #1091   Type: 4
Control: Control #1202   Type: 11
Control: Control #1201   Type: 11
Control: Control #1204   Type: 0
Control: Control #101   Type: 0
Control: Control #107   Type: 0
Control: Control #1001   Type: 104
Control: Control #1002   Type: 104
Control: Control #117   Type: 1
Control: Control #118   Type: 0
Control: Control #119   Type: 77
Control: Control #1013   Type: 15
Control: Control #1003   Type: 9
Control: Control #106   Type: 15
Control: Control #75   Type: 0
Control: Control #77   Type: 0
Control: Control #1008   Type: 0
Control: Control #78   Type: 0
Control: Control #1015   Type: 0
Control: Control #1005   Type: 0
Control: Control #103   Type: 15
Control: Control #63   Type: 11
Control: Control #64   Type: 11
Control: Control #65   Type: 11
Control: Control #66   Type: 11
Control: Control #67   Type: 11
Control: Control #68   Type: 11
Control: Control #69   Type: 11
Control: Control #70   Type: 11
Control: Control #71   Type: 11
Control: Control #72   Type: 11
Control: Control #1099   Type: 0
Control: Control #88800   Type: 15
Control: Control #88802   Type: 0
Control: Control #88803   Type: 0
Control: Control #88804   Type: 0
Control: Control #88801   Type: 0
Control: Control #88870   Type: 0
Control: Control #88871   Type: 13
Control: Control #88872   Type: 13
Control: Control #88811   Type: 16
Control: Control #88808   Type: 5
Control: Control #88809   Type: 5
Control: Control #88826   Type: 13
Control: Control #88806   Type: 13
Control: Control #88830   Type: 11
Control: Control #88827   Type: 13
Control: Control #88805   Type: 13
Control: Control #88874   Type: 0
Control: Control #88875   Type: 13
Control: Control #88876   Type: 13
Control: Control #88828   Type: 13
Control: Control #88807   Type: 13
Control: Control #88877   Type: 0
Control: Control #88878   Type: 13
Control: Control #88879   Type: 13
Control: Control #88829   Type: 16
Control: Control #88831   Type: 13
Control: Control #88813   Type: 4
Control: Control #88814   Type: 16
Control: Control #88822   Type: 0
Control: Control #88823   Type: 0
Control: Control #88824   Type: 0
Control: Control #88825   Type: 0
Control: Control #88815   Type: 0
Control: Control #88816   Type: 0
Control: Control #88817   Type: 0
Control: Control #88818   Type: 0
Control: Control #88819   Type: 13
Control: Control #88820   Type: 13
Control: Control #88821   Type: 13
Control: Control #88832   Type: 13
Control: Control #88833   Type: 13
Control: Control #88834   Type: 13
Control: Control #88850   Type: 15
Control: Control #88851   Type: 0
Control: Control #88852   Type: 13
Control: Control #88853   Type: 1
Control: Control #88860   Type: 15
Control: Control #88861   Type: 13
Control: Control #1124   Type: 0
Control: Control #1125   Type: 13
Control: Control #400   Type: 15
Control: Control #4001   Type: 0
Control: Control #4002   Type: 13
Control: Object Control #102   Type: 81


I thought that it was maybe this control: "RscCustomInfoMiniMap" but that display did not appear in the list. So I tried running a loop in the mission to see whether Display #317 is ever loaded:

_nul = [] spawn {
  while {true} do {
    _displaysUnique = [];
    _displays = allDisplays + (uiNamespace getVariable ["IGUI_Displays",[]]);
    { _displaysUnique pushBackUnique _x } forEach _displays;
    {
      systemChat format ["%2 Display: %1",(ctrlIDD _x),diag_tickTime];
    } forEach _displaysUnique;
    systemChat "========================================";
    sleep 5;
  };
};

It does not ever appear in the list. Not going to give up, but going to concede this round 

Share this post


Link to post
Share on other sites
4 hours ago, harmdhast said:

Maybe it's just the Control ID or the display that changed. Well I'm basicaly quite sure of that since they wont delete the old one (debug purposes or compatibility or dependency)

You can loop through allDisplays and then loop through the controls with allControls and then just display debug info about the control with diag_log format blablabla with ctrlText ctrlType etc... you probably now it already 

 

:)

 

IGUI displays do not appear in allDisplays return

Share this post


Link to post
Share on other sites
Guest
19 hours ago, fn_Quiksilver said:

 

IGUI displays do not appear in allDisplays return

Still they probably made a new one instead of overwriting the existing one which is pure non sense.

Share this post


Link to post
Share on other sites

On dev you can have 2 GPSs now at the same time. I assume this has something to do with the Jets and UAV sensors. If you press [ or ] you get GPS appear on the left or right or both. I guess the old control is not used any more, this is why you cannot use it.

Share this post


Link to post
Share on other sites

Finally found it on my own LAN server; I local exec the code below to find maplike display controls based on their control type or class name:

player groupChat "Maplike display controls";
{
 _disp = _x;
 {
  _ctrl = _x; 
  if (ctrlType _ctrl in[100,101] or toUpper(ctrlClassName _ctrl) find "MAP" > -1) then
  {
   systemChat (str(ctrlIDD _disp) + " " + str(ctrlIDC _ctrl) + " " + ctrlClassName _ctrl);
  };
 } forEach allControls _x;
} forEach allDisplays + (uiNamespace getVariable "IGUI_Displays");

One of them listed "311 101 CA_MiniMap" so I picked that one for ctrlAddEventHandler draw calls. It seems after version 1.70 the GPS minimap is now in allDisplays list as Display #311 and Control #101.

My script above does not show in which of the two lists it found the minimap; before ArmA 3 version 1.70 the GPS minimap used to be in the IGUI_Displays list instead, as Display #133 and Control #101.

 

Below are the four most common map variants you can hook into; idx 0 is from allDisplays and idx 1 is from IGUI_Displays. Please let us know their display/control/list if you discover further map variants.

case "UAVMAP": {_idd = 160; _idc = 51; _idx = 0};
case "ARTYMAP": {_idd = -1; _idc = 500; _idx = 0};
case "BIGMAP": {_idd = 12; _idc = 51; _idx = 0};
case "MINIMAP": {_idd = 311; _idc = 101; _idx = 0};

PS: Adding draw calls to one GPS minimap will show them on the second MFD as well. Perhaps after additional content updates more of the IGUI_Displays list will be consolidated into the allDisplays list.

  • Like 2

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

×