Built-in Setting Renderersο
textLineο
Single line text input
Argument
Table with the following optional fields:
name |
type (default) |
description |
|---|---|---|
disabled |
bool (false) |
Disables changing the setting from the UI |
checkboxο
True / false (yes/no) toggle
Argument
Table with the following optional fields:
name |
type (default) |
description |
|---|---|---|
disabled |
bool (false) |
Disables changing the setting from the UI |
l10n |
string (βInterfaceβ) |
Localization context with display values for the true/false values |
trueLabel |
string (βYesβ) |
Localization key to display for the true value |
falseLabel |
string (βNoβ) |
Localization key to display for the false value |
numberο
Numeric input
Argument
Table with the following optional fields:
name |
type (default) |
description |
|---|---|---|
disabled |
bool (false) |
Disables changing the setting from the UI |
integer |
bool (false) |
Only allow integer values |
min |
number (nil) |
If set, restricts setting values to numbers larger than min |
max |
number (nil) |
If set, restricts setting values to numbers smaller than max |
selectο
A small selection box with two next / previous arrows on the sides
Argument
Table with the following optional fields:
name |
type (default) |
description |
|---|---|---|
disabled |
bool (false) |
Disables changing the setting from the UI |
l10n |
string (required) |
Localization context with display values for items |
items |
#list<string> ({}) |
List of options to choose from, all the viable values of the setting |
colorο
Hex-code color input with a preview
Argument
Table with the following optional fields:
name |
type (default) |
description |
|---|---|---|
disabled |
bool (false) |
Disables changing the setting from the UI |