Updated some formatting
Updated formatting for object
This commit is contained in:
@@ -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
|
||||
)
|
||||
```
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user