Some questions about guiProgressCtrl
by Playware · in Torque Game Builder · 03/21/2007 (7:03 pm) · 1 replies
Hi, i am interested to use the progress ctrl in one of my projects but there are no info about its usage.
anyone has any advice about this ctrl:
1) how do I initialise it?
2) how it updates?
Any advice is appreciated, thanks a lot!
Regards
anyone has any advice about this ctrl:
1) how do I initialise it?
2) how it updates?
Any advice is appreciated, thanks a lot!
Regards
About the author
Torque 3D Owner Luke D
Default Studio Name
new GuiProgressCtrl(ProgressBar_sample) { profile = "GuiFileProgressProfile"; horizSizing = "relative"; vertSizing = "relative"; position = "150 300"; extent = "400 75"; minExtent = "400 75"; visible = "1"; };Make sure the profile you reference (GuiFileProgressProfile in the example above) has a fillColor value set (for the color of the bar) and border=true and a borderColor if you wish it to have a border line drawn around the control.
You update it by calling it's setValue() function with a value between 0 and 1. For 50% using the above control, you'd call "ProgressBar_sample.setValue(0.5);".