526 B
526 B
Object
setAnchor
Sets the anchor of the object
Parameters
stringAnchor sides("topLeft" "top", "topRight", "right", "bottomRight", "bottom", "bottomLeft", "left", "center")
Returns
objectThe object in use
Usage
- Sets the button to have an anchor of
bottomRight
local mainFrame = basalt.createFrame():show()
local aButton = mainFrame:addButton()
:setAnchor("bottomRight")
:setSize(8,1)
:setPosition(-8,1)
<button anchor="bottomRight" />