Updated some formatting

Updated formatting for object
This commit is contained in:
Robert Jelic
2022-10-20 21:05:29 +02:00
parent 4352d36831
commit ab72f244ed
42 changed files with 381 additions and 122 deletions

View File

@@ -1,13 +1,21 @@
# Object
## setParent
Sets the parent frame of the object
#### Parameters:
### Parameters
1. `frame` The to-be parent frame
#### Returns:
### Returns
1. `object` The object in use
#### Usage:
### Usage
* Sets the parent frame of the random frame, adding it to the main frame when the button is clicked"
```lua
local mainFrame = basalt.createFrame()
local aRandomFrame = basalt.createFrame()
@@ -16,4 +24,4 @@ local aButton = mainFrame:addButton():onClick(
aRandomFrame:setParent(mainFrame)
end
)
```
```