Jump to content
austin_medic

ctrlSetStructuredText spits out generic error for no reason?

Recommended Posts

So I'm trying to use ctrlSetStructuredText in one of my dialogs, but it keeps spitting out generic error in expression for some reason.

 

The idea of the whole thing is to have server save data, then have the ability for admins to pull data from server based off a name search, the server will send all info that returns a hit to their client where the data can be displayed in a dialog.

 

the script that generates the error:

 

_index = _this select 0;

_data = matchData select _index;
1100 ctrlSetStructuredText  (parseText format ["Name: %1 <br/> Dir: %2 <br/> Position: %3",_data select 0,_data select 1,_data select 2]);

My dialog itself:

class searchByName
{
	idd = 1;
    onLoad = "uiNamespace setVariable ['searchByName', _this select 0];";
	class controls
	{
		class topBar: RscText
		{
			idc = 1000;
			text = "Search by Name"; //--- ToDo: Localize;
			x = 0.362187 * safezoneW + safezoneX;
			y = 0.206 * safezoneH + safezoneY;
			w = 0.308437 * safezoneW;
			h = 0.028 * safezoneH;
		};
		class matchList: RscListbox
		{
			idc = 1500;
			onLBSelChanged = "[_this select 1] call AUSMD_fnc_changeData;";
			x = 0.362187 * safezoneW + safezoneX;
			y = 0.318 * safezoneH + safezoneY;
			w = 0.111562 * safezoneW;
			h = 0.364 * safezoneH;
		};
		class clientInfo: RscStructuredText
		{
			idc = 1100;
			x = 0.480312 * safezoneW + safezoneX;
			y = 0.318 * safezoneH + safezoneY;
			w = 0.18375 * safezoneW;
			h = 0.364 * safezoneH;
		};
		class searchBar: RscEdit
		{
			idc = 1400;
			x = 0.362187 * safezoneW + safezoneX;
			y = 0.248 * safezoneH + safezoneY;
			w = 0.229687 * safezoneW;
			h = 0.056 * safezoneH;
		};
		class searchButton: RscButton
		{
			onButtonClick = "[] spawn AUSMD_fnc_searchStart;"

			idc = 1600;
			text = "Search"; //--- ToDo: Localize;
			x = 0.598437 * safezoneW + safezoneX;
			y = 0.248 * safezoneH + safezoneY;
			w = 0.0525 * safezoneW;
			h = 0.056 * safezoneH;
		};
	};
};

Anything wrong with the above?

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

×