Updated docs
There is still stuff to do
This commit is contained in:
23
docs/objects/Basalt/getFrame.md
Normal file
23
docs/objects/Basalt/getFrame.md
Normal file
@@ -0,0 +1,23 @@
|
||||
## basalt.getFrame
|
||||
Returns a base frame by the given id
|
||||
|
||||
#### Parameters:
|
||||
1. `string` id
|
||||
|
||||
#### Returns:
|
||||
1. `frame` object
|
||||
|
||||
#### Usage:
|
||||
* Creates, fetches and shows the "myFirstFrame" object
|
||||
```lua
|
||||
local main = basalt.createFrame("firstBaseFrame")
|
||||
local main2 = basalt.createFrame("secondBaseFrame")
|
||||
main:addButton()
|
||||
:setText("Show")
|
||||
:onClick(function()
|
||||
local frame2 = basalt.getFrame("secondBaseFrame")
|
||||
if(frame2~=nil)then
|
||||
frame2:show()
|
||||
end
|
||||
end)
|
||||
```
|
||||
Reference in New Issue
Block a user