612 B
612 B
Object
setBorder
Sets the border of that objects, if false the border will be removed
Default: false
Parameters
number|colorBorder colorstringoptional - sides. If you don't set sides, all 4 sides will have a border
Returns
objectThe object in use
Usage
- Sets the border to green and shows it:
local mainFrame = basalt.createFrame()
local subFrame = mainFrame:addFrame()
:setMovable()
:setSize(18,6)
:setBorder(colors.green, "left", "right", "bottom")
<frame width="18" height="6" borderColor="green" movable="true" />