- New Objects (Flexbox, Graph, Treeview) - Pluginsystem to add/remove functionality - Reworked the entire Object system, instead of one big Object Class we have multiple classes: Object, VisualObject, ChangeableObject - Instead of one big Frame Class we have multiple Frame Classes: BaseFrame, Frame, MovableFrame, ScrollableFrame, MonitorFrame, Flexbox - Removed the Animation Object, and added a animation plugin instead - Removed the Graphic Object and merged it's functionality with the image object - Updated currently existing objects
849 B
849 B
setDirection
Description
Sets the direction in which the ProgressBar should expand.
Parameters
numberThe direction of expansion (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)
In this example, a ProgressBar object is created and added to the mainFrame. The setPosition and setSize methods are used to adjust the position and size of the ProgressBar. The setProgress method is used to set the current progress to 50. The setDirection method is used to set the direction of expansion from bottom to top.
<frame direction="3"></frame>