[Setting] setting = client.setting.addFunction(name, variableName, buttonName)
Parameters
name
stringThe name of the setting in the UI
variableName
stringThe name of the global variable that contains the setting value (a function to be executed when clicked)
buttonName
stringThe text on the UI button
Return Value
setting
SettingThe setting that was added