487 B
487 B
setDirection
Sets the direction in which the bar should be expanding.
Parameters:
numberx direction (0 = left to right, 1 = top to bottom, 2 = right to left and 3 = bottom to top)
Returns:
objectThe object in use
Usage:
- Creates a progressbar and sets the direction from bottom to top
local mainFrame = basalt.createFrame()
local aProgressbar = mainFrame:addProgressbar()
aProgressbar:setDirection(3)
<frame direction="3"></frame>