The basic GUI elements are:
These elements can exist on their own or they can be grouped together as a vizinfo object or a vizmenu pop-down menu. In general, you can place a GUI element where you want it on the screen using <GUI element>.setPosition(<coordinates>), where the <coordinates> are window coordinates going from 0 to 1 and (0,0) is at the lefthand bottom corner of the screen. To set the state of a GUI element, use <GUI element>.set(<valueCheck out the section on getting data from GUI elements for details about accessing the input in your script. For a list of the commands you can use with GUI elements, check out the GUI command table.
Buttons and checkboxes are just what they sound like-- onscreen buttons and checkboxes. The main difference between them is that buttons immediately bounce back to the up state after they're clicked while checkboxes remain selected. Radio buttons are a specific kind of button that come in groups where only one radio button in a given group can be selected at one time. Label buttons are buttons with text on them. To change the text on a label button, use <button>.message(<string>).
Sliders consist of a bar and a tick that slides along it. You can change the size of the tick, the size of the bar, the margin from which it can go to the edge, and the textures applied to its tick and slider, and the orientation of the bar. Progress bars are similar, but they contain text and have a shaded area that slides along the bar instead of a tick.
Text boxes are fields for users to enter typed data. To make more room for the user to write, use <text box>.length(<scale>) or set the overflow properties using <text box>.overflow(<overflow flag>). To set the message inside a text box, use <text box>.message( <string> ).
Drop lists are drop-down menus. You can add and clear items from a droplist.
Getting data from GUI elements