Usercontent Widgets
{
"text": "", #Optional
"type": "", #See table below for available types
"layout": {
#See layout
},
"action": {
#See action
},
"attributes": {
"id": "",
"item": "", #Resource location
"icon": "", #See reference/icon-ids for available ids
"visible": {
#See widget-states
},
"enabled": {
#See widget-states
}
}
}
| Button type | Description | Actions | Required attributes | Optional Attributes |
|---|---|---|---|---|
| button | Simple button | open, set, run, run_string, back, back_to_game, js | - | tooltip |
| textfield | Simple textfield | set, js | id | - |
| item_button | Button with an item instead of text | open, set, run, run_string, back, back_to_game, js | item | - |
| icon_button | Button with an icon instead of text | open, set, run, run_string, back, back_to_game, js | icon | tooltip |
| list_button | Button with the option to cycle through items | set, js | items | - |
| slider | Simple slider | set, js | id, min, max | start |