Files
Basalt/docs/docs1_6/objects/Basalt/stopUpdate.md
Robert Jelic d4c72514ef Docs 1.6
Accidentally uploaded outdated 1.6 docs
2023-05-01 16:28:46 +02:00

468 B

Basalt

stopUpdate / stop

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

Usage

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