Torque3D Documentation / _generateds / GuiProgressCtrl

GuiProgressCtrl

consoledoc.h

GUI Control which displays a horizontal bar which increases as the progress value of 0.0 - 1.0 increases.

More...

Detailed Description

GUI Control which displays a horizontal bar which increases as the progress value of 0.0 - 1.0 increases.

     new GuiProgressCtrl(JS_statusBar)
    {
          //Properties not specific to this control have been omitted from this example.
     };

// Define the value to set the progress bar%value = "0.5f"

// Set the value of the progress bar, from 0.0 - 1.0
%thisGuiProgressCtrl.setValue(%value);
// Get the value of the progress bar.
%progress = %thisGuiProgressCtrl.getValue();