Torque 3D - Script Manual: GuiButtonCtrl Class Reference

TorqueScript

Main   Class List   Namespace List   Online

GuiButtonCtrl Class Reference
[Button Controls]

The most widely used button class. More...

Inheritance diagram for GuiButtonCtrl:

List of all members.


Detailed Description

The most widely used button class.

GuiButtonCtrl renders seperately of, but utilizes all of the functionality of GuiBaseButtonCtrl. This grants GuiButtonCtrl the versatility to be either of the 3 button types.

Example:
// Create a PushButton GuiButtonCtrl that calls randomFunction when clicked
%button = new GuiButtonCtrl()
{
   profile    = "GuiButtonProfile";
   buttonType = "PushButton";
   command    = "randomFunction();";
};


Copyright © GarageGames, LLC. All Rights Reserved.