Skip to content

form.addFunctionSwitch

since 1.6.3

Add a function switch widget.

form.addFunctionSwitch(line, rect, index)

Parameters

Name Type Required Description
line FormLine yes the line where the widget should be added
rect Rect yes the coordinates
index number yes the function switch index

Returns

Nothing.

Examples

From the official Ethos documentation
form.addFunctionSwitch(nil, {x=0, y=0}, 0)