Files
Robert Jelic d4c72514ef Docs 1.6
Accidentally uploaded outdated 1.6 docs
2023-05-01 16:28:46 +02:00

457 B

pause

pauses the current program (prevents the program from receiving events)

Parameters:

  1. boolean true, false or nothing

Returns:

  1. object The object in use

Usage:

  • Pauses worm by clicking a button
local mainFrame = basalt.createFrame():show()
local aProgram = mainFrame:addProgram():execute("rom/programs/shell.lua"):show()
mainFrame:addButton():setText("Pause"):onClick(function() aProgram:pause(true) end):show()