Game Development Community

Edit the guiEditor

by Howard Dortch · in Torque Game Engine · 06/01/2007 (8:09 am) · 2 replies

Is there a way to edit the gui editor so I can set the treeview postion?
version 1.5 I open the gui editor and the treeview always takes up half the display so I have to manually grab it and move it to the right so I can work and it gets REALLY annoying.

#1
06/04/2007 (10:00 am)
You'll most likely end up modifying the file example\creator\ui\GuiEditorGui.gui.

Look for these lines:
new GuiFrameSetCtrl()
      {
         position = "640 0";
         minExtent = "128 64";
         extent = "160 600";
         profile = "GuiButtonProfile";
         horizSizing = "width";
         vertSizing = "height";
         columns = "0";
         rows = "0 300";
         //----------------------------------------
         // Tree View
		   new GuiScrollCtrl() 
         {
            profile = "GuiScrollProfile";
			   minExtent = "72 64";
			   position = "0 0";
			   extent = "160 300";
			   horizSizing = "width";
			   vertSizing = "height";
			   vScrollBar = "alwaysOn";
			   hScrollBar = "dynamic";

			   new GuiTreeViewCtrl(GuiEditorTreeView)
            {
               profile = "GuiTreeViewProfile";
				   position = "0 0";
				   horizSizing = "width";
			   };
		   };

Those are going to contain the position and size of that particular section of the GuiEditor
#2
06/04/2007 (12:29 pm)
I set those values to what I wanted and no matter what I set em to I get the same result
I tried to chase down where they use the prefs width and height thinking it was dynamicly cued off that but no go there either.
thanks for a reply