Game Development Community

Vertical Slider GUI

by Jeff Kelsey · in Torque 3D Professional · 04/22/2010 (7:37 am) · 1 replies

How do you set the slider GUI control to orient vertically? Someone in a different forum said that if you set the extent of the control to a vertical orientation (y > x) it would become vertical but this does not seem to work. Do I need to manually rotate through script or something?



#1
04/22/2010 (6:52 pm)
This is true-ish. The code looks for the width and height but only after checking for a "texture" which is supplied by the profile. Change the profile from GuiSliderProfile to GuiDefaultProfile and you will see a (kind of ugly) vertical slider assuming that your width < height.