From 6fa519be86f7f3d81a2388de897d20926dda9d15 Mon Sep 17 00:00:00 2001 From: Erb3 <49862976+Erb3@users.noreply.github.com> Date: Mon, 12 Sep 2022 20:35:01 +0200 Subject: [PATCH] Docs: basalt.autoUpdate() --- docs/objects/Basalt/autoUpdate.md | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/docs/objects/Basalt/autoUpdate.md b/docs/objects/Basalt/autoUpdate.md index 9038719..b74a259 100644 --- a/docs/objects/Basalt/autoUpdate.md +++ b/docs/objects/Basalt/autoUpdate.md @@ -1,12 +1,17 @@ -## basalt.autoUpdate + +# basalt.autoUpdate + This starts the event and draw handler for you. The listeners will run until you stop them. -#### Parameters: -1. `boolean` optional - if you use false as the first parameter it would stop the listeners. +## Parameters + +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 local main = basalt.createFrame() basalt.autoUpdate() -``` \ No newline at end of file +```