Game Development Community

OnSlide function for GuiSliderCtrl

by Kevin Epps · in Torque Game Builder · 03/21/2007 (5:23 pm) · 2 replies

Is there a onSlide function or something like that, where you could call a function as you move the slider, instead of the Command value, that waits until the mouse button's up?

#1
03/21/2007 (8:11 pm)
If you specify a callback function in the altcommand field it will get called anytime the value of the slider changes.

note: unlike to command callback the altcommand callback will not pass the calling object (%this). so you will have to use an alternate method to get the object and read its value.
#2
03/22/2007 (6:43 am)
Ok. That worked great. Luckily I already had seperate functions that handled the values. Thanks! I didn't realize AltCommand did that!