489 B
489 B
Object
setParent
Sets the parent frame of the object
Parameters
frameThe to-be parent frame
Returns
objectThe object in use
Usage
- Sets the parent frame of the random frame, adding it to the main frame when the button is clicked"
local mainFrame = basalt.createFrame()
local aRandomFrame = basalt.createFrame()
local aButton = mainFrame:addButton():onClick(
function()
aRandomFrame:setParent(mainFrame)
end
)