GUI Editor Interface

Running the GUI Editor

You can run Torque 3D’s GUI Editor using one of two ways. In the main menu you can click “Launch GUI Editor”:

../../_images/T3D_menu.png

Once you have started GUI the editor you can begin editing. From here, you can edit your selected GUI, load a different GUI, or create an entirely new one. You can also open the GUI Editor by pressing the shortcut key while running a game: Windows users press F10, OS X users press cmd + F10.

Main Editor Sections

The main GUI Editor view consists of 5 primary sections:

  • File Menu - Found at the very top, this is where you will find various menus that controls global functionality of the editor, such as creating/saving GUI files, manually locking, selecting, and aligning controls, toggle snapping, and so on.
  • The Toolbar - Located just below the File Menu, this bar contains shortcuts to the GUI Selector, resolution adjuster, and common positioning actions (nudge, align, etc).
  • GUI Tab - This panel, GUI Tree Panel, contains all of the controls that make up your current GUI. They are listed in hierarchical tree, which is organized from top to bottom and parenting (described later).
  • Library Tab - The Library contains all of the controls you can add to your current GUI. You can click a control in the list or manually drag it to a position in the view to add it to the scene.
  • GUI Inspector Panel - This panel, found directly below the GUI Tree Panel, is populated with all the properties that make up the currently selected GUI control. Most of your field editing will be performed here.
  • Profiles Tab - List of all the GUI profiles.
  • GUI View - The main canvas view of your GUI.
../../_images/gui_editor1.png

Tool Bar

The most useful and preferred shortcuts for quick edits can be found in the Tool Bar. While most of your control properties will be edited in the Inspector, you can use the Tool Bar to perform quick positioning actions and testing.

../../_images/gui_tool_bar1.png

The first three icons toggle the editors, and are always available. The left most icon (looks like a mountain) toggles the World Editor. The next one (boxes) toggles the GUI Editor. The Play icon will exit the editors and let you play through the game.

../../_images/gui_tool_bar2.png

Next to the editor toggles, you will find two extremely important settings. These two are drop down lists that determine what you are editing and at what resolution.

../../_images/gui_tool_bar3.png

The first drop down is a list of every single GUI available to edit, including new ones you just created. You can jump to an individual GUI at anytime, which can be useful if you are editing multiple GUIs that which work together.

../../_images/gui_tool_bar4.png

The second drop down list contains different resolutions you can build your GUI in:

../../_images/gui_tool_bar5.png

The next set of icons allow you to toggle the most commonly used and important settings for snapping:

../../_images/gui_tool_bar6.png

After the snapping icons, several shortcuts are available toggle the alignment of controls:

../../_images/gui_tool_bar7.png

The next two icons, which look like multiple boxes attached to lines, are used when you have multiple GUI controls selected. These distribution toggles will equally space the GUIs you currently have selected:

../../_images/gui_tool_bar8.png

The final two icons in the the Tool Bar can move the currently selected GUI between layers. The first button will move the selected GUI ahead in a layer, bringing it closer to view. The second button will start shoving your GUI behind others, obscuring it from view:

../../_images/gui_tool_bar9.png

Library Tab

The Control Palette contains all of the controls you can add to your current GUI. You can click a control in the list or manually drag it to a position in the view to add it to the scene.

When you click on the library tab, you can get list of all the GUI controls based on their functionality:

../../_images/gui_editor_library1.png

The categories are straight forward and should be an excellent way to get to the exact controls you need to build your interface. To see what a category contains, just click on one of the arrows or text to expand it:

../../_images/gui_editor_library2.png

To add a control, locate it in the Library’s list:

../../_images/gui_add_control1.png

Next, click on the control and drag it to your main view using a mouse:

../../_images/gui_add_control2.png

When you let go of your mouse button, you new control will anchor to the view and become your current selection:

../../_images/gui_add_control3.png

GUI Tree View

Every control added to your current GUI is kept in a sorted list. To view this list, click the “GUI” tab. This will list all of your controls in the order they were added, the most recent at the bottom of the list. Each control has a unique ID, and can be given a name.

../../_images/gui_tree1.png

Profile Editor

In the same panel as the GUI Tree View, there is a tab called “Profiles.” Clicking this tab will present you with a list of all the GUI profiles currently loaded by your game. GUI profiles contain data that personalizes your controls. This will allow you tailor an interface unique to your game.

../../_images/gui_profile_tab1.png

GUI Inspector

When you have a control or profile selected, the GUI inspector will be populated with the properties that make up the selection. These are the values that play an important role in assigning functionality to your GUI. Most of your editing will occur here.

../../_images/gui_inspector1.png

Selection and Parenting

The last portion of the interface is how controls are selected. The following image shows the stock options GUI from the Full template that ships with Torque 3D. This consists of dozens of controls working together to make up the audio and video options:

../../_images/gui_editor_parenting1.png

In the above image, I have selected the list box control that shows the display driver for a video card. The current selection is marked by six boxes surrounding the corners of the control, and several subtle lines. However, you should notice there is a large blue box surrounding multiple controls.

The large blue box shows the Parent control. When a control is the “parent”, it can contain multiple sub-controls. The “children” controls will now adhere to the same behaviors as the parent control. For example, if the parent control is set to invisible, the children controls will become invisible as well. If the parent is moved, all the children controls will move with it.