Docs: basalt.autoUpdate()
This commit is contained in:
@@ -1,11 +1,16 @@
|
|||||||
## basalt.autoUpdate
|
|
||||||
|
# basalt.autoUpdate
|
||||||
|
|
||||||
This starts the event and draw handler for you. The listeners will run until you stop them.
|
This starts the event and draw handler for you. The listeners will run until you stop them.
|
||||||
|
|
||||||
#### Parameters:
|
## Parameters
|
||||||
1. `boolean` optional - if you use false as the first parameter it would stop the listeners.
|
|
||||||
|
1. `boolean` optional - if you use false as the first parameter it would stop the listeners. Using false is a synonym for [`basalt.stopUpdate()`](objects/Basalt/stopUpdate.md).
|
||||||
|
|
||||||
|
## Usage
|
||||||
|
|
||||||
|
* Enables the basalt listeners, otherwise the screen will not continue to update
|
||||||
|
|
||||||
#### Usage:
|
|
||||||
* Enable the basalt listeners, otherwise the screen will not continue to update
|
|
||||||
```lua
|
```lua
|
||||||
local main = basalt.createFrame()
|
local main = basalt.createFrame()
|
||||||
basalt.autoUpdate()
|
basalt.autoUpdate()
|
||||||
|
|||||||
Reference in New Issue
Block a user