Files
Basalt/docs/objects/Basalt/stopUpdate.md
Robert Jelic 4d614372a1 Updated docs
There is still stuff to do
2022-08-28 18:18:26 +02:00

437 B

basalt.stopUpdate or basalt.stop

Stops the automatic draw and event handler which got started by basalt.autoUpdate()

Usage:

  • When the quit button is clicked, the button stops basalt's event listeners and draw handlers
local main = basalt.createFrame()
local aButton = main:addButton()
    :setPosition(2,2)
    :setText("Stop Basalt!")
    :onClick(function()
        basalt.stopUpdate()
    end)
basalt.autoUpdate()