[Setting] setting = client.setting.addEnum(name, variableName, enumValues)


Adds a dropdown of values 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

enumValues

table

The values of the enum in the following format: { {1, "first"}, {7, "second"} } basically number value and a name for that number

Return Value


setting

Setting

The setting that was added