Jump to content
gc8

Changing GUI editor ctrl types

Recommended Posts

Hi

I wanted to change the root class of some GUI controls in my mission but I cannot find where the class types are set.

 

For example (GUI editor output):

 

$[
	1.063,
	["dbgStats",[["safezoneX","safezoneY","safezoneW","safeZoneH"],"5 * 0.5 * pixelW * pixelGrid","5 * 0.5 * pixelH * pixelGrid","UI_GRID"],0,0,0],
	[1800,"",[2,"Side",["16 * UI_GRID_W + UI_GRID_X","8 * UI_GRID_H + UI_GRID_Y","22 * UI_GRID_W","4.5 * UI_GRID_H"],[-1,-1,-1,-1],[-1,-1,-1,-1],[-1,-1,-1,-1],"","-1"],[]],
	[1801,"",[2,"All",["16 * UI_GRID_W + UI_GRID_X","14.5 * UI_GRID_H + UI_GRID_Y","16 * UI_GRID_W","11.5 * UI_GRID_H"],[-1,-1,-1,-1],[-1,-1,-1,-1],[-1,-1,-1,-1],"","-1"],[]],
	[1201,"UsedArmyBar : RscProgress",[2,"#(argb,8,8,3)color(1,1,1,1)",["16.5 * UI_GRID_W + UI_GRID_X","10.5 * UI_GRID_H + UI_GRID_Y","11 * UI_GRID_W","1 * UI_GRID_H"],[-1,-1,-1,-1],[-1,-1,-1,-1],[-1,-1,-1,-1],"","-1"],[]],
	[1600,"",[2,"Close",["28.5 * UI_GRID_W + UI_GRID_X","27 * UI_GRID_H + UI_GRID_Y","5.5 * UI_GRID_W","2 * UI_GRID_H"],[-1,-1,-1,-1],[-1,-1,-1,-1],[-1,-1,-1,-1],"","-1"],["action = |call closeDbgStatsDlg|;"]],
	[1000,"",[2,"Response time",["25 * UI_GRID_W + UI_GRID_X","6.5 * UI_GRID_H + UI_GRID_Y","13 * UI_GRID_W","1 * UI_GRID_H"],[-1,-1,-1,-1],[-1,-1,-1,-1],[-1,-1,-1,-1],"","-1"],[]],
	[1001,"",[2,"0 / 0",["18 * UI_GRID_W + UI_GRID_X","9 * UI_GRID_H + UI_GRID_Y","9 * UI_GRID_W","1 * UI_GRID_H"],[-1,-1,-1,-1],[-1,-1,-1,-1],[-1,-1,-1,-1],"","-1"],[]],
	[1002,"",[2,"Num men spawned: 0",["17 * UI_GRID_W + UI_GRID_X","15.5 * UI_GRID_H + UI_GRID_Y","10 * UI_GRID_W","1 * UI_GRID_H"],[-1,-1,-1,-1],[-1,-1,-1,-1],[-1,-1,-1,-1],"","-1"],[]],
	[1003,"",[2,"Total groups: 0",["17 * UI_GRID_W + UI_GRID_X","17 * UI_GRID_H + UI_GRID_Y","7.5 * UI_GRID_W","1 * UI_GRID_H"],[-1,-1,-1,-1],[-1,-1,-1,-1],[-1,-1,-1,-1],"","-1"],[]],
	[1004,"",[2,"Num veh spawned: 0",["17 * UI_GRID_W + UI_GRID_X","18.5 * UI_GRID_H + UI_GRID_Y","10 * UI_GRID_W","1 * UI_GRID_H"],[-1,-1,-1,-1],[-1,-1,-1,-1],[-1,-1,-1,-1],"","-1"],[]],
	[2100,"",[2,"",["28.5 * UI_GRID_W + UI_GRID_X","10 * UI_GRID_H + UI_GRID_Y","9 * UI_GRID_W","1.5 * UI_GRID_H"],[-1,-1,-1,-1],[-1,-1,-1,-1],[-1,-1,-1,-1],"","-1"],["onLBSelChanged = |call dbgSelectSide|;"]],
	[1005,"",[2,"Vehs in use:",["18 * UI_GRID_W + UI_GRID_X","20 * UI_GRID_H + UI_GRID_Y","6 * UI_GRID_W","1 * UI_GRID_H"],[-1,-1,-1,-1],[-1,-1,-1,-1],[-1,-1,-1,-1],"","-1"],[]],
	[1006,"",[2,"Static weapons:",["17.5 * UI_GRID_W + UI_GRID_X","24.5 * UI_GRID_H + UI_GRID_Y","7 * UI_GRID_W","1 * UI_GRID_H"],[-1,-1,-1,-1],[-1,-1,-1,-1],[-1,-1,-1,-1],"","-1"],["idc = 1670;"]],
	[1007,"",[2,"Num air:",["18 * UI_GRID_W + UI_GRID_X","21 * UI_GRID_H + UI_GRID_Y","8 * UI_GRID_W","1 * UI_GRID_H"],[-1,-1,-1,-1],[-1,-1,-1,-1],[-1,-1,-1,-1],"","-1"],[]],
	[1008,"",[2,"Num land:",["18 * UI_GRID_W + UI_GRID_X","22 * UI_GRID_H + UI_GRID_Y","8 * UI_GRID_W","1 * UI_GRID_H"],[-1,-1,-1,-1],[-1,-1,-1,-1],[-1,-1,-1,-1],"","-1"],[]],
	[1009,"",[2,"Num water:",["18 * UI_GRID_W + UI_GRID_X","23 * UI_GRID_H + UI_GRID_Y","8 * UI_GRID_W","1 * UI_GRID_H"],[-1,-1,-1,-1],[-1,-1,-1,-1],[-1,-1,-1,-1],"","-1"],[]]
]

 

I cant see where the control types are defined. Except for "UsedArmyBar : RscProgress" etc. But where are the rest defined?

thx!

  • Like 1

Share this post


Link to post
Share on other sites

Ok figured it out. The control type comes from the IDC. so 16XX = button, etc

  • Like 1

Share this post


Link to post
Share on other sites

Yeah the GUI Editor is an ancient piece of technology. It doesn't make use of the ctrlCreate command but rather has hundreds of controls stored in its config and as @gc8 said, they are identified via their IDC.

  • Thanks 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

×