Skip to content

form.addPot

since 1.6.3

Add a pot widget.

form.addPot(line, line, rect, index, type)

Parameters

Name Type Required Description
line FormLine yes the line where the widget should be added
line FormLine yes the line where the widget should be added
rect Rect yes the coordinates
index number yes the pot index
type string yes pot type, can take the values "pot" (default), "slider", "left" or "right"

Returns

Nothing.

Examples

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