[Setting] setting = client.setting.addFunction(name, variableName, buttonName)


Adds a button in the UI

Parameters


name

string

The name of the setting in the UI

variableName

string

The name of the global variable that contains the setting value (a function to be executed when clicked)

buttonName

string

The text on the UI button

Return Value


setting

Setting

The setting that was added