Docs 1.6
Accidentally uploaded outdated 1.6 docs
This commit is contained in:
18
docs/docs1_6/objects/Frame/addObject.md
Normal file
18
docs/docs1_6/objects/Frame/addObject.md
Normal file
@@ -0,0 +1,18 @@
|
||||
## add<Object>
|
||||
Adds a new object. Don't use add<Object> please use addTheObjectYouNeed For example if you want a new Frame, use
|
||||
addFrame, if you want to add a button, use addButton
|
||||
|
||||
#### Parameters:
|
||||
1. `string` optional - the id if you don't add a id it will autimatically generate one for you
|
||||
|
||||
#### Returns:
|
||||
1. `object` The new object you've created
|
||||
|
||||
#### Usage:
|
||||
* Creates some example objects
|
||||
```lua
|
||||
local main = basalt.createFrame()
|
||||
local button = main:addButton()
|
||||
local label = main:addLabel()
|
||||
local frame = main:addFrame()
|
||||
```
|
||||
Reference in New Issue
Block a user